// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "toplevel.h"
#endif
#include "wx/msw/private.h"
#include "wx/msw/winundef.h"
-#ifdef CreateDialog
-#undef CreateDialog
-#endif
-
#include "wx/display.h"
#ifndef ICON_BIG
if ( style & wxFRAME_TOOL_WINDOW )
msflags |= WS_POPUP;
else
- msflags |= WS_OVERLAPPED;
+ {
+#ifdef __WXWINCE__
+ if (msflags & WS_BORDER)
+#endif
+ msflags |= WS_OVERLAPPED;
+ }
// border and caption styles
if ( style & wxRESIZE_BORDER )
}
else if ( !(style & wxBORDER_NONE) )
msflags |= WS_BORDER;
+#ifndef __WXWINCE__
else
msflags |= WS_POPUP;
+#endif
if ( style & wxCAPTION )
msflags |= WS_CAPTION;
+#ifndef __WXWINCE__
else
msflags |= WS_POPUP;
+#endif
// next translate the individual flags
if ( style & wxMINIMIZE_BOX )
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_NOZORDER |
+ (exflags & WS_EX_TOPMOST ? 0 : SWP_NOZORDER) |
SWP_NOACTIVATE);
}
// the DialogProc for all wxWindows dialogs
LONG APIENTRY _EXPORT
-wxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
+wxDlgProc(HWND WXUNUSED(hDlg),
+ UINT message,
+ WPARAM WXUNUSED(wParam),
+ LPARAM WXUNUSED(lParam))
{
switch ( message )
{