Changeset 333 for trunk/src


Ignore:
Timestamp:
Jul 18, 1999, 9:55:32 PM (26 years ago)
Author:
cbratschi
Message:

Button resources

Location:
trunk/src/user32/new
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/button.cpp

    r317 r333  
    1010/* CB: todo
    1111   - window words not right implemented
     12   - update checkboxes.bmp to Win9x style
     13   - LoadBitmapA() doesn't work with native resources
    1214*/
    1315
     
    1921#include "controls.h"
    2022#include "button.h"
     23
     24#define BUTTONCLASSNAME "Button"
    2125
    2226//Prototypes
     
    906910    WNDCLASSA wndClass;
    907911
    908     if (GlobalFindAtomA ("BUTTON")) return;
     912    if (GlobalFindAtomA (BUTTONCLASSNAME)) return;
    909913
    910914    ZeroMemory (&wndClass, sizeof(WNDCLASSA));
    911     wndClass.style         = CS_GLOBALCLASS | CS_DBLCLKS;
     915    wndClass.style         = CS_GLOBALCLASS;
    912916    wndClass.lpfnWndProc   = (WNDPROC)ButtonWndProc;
    913917    wndClass.cbClsExtra    = 0;
     
    915919    wndClass.hCursor       = LoadCursorA (0, IDC_ARROWA);
    916920    wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
    917     wndClass.lpszClassName = "BUTTON";
     921    wndClass.lpszClassName = BUTTONCLASSNAME;
    918922
    919923    RegisterClassA (&wndClass);
     
    923927void BUTTON_Unregister()
    924928{
    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.