#if defined(__WXMSW__) && defined(__WIN32__)
#include "wx/msw/spinctrl.h"
+#elif defined(__WXPM__)
+ #include "wx/os2/spinctrl.h"
#elif defined(__WXGTK__)
#include "wx/gtk/spinctrl.h"
#else // Win16 || !Win
// List of windows pending deletion
wxList WXDLLEXPORT wxPendingDelete;
-// List of events pending processing
-#if wxUSE_THREADS
-wxList *wxPendingEvents = NULL;
-wxCriticalSection *wxPendingEventsLocker = NULL;
-#endif
-
// Current cursor, in order to hang on to
// cursor handle when setting the cursor globally
wxCursor *g_globalCursor = NULL;
// TODO
}
+
+ HRGN m_region;
};
+#define M_REGION (((wxRegionRefData*)m_refData)->m_region)
//-----------------------------------------------------------------------------
// wxRegion
// Does the region contain the point (x,y)?
wxRegionContain wxRegion::Contains(long x, long y) const
{
+ bool bOK = FALSE; // temporary
if (!m_refData)
return wxOutRegion;
// TODO. Return wxInRegion if within region.
- if (0)
+ if (bOK)
return wxInRegion;
return wxOutRegion;
}
// Does the region contain the point pt?
wxRegionContain wxRegion::Contains(const wxPoint& pt) const
{
+ bool bOK = FALSE; // temporary
if (!m_refData)
return wxOutRegion;
// TODO. Return wxInRegion if within region.
- if (0)
+ if (bOK)
return wxInRegion;
else
return wxOutRegion;
// Does the region contain the rectangle (x, y, w, h)?
wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const
{
+ bool bOK = FALSE; // temporary
if (!m_refData)
return wxOutRegion;
// TODO. Return wxInRegion if within region.
- if (0)
+ if (bOK)
return wxInRegion;
else
return wxOutRegion;
parent->AddChild(this);
SetName(name);
SetValidator(validator);
-
+
SetBackgroundColour(parent->GetBackgroundColour()) ;
SetForegroundColour(parent->GetForegroundColour()) ;
m_windowStyle = style;
m_hWnd = 0; // TODO: (WXHWND)scroll_bar;
+ HWND scroll_bar = 0; // temporary
+
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND) scroll_bar);
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
+#endif
// Slider
wxSlider::wxSlider()
return TRUE;
}
*/
+ int newPos = 0; //temporary
SetValue(newPos);
wxScrollEvent event(scrollEvent, m_windowId);
SetParent(parent);
- m_min = 0;
- m_max = 100;
-
m_windowId = (id == -1) ? NewControlId() : id;
// TODO create spin button
return FALSE;
}
-bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)
+bool wxSpinButton::OS2Command(WXUINT cmd, WXWORD id)
{
// No command messages
return FALSE;
long style,
const wxString& name)
{
- m_messageBitmap = bitmap;
+ Init();
+
SetName(name);
if (parent) parent->AddChild(this);
+ m_backgroundColour = parent->GetBackgroundColour() ;
+ m_foregroundColour = parent->GetForegroundColour() ;
+
if ( id == -1 )
m_windowId = (int)NewControlId();
else
m_windowStyle = style;
+ int x = pos.x;
+ int y = pos.y;
+ int width = size.x;
+ int height = size.y;
+
+ m_windowStyle = style;
+
+ m_isIcon = bitmap.IsKindOf(CLASSINFO(wxIcon));
+
// TODO: create static bitmap control
+ wxCHECK_MSG( m_hWnd, FALSE, wxT("Failed to create static bitmap") );
+
+ SetBitmap(bitmap);
+
+ // Subclass again for purposes of dialog editing mode
+ SubclassWin(m_hWnd);
+
+ SetFont(GetParent()->GetFont());
+
+ SetSize(x, y, width, height);
+
return FALSE;
}
/*
* Group box
*/
-
+
bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
const wxString& label,
const wxPoint& pos,
MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
{
+ // TODO:
+/*
if ( nMsg == WM_NCHITTEST)
{
int xPos = LOWORD(lParam); // horizontal position of cursor
if (yPos < 10)
return (long)HTCLIENT;
}
+*/
return wxControl::OS2WindowProc(hwnd, nMsg, wParam, lParam);
}