*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,6 +52,8 @@ protected:
|
||||
|
||||
#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
|
||||
|
@@ -29,12 +29,6 @@ wxWindowList wxTopLevelWindows;
|
||||
// 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;
|
||||
|
@@ -44,8 +44,11 @@ public:
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
HRGN m_region;
|
||||
};
|
||||
|
||||
#define M_REGION (((wxRegionRefData*)m_refData)->m_region)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxRegion
|
||||
@@ -224,11 +227,12 @@ bool wxRegion::Empty() const
|
||||
// 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;
|
||||
}
|
||||
@@ -236,11 +240,12 @@ wxRegionContain wxRegion::Contains(long x, long y) const
|
||||
// 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;
|
||||
@@ -249,11 +254,12 @@ wxRegionContain wxRegion::Contains(const wxPoint& pt) const
|
||||
// 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;
|
||||
|
@@ -83,6 +83,8 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
m_hWnd = 0; // TODO: (WXHWND)scroll_bar;
|
||||
|
||||
HWND scroll_bar = 0; // temporary
|
||||
|
||||
// Subclass again for purposes of dialog editing mode
|
||||
SubclassWin((WXHWND) scroll_bar);
|
||||
|
||||
|
@@ -27,6 +27,7 @@
|
||||
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
|
||||
#endif
|
||||
|
||||
// Slider
|
||||
wxSlider::wxSlider()
|
||||
@@ -140,6 +141,7 @@ bool wxSlider::OS2OnScroll(int WXUNUSED(orientation), WXWORD wParam,
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
||||
int newPos = 0; //temporary
|
||||
SetValue(newPos);
|
||||
|
||||
wxScrollEvent event(scrollEvent, m_windowId);
|
||||
|
@@ -51,9 +51,6 @@ bool wxSpinButton::Create(
|
||||
|
||||
SetParent(parent);
|
||||
|
||||
m_min = 0;
|
||||
m_max = 100;
|
||||
|
||||
m_windowId = (id == -1) ? NewControlId() : id;
|
||||
|
||||
// TODO create spin button
|
||||
@@ -150,7 +147,7 @@ bool wxSpinButton::OS2OnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)
|
||||
bool wxSpinButton::OS2Command(WXUINT cmd, WXWORD id)
|
||||
{
|
||||
// No command messages
|
||||
return FALSE;
|
||||
|
@@ -41,10 +41,14 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
|
||||
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
|
||||
@@ -52,7 +56,27 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@@ -178,6 +178,8 @@ void wxStaticBox::OnEraseBackground(wxEraseEvent& event)
|
||||
|
||||
MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
{
|
||||
// TODO:
|
||||
/*
|
||||
if ( nMsg == WM_NCHITTEST)
|
||||
{
|
||||
int xPos = LOWORD(lParam); // horizontal position of cursor
|
||||
@@ -190,6 +192,7 @@ MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLP
|
||||
if (yPos < 10)
|
||||
return (long)HTCLIENT;
|
||||
}
|
||||
*/
|
||||
|
||||
return wxControl::OS2WindowProc(hwnd, nMsg, wParam, lParam);
|
||||
}
|
||||
|
Reference in New Issue
Block a user