- EndPaint((HWND) GetHWND(), &ps);
- }
-
- if (!m_iconized)
- {
-// m_paintHDC = (WXHDC) cdc;
- GetEventHandler()->OldOnPaint();
-// m_paintHDC = NULL;
- }
- return 0;
- }
- return 1;
-}
-
-WXHICON wxFrame::MSWOnQueryDragIcon(void)
-{
- if (m_icon.Ok() && (m_icon.GetHICON() != 0))
- return m_icon.GetHICON();
- else
- return m_defaultIcon;
-}
-
-void wxFrame::MSWOnSize(const int x, const int y, const WXUINT id)
-{
-#if DEBUG > 1
- wxDebugMsg("wxFrameWnd::OnSize %d\n", m_hWnd);
-#endif
- switch (id)
- {
- case SIZEFULLSCREEN:
- case SIZENORMAL:
- m_iconized = FALSE;
- break;
- case SIZEICONIC:
- m_iconized = TRUE;
- break;
- }
-
- if (!m_iconized)
- {
- // forward WM_SIZE to status bar control
-#if USE_NATIVE_STATUSBAR
- if (m_frameStatusBar && m_frameStatusBar->IsKindOf(CLASSINFO(wxStatusBar95)))
- {
- wxSizeEvent event(wxSize(x, y), m_frameStatusBar->GetId());
- event.SetEventObject( m_frameStatusBar );
-
- ((wxStatusBar95 *)m_frameStatusBar)->OnSize(event);
- }
-#endif
-
- PositionStatusBar();
-#if WXWIN_COMPATIBILITY
- GetEventHandler()->OldOnSize(x, y);
-#else
- wxSizeEvent event(wxSize(x, y), m_windowId);
- event.SetEventObject( this );
- GetEventHandler()->ProcessEvent(event);
-#endif
- }
-}
-
-bool wxFrame::MSWOnClose(void)
-{
-#if DEBUG > 1
- wxDebugMsg("wxFrameWnd::OnClose %d\n", handle);
-#endif
- return Close();