- Timestamp:
- Jul 18, 1999, 9:55:32 PM (26 years ago)
- Location:
- trunk/src/user32/new
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/button.cpp
r317 r333 10 10 /* CB: todo 11 11 - window words not right implemented 12 - update checkboxes.bmp to Win9x style 13 - LoadBitmapA() doesn't work with native resources 12 14 */ 13 15 … … 19 21 #include "controls.h" 20 22 #include "button.h" 23 24 #define BUTTONCLASSNAME "Button" 21 25 22 26 //Prototypes … … 906 910 WNDCLASSA wndClass; 907 911 908 if (GlobalFindAtomA ( "BUTTON")) return;912 if (GlobalFindAtomA (BUTTONCLASSNAME)) return; 909 913 910 914 ZeroMemory (&wndClass, sizeof(WNDCLASSA)); 911 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;915 wndClass.style = CS_GLOBALCLASS; 912 916 wndClass.lpfnWndProc = (WNDPROC)ButtonWndProc; 913 917 wndClass.cbClsExtra = 0; … … 915 919 wndClass.hCursor = LoadCursorA (0, IDC_ARROWA); 916 920 wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1); 917 wndClass.lpszClassName = "BUTTON";921 wndClass.lpszClassName = BUTTONCLASSNAME; 918 922 919 923 RegisterClassA (&wndClass); … … 923 927 void BUTTON_Unregister() 924 928 { 925 if (GlobalFindAtomA ( "BUTTON"))926 UnregisterClassA ( "BUTTON", (HINSTANCE)NULL);927 } 929 if (GlobalFindAtomA (BUTTONCLASSNAME)) 930 UnregisterClassA (BUTTONCLASSNAME, (HINSTANCE)NULL); 931 }
Note:
See TracChangeset
for help on using the changeset viewer.