X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0a6b27997bc37c69ebae7e5a6e84d0b1b816970..c9baf9d7381850790040b26b11cc9456877ddc4e:/src/os2/toplevel.cpp diff --git a/src/os2/toplevel.cpp b/src/os2/toplevel.cpp index b135598646..0362889309 100644 --- a/src/os2/toplevel.cpp +++ b/src/os2/toplevel.cpp @@ -35,6 +35,7 @@ #include "wx/log.h" #include "wx/intl.h" #include "wx/frame.h" + #include "wx/control.h" #endif //WX_PRECOMP #include "wx/os2/private.h" @@ -197,15 +198,15 @@ bool wxTopLevelWindowOS2::CreateDialog( } HWND hWndDlg; - HWND hWndParent; + HWND hWndOwner; if (pParent) - hWndParent = GetHwndOf(pParent); + hWndOwner = GetHwndOf(pParent); else - hWndParent = HWND_DESKTOP; + hWndOwner = HWND_DESKTOP; - hWndDlg = ::WinLoadDlg( hWndParent - ,hWndParent + hWndDlg = ::WinLoadDlg( HWND_DESKTOP + ,hWndOwner ,(PFNWP)wxDlgProc ,NULL ,(ULONG)ulDlgTemplate @@ -276,10 +277,6 @@ bool wxTopLevelWindowOS2::CreateDialog( ,nHeight ,SWP_MOVE | SWP_SIZE | SWP_ZORDER | SWP_SHOW ); - if (!rsTitle.IsNull()) - { - ::WinSetWindowText(GetHwnd(), rsTitle.c_str()); - } SubclassWin(m_hWnd); return TRUE; } // end of wxTopLevelWindowOS2::CreateDialog