// wxFrame
// ----------------------------------------------------------------------------
+#if defined(__WXMSW__)
+#define wxFrameNative wxFrameMSW
+#elif defined(__WXGTK__)
+#define wxFrameNative wxFrameGTK
+#elif defined(__WXMGL__)
+#define wxFrameNative wxFrameMGL
+#endif
+
class wxFrame : public wxFrameNative
{
public:
#define wxUSE_TIMER 1
#define wxUSE_STOPWATCH 1
#define wxUSE_TIMEDATE 0
-#define wxUSE_DATETIME 0
+#define wxUSE_DATETIME 1
#define wxUSE_CONFIG 0
#define wxUSE_CONFIG_NATIVE 0
#define wxUSE_DIALUP_MANAGER 0
#define wxUSE_NOTEBOOK 1
#define wxUSE_FONTMAP 0
#define wxUSE_MIMETYPE 0
+#define wxUSE_IMAGE 1
#define wxUSE_CONTROLS 1
#define wxUSE_POPUPWIN 1
// wxWindow
// ----------------------------------------------------------------------------
+#if defined(__WXMSW__)
+#define wxWindowNative wxWindowMSW
+#elif defined(__WXGTK__)
+#define wxWindowNative wxWindowGTK
+#elif defined(__WXMGL__)
+#define wxWindowNative wxWindowMGL
+#endif
+
class WXDLLEXPORT wxWindow : public wxWindowNative
{
public:
m_scaleX =
m_scaleY = 1.0;
+#if wxUSE_MOUSEWHEEL
m_wheelRotation = 0;
+#endif
m_win =
m_targetWindow = (wxWindow *)NULL;
// Don't yet process menu help events, just windows
if (info->iContextType == HELPINFO_WINDOW)
{
- wxWindow* subjectOfHelp = this;
+ wxWindowMSW* subjectOfHelp = this;
bool eventProcessed = FALSE;
while (subjectOfHelp && !eventProcessed)
{
return GetEventHandler()->ProcessEvent(event);
}
-#if wxUSE_SPINCTRL
+#if wxUSE_SPINCTRL && !defined(__WXUNIVERSAL__)
else
{
// the text ctrl which is logically part of wxSpinCtrl sends WM_COMMAND
}
-bool wxWindow::HandleMouseWheel(WXWPARAM wParam, WXLPARAM lParam)
+bool wxWindowMSW::HandleMouseWheel(WXWPARAM wParam, WXLPARAM lParam)
{
#if wxUSE_MOUSEWHEEL
wxMouseEvent event(wxEVT_MOUSEWHEEL);
// spin control text buddy window should be mapped to spin ctrl
// itself so try it too
-#if wxUSE_SPINCTRL
+#if wxUSE_SPINCTRL && !defined(__WXUNIVERSAL__)
if ( !win )
{
win = wxSpinCtrl::GetSpinForTextCtrl((WXHWND)hwnd);