Don't fail to register remaining window classes if
one fails to register Set window proc for non-control windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -338,8 +338,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(frame)"));
|
wxLogLastError(wxT("RegisterClass(frame)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// "no redraw" frame
|
// "no redraw" frame
|
||||||
@@ -349,8 +347,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(no redraw frame)"));
|
wxLogLastError(wxT("RegisterClass(no redraw frame)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register the MDI frame window class.
|
// Register the MDI frame window class.
|
||||||
@@ -361,8 +357,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(MDI parent)"));
|
wxLogLastError(wxT("RegisterClass(MDI parent)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// "no redraw" MDI frame
|
// "no redraw" MDI frame
|
||||||
@@ -372,8 +366,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(no redraw MDI parent frame)"));
|
wxLogLastError(wxT("RegisterClass(no redraw MDI parent frame)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register the MDI child frame window class.
|
// Register the MDI child frame window class.
|
||||||
@@ -384,8 +376,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(MDI child)"));
|
wxLogLastError(wxT("RegisterClass(MDI child)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// "no redraw" MDI child frame
|
// "no redraw" MDI child frame
|
||||||
@@ -395,8 +385,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
if ( !RegisterClass(&wndclass) )
|
if ( !RegisterClass(&wndclass) )
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("RegisterClass(no redraw MDI child)"));
|
wxLogLastError(wxT("RegisterClass(no redraw MDI child)"));
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@@ -430,7 +430,10 @@ bool wxWindowMSW::Create(wxWindow *parent,
|
|||||||
msflags |= WS_VISIBLE;
|
msflags |= WS_VISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle);
|
bool retValue = MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle);
|
||||||
|
if (retVal)
|
||||||
|
SetWindowLong( (HWND)m_hWnd, GWL_WNDPROC, (LONG)wxWndProc);
|
||||||
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user