 |
UnregisterClass ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Unregisters a window class, freeing the memory required for the class. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI UnregisterClass(
__in LPCTSTR lpClassName,
__in_opt HINSTANCE hInstance
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER UnregisterClass IN user32;
STRING lpClassName,;
INTEGER hInstance
|
 |
 |
 |
| Parameters: |
 |
lpClassName [in]
Type: LPCTSTR
A null-terminated string or a class atom.
hInstance [in, optional]
Type: HINSTANCE
A handle to the instance of the module that created the class. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Usage: |
 |
= UnregisterClass( m.ClassName,;
GetModuleHandle(0) )
|
 |
 |
| My comment: |
 |
The class name must have been registered by a previous call to the RegisterClass or RegisterClassEx function.
Before calling this function, an application must destroy all windows created with the specified class.
All window classes that an application registers are unregistered when it terminates. |
 |
 |
| Word Index links for the UnregisterClass : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-09-16 18:52:09 | | Modified: | 2011-09-16 18:55:02 | Visited in last 7 days: 8 |