Unable to use RegisterClass(&WndClass);
Craig Chandler
craig.chandler at interdynamics.com
Thu Aug 9 21:37:54 CDT 2001
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 at baikal.ru]
Sent: Friday, 10 August 2001 13:02
To: Craig Chandler
Cc: wine-devel at winehq.com
Subject: Re: Unable to use RegisterClass(&WndClass);
"Craig Chandler" <craig.chandler at 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.
More information about the wine-devel
mailing list