LOGBRUSH lb;
lb.lbStyle = BS_PATTERN;
lb.lbHatch = (int)LoadBitmap( wxhInstance, "wxDISABLE_BUTTON_BITMAP" );
- wxDisableButtonBrush = ::CreateBrushIndirect( & lb );
- ::DeleteObject( (HGDIOBJ)lb.lbHatch );
+ if ( lb.lbHatch )
+ {
+ wxDisableButtonBrush = ::CreateBrushIndirect( & lb );
+ ::DeleteObject( (HGDIOBJ)lb.lbHatch );
+ }
+ //else: wxWindows resources are probably not linked in
#if wxUSE_PENWINDOWS
wxRegisterPenWin();
MSG msg;
// We want to go back to the main message loop
// if we see a WM_QUIT. (?)
+#ifdef __WXWINE__
+ while (PeekMessage(&msg, (HWND)NULL, 0, 0, PM_NOREMOVE) && msg.message != WM_QUIT)
+#else
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) && msg.message != WM_QUIT)
+#endif
{
if ( !wxTheApp->DoMessage() )
break;