neoWidgets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
neo::WindowParam Class Reference

Creation parameters for the Window class. More...

#include <WindowParam.h>

Public Member Functions

 WindowParam ()
 
WindowParamBackground (HBRUSH bg)
 
WindowParamBackgroundNull ()
 
WindowParamCursor (HCURSOR cursor)
 
WindowParamExStyle (DWORD exStyle)
 
WindowParamFullRedrawOnResize (bool set)
 
WindowParamIcon (HICON icon)
 
WindowParamInnerSize (int w, int h)
 
WindowParamInnerSize (const SIZE &s)
 
WindowParamMenu (HMENU menu)
 
WindowParamParent (HWND parent)
 
WindowParamPosition (int x, int y)
 
WindowParamPosition (const POINT &p)
 
WindowParamRect (const RECT &r)
 
WindowParamSize (int w, int h)
 
WindowParamSize (const SIZE &s)
 
WindowParamStyle (DWORD style)
 
WindowParamText (const tstring &text)
 
WindowParamWindowMode (NEO_WINDOW_MODE mode)
 

Public Attributes

WNDCLASSEX _cls
 
DWORD _exStyle
 
HMENU _menu
 
NEO_WINDOW_MODE _mode
 
HWND _parent
 
POINT _pos
 
SIZE _size
 
DWORD _style
 
tstring _text
 

Detailed Description

Creation parameters for the Window class.

Constructor & Destructor Documentation

neo::WindowParam::WindowParam ( )
inline

The default is a frame window, without parent or menu.

Member Function Documentation

WindowParam & neo::WindowParam::Background ( HBRUSH  bg)
inline
Returns
Reference to this instance for method chaining.
WindowParam& neo::WindowParam::BackgroundNull ( )
inline

Disables background drawing. Useful for windows that draw everything themselves.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Cursor ( HCURSOR  cursor)
inline
Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::ExStyle ( DWORD  exStyle)
inline

Set the extended window style.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::FullRedrawOnResize ( bool  set)
inline

Normally windows will only repaint areas that have been invalidated. With this parameter, a window will always be repainted in it's entirety.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Icon ( HICON  icon)
inline
Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::InnerSize ( int  w,
int  h 
)
inline

Set the window client size.
Style, Extended style and Menu will be used for this calculation.

Returns
Reference to this instance for method chaining.
WindowParam& neo::WindowParam::InnerSize ( const SIZE &  s)
inline
See Also
InnerSize()
WindowParam & neo::WindowParam::Menu ( HMENU  menu)
inline

Set the window menu.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Parent ( HWND  parent)
inline

Set the parent window.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Position ( int  x,
int  y 
)
inline

Set the top-left position of the window relative to it's parent.

Returns
Reference to this instance for method chaining.
WindowParam& neo::WindowParam::Position ( const POINT &  p)
inline
See Also
Position()
WindowParam & neo::WindowParam::Rect ( const RECT &  r)
inline

Set the window coordinates.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Size ( int  w,
int  h 
)
inline

Set the window frame size.

Returns
Reference to this instance for method chaining.
WindowParam& neo::WindowParam::Size ( const SIZE &  s)
inline
See Also
Size()
WindowParam & neo::WindowParam::Style ( DWORD  style)
inline

Set the window style.

Returns
Reference to this instance for method chaining.
WindowParam & neo::WindowParam::Text ( const tstring &  text)
inline

Set the window text.

Returns
Reference to this instance for method chaining.

Member Data Documentation

WNDCLASSEX neo::WindowParam::_cls

The window class used during window creation.

Note
You cannot change hInstance and lpfnWndProc, everything else is allowed
DWORD neo::WindowParam::_exStyle

Extended style for the window.

HMENU neo::WindowParam::_menu

Menu for the window.

HWND neo::WindowParam::_parent

Parent for the window.

POINT neo::WindowParam::_pos

Top-left position for the window.

SIZE neo::WindowParam::_size

Full size for the window.

DWORD neo::WindowParam::_style

Style for the window.

tstring neo::WindowParam::_text

Text of the window (e.g. a caption for top level windows)


The documentation for this class was generated from the following files: