Changeset 5056 for trunk/src/user32/win32class.cpp
- Timestamp:
- Feb 2, 2001, 8:04:03 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32class.cpp
r4585 r5056 1 /* $Id: win32class.cpp,v 1. 19 2000-11-11 18:39:30sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.20 2001-02-02 19:04:02 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 520 520 //FIXME: Windows that still exists with this class 521 521 //****************************************************************************** 522 voidWin32WndClass::UnregisterClassA(HINSTANCE hinst, LPSTR id)522 BOOL Win32WndClass::UnregisterClassA(HINSTANCE hinst, LPSTR id) 523 523 { 524 524 Win32WndClass *wndclass; 525 526 if(HIWORD(id)) { 527 dprintf(("Win32WndClass::UnregisterClassA class %s, instance %x!!", id, hinst)); 528 } 529 else dprintf(("Win32WndClass::UnregisterClassA class %x, instance %x!!", id, hinst)); 525 530 526 531 wndclass = FindClass(hinst, id); 527 532 if(wndclass) { 533 if(wndclass->GetWindowCount() != 0) { 534 dprintf2(("Win32WndClass::UnregisterClassA class %x still has windows!!", id)); 535 SetLastError(ERROR_CLASS_HAS_WINDOWS); 536 return FALSE; 537 } 528 538 delete wndclass; 529 return; 539 SetLastError(ERROR_SUCCESS); 540 return TRUE; 530 541 } 531 542 dprintf(("::UnregisterClass, couldn't find class %X!!\n", id)); 543 SetLastError(ERROR_CLASS_DOES_NOT_EXIST); 544 return FALSE; 532 545 } 533 546 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.