}
#endif // !__WXWINCE__
+ if ( !title.empty() )
+ {
+ ::SetWindowText(GetHwnd(), title.wx_str());
+ }
+
+ SubclassWin(m_hWnd);
+
#if !defined(__WXWINCE__) || defined(__WINCE_STANDARDSDK__)
// move the dialog to its initial position without forcing repainting
int x, y, w, h;
// Let the system position the window, just set its size.
::SetWindowPos(GetHwnd(), 0,
0, 0, w, h,
- SWP_NOMOVE | SWP_NOZORDER);
+ SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
}
else // Move the window to the desired location and set its size too.
{
}
#endif // !__WXWINCE__
- if ( !title.empty() )
- {
- ::SetWindowText(GetHwnd(), title.wx_str());
- }
-
- SubclassWin(m_hWnd);
-
#ifdef __SMARTPHONE__
// Work around title non-display glitch
Show(false);