Creation parameters for the Window class.
More...
#include <WindowParam.h>
Creation parameters for the Window class.
neo::WindowParam::WindowParam |
( |
| ) |
|
|
inline |
The default is a frame window, without parent or menu.
WindowParam & neo::WindowParam::Background |
( |
HBRUSH |
bg | ) |
|
|
inline |
- Returns
- Reference to this instance for method chaining.
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.
- 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 |
Set the window menu.
- Returns
- Reference to this instance for method chaining.
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 |
Set the window coordinates.
- Returns
- Reference to this instance for method chaining.
Set the window frame size.
- Returns
- Reference to this instance for method chaining.
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.
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 |
HWND neo::WindowParam::_parent |
POINT neo::WindowParam::_pos |
Top-left position for the window.
SIZE neo::WindowParam::_size |
Full size for the window.
DWORD neo::WindowParam::_style |
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: