positive on the code working under all forms of windows (95, 98, me, nt, 2k), has been since 1997
-----Original Message----- From: Dmitry Timoshkov [mailto:dmitry@baikal.ru] Sent: Friday, 10 August 2001 13:02 To: Craig Chandler Cc: wine-devel@winehq.com Subject: Re: Unable to use RegisterClass(&WndClass);
"Craig Chandler" craig.chandler@interdynamics.com wrote:
WNDCLASS WndClass;
GetClassInfo(NULL, IF_BUTTON_NAME, &WndClass);
WndClass.lpszClassName = IF_BUTTON_NAME;
Use here different name for your own class. For instance "my_button"
WndClass.hInstance = hInstance; WndClass.hbrBackground = (HBRUSH)GetStockObject( LTGRAY_BRUSH );
WndClass.cbWndExtra = kIFWNDEXTRA;
IF_BUTTON_PROC = WndClass.lpfnWndProc; WndClass.lpfnWndProc = ButtonWndProcBridge;
return RegisterClass(&WndClass);
where IF_BUTTON_NAME = "button"
Are you sure that the code above works under Windows?
-- Dmitry.