"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.