git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22248
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/msw/private.h"
#include "wx/msw/winundef.h"
#include "wx/msw/private.h"
#include "wx/msw/winundef.h"
-#ifdef CreateDialog
-#undef CreateDialog
-#endif
-
#include "wx/display.h"
#ifndef ICON_BIG
#include "wx/display.h"
#ifndef ICON_BIG
if ( exflags )
{
::SetWindowLong(GetHwnd(), GWL_EXSTYLE, exflags);
if ( exflags )
{
::SetWindowLong(GetHwnd(), GWL_EXSTYLE, exflags);
- ::SetWindowPos(GetHwnd(), NULL, 0, 0, 0, 0,
+ ::SetWindowPos(GetHwnd(),
+ exflags & WS_EX_TOPMOST ? HWND_TOPMOST : 0,
+ 0, 0, 0, 0,
SWP_NOSIZE |
SWP_NOMOVE |
SWP_NOSIZE |
SWP_NOMOVE |
+ (exflags & WS_EX_TOPMOST ? 0 : SWP_NOZORDER) |