xtd 0.2.0
Loading...
Searching...
No Matches
class styles

Definition

class styles definitions.

Warning
Internal use only

Variables

constexpr size_t CS_VREDRAW
 Redraws the entire window if a movement or size adjustment changes the height of the client area.
 
constexpr size_t CS_HREDRAW
 Redraws the entire window if a movement or size adjustment changes the width of the client area.
 
constexpr size_t CS_DBLCLKS
 Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class.
 
constexpr size_t CS_OWNDC
 Allocates a unique device context for each window in the class.
 
constexpr size_t CS_CLASSDC
 Allocates one device context to be shared by all windows in the class. Because window classes are process specific, it is possible for multiple threads of an application to create a window of the same class. It is also possible for the threads to attempt to use the device context simultaneously. When this happens, the system allows only one thread to successfully finish its drawing operation.
 
constexpr size_t CS_PARENTDC
 Sets the clipping rectangle of the child window to that of the parent window so that the child can draw on the parent. A window with the CS_PARENTDC style bit receives a regular device context from the system's cache of device contexts. It does not give the child the parent's device context or device context settings. Specifying CS_PARENTDC enhances an application's performance.
 
constexpr size_t CS_NOCLOSE
 Disables Close on the window menu.
 
constexpr size_t CS_SAVEBITS
 Saves, as a bitmap, the portion of the screen image obscured by a window of this class. When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured. Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image. This style is useful for small windows (for example, menus or dialog boxes) that are displayed briefly and then removed before other screen activity takes place. This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.
 
constexpr size_t CS_BYTEALIGNCLIENT
 Aligns the window's client area on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.
 
constexpr size_t CS_BYTEALIGNWINDOW
 Aligns the window on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.
 
constexpr size_t CS_GLOBALCLASS
 Indicates that the window class is an application global class.
 
constexpr size_t CS_DROPSHADOW
 Enables the drop shadow effect on a window. The effect is turned on and off through SPI_SETDROPSHADOW. Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z-order relationship to other windows. Windows created from a class with this style must be top-level windows; they may not be child windows.
 

Variable Documentation

◆ CS_VREDRAW

constexpr size_t CS_VREDRAW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Redraws the entire window if a movement or size adjustment changes the height of the client area.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_HREDRAW

constexpr size_t CS_HREDRAW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Redraws the entire window if a movement or size adjustment changes the width of the client area.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_DBLCLKS

constexpr size_t CS_DBLCLKS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_OWNDC

constexpr size_t CS_OWNDC
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Allocates a unique device context for each window in the class.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_CLASSDC

constexpr size_t CS_CLASSDC
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Allocates one device context to be shared by all windows in the class. Because window classes are process specific, it is possible for multiple threads of an application to create a window of the same class. It is also possible for the threads to attempt to use the device context simultaneously. When this happens, the system allows only one thread to successfully finish its drawing operation.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_PARENTDC

constexpr size_t CS_PARENTDC
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Sets the clipping rectangle of the child window to that of the parent window so that the child can draw on the parent. A window with the CS_PARENTDC style bit receives a regular device context from the system's cache of device contexts. It does not give the child the parent's device context or device context settings. Specifying CS_PARENTDC enhances an application's performance.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_NOCLOSE

constexpr size_t CS_NOCLOSE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Disables Close on the window menu.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_SAVEBITS

constexpr size_t CS_SAVEBITS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Saves, as a bitmap, the portion of the screen image obscured by a window of this class. When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured. Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image. This style is useful for small windows (for example, menus or dialog boxes) that are displayed briefly and then removed before other screen activity takes place. This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_BYTEALIGNCLIENT

constexpr size_t CS_BYTEALIGNCLIENT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Aligns the window's client area on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_BYTEALIGNWINDOW

constexpr size_t CS_BYTEALIGNWINDOW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Aligns the window on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_GLOBALCLASS

constexpr size_t CS_GLOBALCLASS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Indicates that the window class is an application global class.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CS_DROPSHADOW

constexpr size_t CS_DROPSHADOW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/class_styles.h>

Enables the drop shadow effect on a window. The effect is turned on and off through SPI_SETDROPSHADOW. Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z-order relationship to other windows. Windows created from a class with this style must be top-level windows; they may not be child windows.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only