// object) - this log object is used by default by all wxLogXXX()
// functions.
virtual wxLog *CreateLogTarget()
- #if wxUSE_GUI && wxUSE_LOGGUI
+ #if wxUSE_GUI && wxUSE_LOGGUI && !defined(__WXMICROWIN__)
{ return new wxLogGui; }
#else // !GUI
{ return new wxLogStderr; }
#define wxTRANSLATE(str) _T(str)
-inline const wxChar *wxGetTranslation(const wxChar *sz) { return sz; }
+// Note: use of 'inline' here can cause this symbol not to be found when compiled with gcc
+//const wxChar *wxGetTranslation(const wxChar *sz);
+#define wxGetTranslation(sz) sz
#endif // wxUSE_INTL/!wxUSE_INTL
#define wxUSE_DIRDLG 0
#define wxUSE_FONTDLG 0
#define wxUSE_FILEDLG 0
-#define wxUSE_TEXTDLG 0
+#define wxUSE_FILEDLG 0
+#define wxUSE_COLOURDLG 0
#define wxUSE_CHOICEDLG 0
#define wxUSE_NUMBERDLG 0
#define wxUSE_STARTUP_TIPS 0
#define wxUSE_DIRDLG 0
#define wxUSE_FONTDLG 0
#define wxUSE_FILEDLG 0
+#define wxUSE_COLOURDLG 0
#define wxUSE_TEXTDLG 0
#define wxUSE_CHOICEDLG 0
#define wxUSE_NUMBERDLG 0
wx:
@pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
+
+wxfull:
+ @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd
#ifndef WX_PRECOMP
#include "wx/string.h"
- #include "wx/intl.h"
#include "wx/log.h"
#endif // WX_PRECOMP
+#include "wx/intl.h"
#include "wx/thread.h"
#include "wx/tokenzr.h"
#include "wx/module.h"
// --- --- --- generated code ends here --- --- ---
-
-
#endif // wxUSE_INTL
void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event)
{
// when we lose focus we always disappear
- m_popup->DismissAndNotify();
+
+ // But if m_popup was about to get the focus,
+ // don't disappear.
+ if (event.GetWindow() != m_popup)
+ m_popup->DismissAndNotify();
}
#endif // wxUSE_POPUPWIN
dlg = wxT("wxCaptionDialog");
else
dlg = wxT("wxNoCaptionDialog");
+
+#ifdef __WXMICROWIN__
+ extern const wxChar *wxFrameClassName;
+
+ int msflags = WS_OVERLAPPED;
+ if (style & wxCAPTION)
+ msflags |= WS_CAPTION;
+ if (style & wxCLIP_CHILDREN)
+ msflags |= WS_CLIPCHILDREN;
+ if ((style & wxTHICK_FRAME) == 0)
+ msflags |= WS_BORDER;
+ MSWCreate(m_windowId, parent, wxFrameClassName, this, NULL,
+ x, y, width, height,
+ msflags,
+ NULL,
+ extendedStyle);
+
+#else
MSWCreate(m_windowId, parent, NULL, this, NULL,
x, y, width, height,
0, // style is not used if we have dlg template
dlg,
extendedStyle);
-
+#endif
HWND hwnd = (HWND)GetHWND();
if ( !hwnd )
return FALSE;
}
+#ifndef __WXMICROWIN__
SubclassWin(GetHWND());
-
+#endif
+
SetWindowText(hwnd, title);
return TRUE;
void wxDisplaySize(int *width, int *height)
{
#ifdef __WXMICROWIN__
- // MICROWIN_TODO
- *width = 0; * height = 0;
+ RECT rect;
+ HWND hWnd = GetDesktopWindow();
+ ::GetWindowRect(hWnd, & rect);
+
+ *width = rect.right - rect.left;
+ *height = rect.bottom - rect.top;
#else
ScreenHDC dc;
if ( show )
{
+#ifdef __WXMICROWIN__
+ // It seems that MicroWindows brings the _parent_ of the
+ // window to the top, which can be the wrong one.
+
+ /* activate (set focus to) specified window*/
+ ::SetFocus(hWnd);
+
+ /* raise top level parent to top of z order*/
+ ::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0,
+ SWP_NOMOVE|SWP_NOSIZE);
+#else
BringWindowToTop(hWnd);
+#endif
}
return TRUE;
#ifdef __WIN16__
::BringWindowToTop(GetHwnd());
#else // Win32
+#ifdef __WXMICROWIN__
+ // It seems that MicroWindows brings the _parent_ of the
+ // window to the top, which can be the wrong one.
+
+ /* activate (set focus to) specified window*/
+ ::SetFocus(GetHwnd());
+
+ /* raise top level parent to top of z order*/
+ ::SetWindowPos(GetHwnd(), HWND_TOP, 0, 0, 0, 0,
+ SWP_NOMOVE|SWP_NOSIZE);
+#else
::SetForegroundWindow(GetHwnd());
#endif
+#endif
}
// Lower the window to the bottom of the Z order
wxAssociateWinWithHandle(hwnd, this);
m_oldWndProc = (WXFARPROC) GetWindowLong(hwnd, GWL_WNDPROC);
+
+ wxASSERT( (WXFARPROC) m_oldWndProc != (WXFARPROC) wxWndProc );
+
SetWindowLong(hwnd, GWL_WNDPROC, (LONG) wxWndProc);
}
wxWndHook = this;
+#ifndef __WXMICROWIN__
if ( dialog_template )
{
-#ifndef __WXMICROWIN__
// for the dialogs without wxDIALOG_NO_PARENT style, use the top level
// app window as parent - this avoids creating modal dialogs without
// parent
{
wxLogLastError(wxT("MoveWindow"));
}
-#endif
- // __WXMICROWIN__
}
else // creating a normal window, not a dialog
+#endif
+ // __WXMICROWIN__
{
int controlId = 0;
if ( style & WS_CHILD )
{
#if wxUSE_MENUS
PositionMenuBar();
-<<<<<<< framuniv.cpp
-#endif
-=======
-#endif // wxUSE_WAVE
+#endif // wxUSE_MENUS
->>>>>>> 1.4
event.Skip();
}
-<<<<<<< framuniv.cpp
-#if wxUSE_MENUS
-=======
#if wxUSE_MENUS
->>>>>>> 1.4
void wxFrame::PositionMenuBar()
{
if ( m_frameMenuBar )
GetClientSize().x, -1);
}
}
-<<<<<<< framuniv.cpp
-#endif // wxUSE_MENUS
-
-=======
-
#endif // wxUSE_MENUS
->>>>>>> 1.4
wxPoint wxFrame::GetClientAreaOrigin() const
{
wxPoint pt = wxFrameNative::GetClientAreaOrigin();
// show the menu if we know that we should, even if we hadn't been showing
// it before (this may happen if the previous menu was disabled)
- if ( m_shouldShowMenu )
+ if ( m_shouldShowMenu && !m_menuShown)
{
// open the new menu if the old one we closed had been opened
PopupCurrentMenu(FALSE /* don't select first item - as Windows does */);
DrawLine(dc, x2, y1, x2, y2, orient == wxVERTICAL);
}
-#if wxUSE_MENUS
// ----------------------------------------------------------------------------
// menu and menubar
// ----------------------------------------------------------------------------
GetMenuGeometry(wxWindow *, const wxMenu&) const;
};
-#endif // wxUSE_WAVE
+#endif // wxUSE_MENUS
// FIXME: all constants are hardcoded but shouldn't be
static const wxCoord MENU_LEFT_MARGIN = 9;
return gi;
}
-<<<<<<< win32.cpp
-#endif
-=======
#else // !wxUSE_MENUS
#endif // wxUSE_MENUS/!wxUSE_MENUS
->>>>>>> 1.5
// ----------------------------------------------------------------------------
// combobox
// ----------------------------------------------------------------------------