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
pub unsafe fn register(
&self,
class_name: *const u16,
style: u32,
window_procedire: Option<unsafe extern "system" fn(_: HWND, _: u32, _: usize, _: isize) -> isize>,
class_extra_data: i32,
window_extra_data: i32,
instance: HINSTANCE,
window_icon: HICON,
small_window_icon: HICON,
cursor: HICON,
background: HBRUSH,
menu_name: *const u16
) -> u16
pub unsafe fn register(
&self,
class_name: *const u16,
style: u32,
window_procedire: Option<unsafe extern "system" fn(_: HWND, _: u32, _: usize, _: isize) -> isize>,
class_extra_data: i32,
window_extra_data: i32,
instance: HINSTANCE,
window_icon: HICON,
small_window_icon: HICON,
cursor: HICON,
background: HBRUSH,
menu_name: *const u16
) -> u16
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
..