// macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
-#endif
// ============================================================================
// implementation
const wxPoint& pos,
const wxSize& size, long style,
#if wxUSE_VALIDATORS
-# if defined(__VISAGECPP__)
- const wxValidator* validator,
-# else
const wxValidator& validator,
-# endif
#endif
const wxString& name)
{
// Subclass again for purposes of dialog editing mode
SubclassWin(m_hWnd);
+ LONG lColor = (LONG)m_backgroundColour.GetPixel();
+
+ ::WinSetPresParam( m_hWnd
+ ,PP_BACKGROUNDCOLOR
+ ,sizeof(LONG)
+ ,(PVOID)&lColor
+ );
+
SetFont(parent->GetFont());
SetSize(x, y, width, height);
// TODO
}
-wxSize wxCheckBox::DoGetBestSize()
+wxSize wxCheckBox::DoGetBestSize() const
{
int wCheckbox, hCheckbox;
const wxPoint& pos,
const wxSize& size, long style,
#if wxUSE_VALIDATORS
-# if defined(__VISAGECPP__)
- const wxValidator* validator,
-# else
const wxValidator& validator,
-# endif
#endif
const wxString& name)
{
checkWidth = -1 ;
checkHeight = -1 ;
- long msStyle = CHECK_FLAGS;
+// long msStyle = CHECK_FLAGS;
HWND wx_button = 0; // TODO: Create the bitmap checkbox