Ignore:
Timestamp:
Feb 2, 2001, 8:04:03 PM (25 years ago)
Author:
sandervl
Message:

class, dialog control size & drawedge fixes

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:30 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.20 2001-02-02 19:04:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    520520//FIXME: Windows that still exists with this class
    521521//******************************************************************************
    522 void Win32WndClass::UnregisterClassA(HINSTANCE hinst, LPSTR id)
     522BOOL Win32WndClass::UnregisterClassA(HINSTANCE hinst, LPSTR id)
    523523{
    524524  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));
    525530
    526531  wndclass = FindClass(hinst, id);
    527532  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        }
    528538        delete wndclass;
    529         return;
     539        SetLastError(ERROR_SUCCESS);
     540        return TRUE;
    530541  }
    531542  dprintf(("::UnregisterClass, couldn't find class %X!!\n", id));
     543  SetLastError(ERROR_CLASS_DOES_NOT_EXIST);
     544  return FALSE;
    532545}
    533546//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.