#include "wx/log.h"
#include "wx/intl.h"
#include "wx/frame.h"
+ #include "wx/control.h"
#endif //WX_PRECOMP
#include "wx/os2/private.h"
}
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
,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