Ignore:
Timestamp:
Jun 9, 2001, 4:50:26 PM (24 years ago)
Author:
sandervl
Message:

reference count (window + class objects) rewrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32class.h

    r5242 r5935  
    1 /* $Id: win32class.h,v 1.14 2001-02-22 10:37:30 sandervl Exp $ */
     1/* $Id: win32class.h,v 1.15 2001-06-09 14:50:20 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    1212
    1313#include <gen_object.h>
     14
     15#define RELEASE_CLASSOBJ(a)       { a->release(); a = NULL; }
    1416
    1517class Win32WndClass : public GenericObject
     
    5759          void  setMenuName(LPSTR newMenuName);
    5860
    59           void  IncreaseWindowCount()   { cWindows++; };
    60           void  DecreaseWindowCount()   { cWindows--; };
    61           DWORD GetWindowCount()        { return cWindows; };
    62 
    6361          BOOL  hasClassName(LPSTR classname, BOOL fUnicode = FALSE);
    6462
     
    6765 static   BOOL  UnregisterClassA(HINSTANCE hinst, LPSTR id);
    6866
     67 //Locates class in linked list and increases reference count (if found)
     68 //Class object must be unreferenced after usage
    6969 static Win32WndClass *FindClass(HINSTANCE hinst, LPSTR id);
    7070 static Win32WndClass *FindClass(HINSTANCE hinst, LPWSTR id);
     
    9797 ULONG          processId;
    9898
    99  //nr of windows created with this class
    100  ULONG          cWindows;
    101 
    10299 static GenericObject *wndclasses;
     100 static CRITICAL_SECTION critsect;
    103101};
    104102
Note: See TracChangeset for help on using the changeset viewer.