Enum cat_engine_basement::windows::core::window_class::WindowClassStyle[][src]

#[repr(u32)]
pub enum WindowClassStyle {
    VerticalRedraw,
    HorizontalRedraw,
    DoubleClicks,
    OwnDeviceContext,
    ClassDeviceContext,
    ParentDeviceContext,
    NoClose,
    SaveBits,
    ByteAlignClient,
    ByteAlignWindow,
    GlobalClass,
    DropShadow,
}

Variants

VerticalRedraw

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

0x0001

HorizontalRedraw

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

0x0002

DoubleClicks

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.

0x0008

OwnDeviceContext

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

0x0020

ClassDeviceContext

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.

0x0040

ParentDeviceContext

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.

0x0080

NoClose

Disables Close on the window menu.

0x0200

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.

0x0800

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.

0x1000

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.

0x2000

GlobalClass

Indicates that the window class is an application global class. For more information, see the “Application Global Classes” section of About Window Classes.

0x4000

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.

0x00020000

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.