git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1195
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
The arc is drawn in an anticlockwise direction from the start point to the end point.
The arc is drawn in an anticlockwise direction from the start point to the end point.
+\membersection{wxDC::DrawBitmap}\label{wxdcdrawbitmap}
+
+\func{void}{DrawBitmap}{\param{const wxBitmap\&}{ bitmap}, \param{long}{ x}, \param{long}{ y}, \param{bool}{ transparent}}
+
+Draw a bitmap on the device context at the specified point. If {\it transparent} is TRUE and the bitmap has
+a transparency mask, the bitmap will be drawn transparently.
+
\membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse}
\func{void}{DrawEllipse}{\param{long}{ x}, \param{long}{ y}, \param{long}{ width}, \param{long}{ height}}
\membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse}
\func{void}{DrawEllipse}{\param{long}{ x}, \param{long}{ y}, \param{long}{ width}, \param{long}{ height}}
\func{bool}{Write}{\param{ostream\& }{stream}}
\func{bool}{Write}{\param{ostream\& }{stream}}
+\func{bool}{Write}{\param{const wxString\&}{ filename}}
+
Writes the database as a Prolog-format file.
Writes the database as a Prolog-format file.
#include "wx/wx.h"
#endif
#include "wx/wx.h"
#endif
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
#include "mondrian.xpm"
#endif
#include "mondrian.xpm"
#endif
SendMessage((HWND) GetHWND(), BM_SETCHECK, (WPARAM)value, 0L);
}
SendMessage((HWND) GetHWND(), BM_SETCHECK, (WPARAM)value, 0L);
}
-// Get single selection, for single choice list items
bool wxRadioButton::GetValue(void) const
{
bool wxRadioButton::GetValue(void) const
{
- return (SendMessage((HWND) GetHWND(), BM_SETCHECK, 0, 0L) != 0);
+ return (SendMessage((HWND) GetHWND(), BM_GETCHECK, 0, 0L) != 0);
}
WXHBRUSH wxRadioButton::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
}
WXHBRUSH wxRadioButton::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
return (unsigned long)p_internal->tid;
}
return (unsigned long)p_internal->tid;
}
+bool wxThread::IsRunning() const
+{
+ return (p_internal->state == STATE_RUNNING);
+}
+
+bool wxThread::IsAlive() const
+{
+ return (p_internal->state == STATE_RUNNING);
+}
+
bool wxThread::IsMain()
{
return (GetCurrentThread() == p_mainid);
bool wxThread::IsMain()
{
return (GetCurrentThread() == p_mainid);
{
int currentX, currentY;
GetPosition(¤tX, ¤tY);
{
int currentX, currentY;
GetPosition(¤tX, ¤tY);
+ int currentW,currentH;
+ GetSize(¤tW, ¤tH);
+
+ if (x == currentX && y == currentY && width == currentW && height == currentH)
+ return;
+
int actualWidth = width;
int actualHeight = height;
int actualX = x;
int actualWidth = width;
int actualHeight = height;
int actualX = x;
AdjustForParentClientOrigin(actualX, actualY, sizeFlags);
AdjustForParentClientOrigin(actualX, actualY, sizeFlags);
- int currentW,currentH;
- GetSize(¤tW, ¤tH);
if (width == -1)
actualWidth = currentW ;
if (height == -1)
if (width == -1)
actualWidth = currentW ;
if (height == -1)