Struct cat_engine_basement::windows::core::window_class::WindowClass[][src]

pub struct WindowClass;
Expand description

All window classes that an application registers are unregistered when it terminates.

No window classes registered by a DLL are unregistered when the DLL is unloaded. A DLL must explicitly unregister its classes when it is unloaded.

Before calling WindowClass::unregister, an application must destroy all windows created with the specified class.

Implementations

Registers a window class for subsequent use in calls to the Window::create function.

If the function succeeds, the return value is a class atom that uniquely identifies the class being registered. If the function fails, the return value is zero. To get extended error information, call WindowsCore::get_last_error.

Unregisters a window class, freeing the memory required for the class.

name is a null-terminated string or a class atom. If name is a string, it specifies the window class name. The atom must be in the low-order word of name; the high-order word must be zero.

If the function succeeds, the return value is true. If the class could not be found or if a window still exists that was created with the class, the return value is false. To get extended error information, call WindowsCore::get_last_error.

Retrieves information about a window class, including a handle to the small icon associated with the window class. The function does not retrieve a handle to the small icon.

name is a null-terminated string or a class atom. If name is a string, it specifies the window class name. The atom must be in the low-order word of name; the high-order word must be zero.

If the function finds a matching class and successfully copies the data, the return value is true. If the function does not find a matching class and successfully copy the data, the return value is flase. To get extended error information, call WindowsCore::get_last_error..

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 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.