X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/239c2e9674c8c6b9f0fd3d6fb94e2381691651b5..5a224901b8ede55e1db9980f0fcaf7d2cb49285f:/src/os2/frame.cpp?ds=sidebyside diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index a273ada371..f0a4438e16 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -923,9 +923,10 @@ bool wxFrame::HandlePaint() // // Icons in PM are the same as "pointers" // + const wxIcon& vIcon = GetIcon(); HPOINTER hIcon; - if (m_icon.Ok()) + if (vIcon.Ok()) hIcon = (HPOINTER)::WinSendMsg(m_hFrame, WM_QUERYICON, 0L, 0L); else hIcon = (HPOINTER)m_hDefaultIcon; @@ -1079,7 +1080,6 @@ bool wxFrame::HandleSize( vEvent.SetEventObject(this); bProcessed = GetEventHandler()->ProcessEvent(vEvent); - AlterChildPos(); } return bProcessed; } // end of wxFrame::HandleSize @@ -1380,9 +1380,10 @@ MRESULT wxFrame::OS2WindowProc( case CM_QUERYDRAGIMAGE: { + const wxIcon& vIcon = GetIcon(); HPOINTER hIcon; - if (m_icon.Ok()) + if (vIcon.Ok()) hIcon = (HPOINTER)::WinSendMsg(GetHWND(), WM_QUERYICON, 0L, 0L); else hIcon = (HPOINTER)m_hDefaultIcon;