added MSWControlColorDisabled and MSWControlColorSolid

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-19 20:35:41 +00:00
parent e6f3cbd272
commit a8da30af84

View File

@ -70,8 +70,6 @@ public:
const wxArrayLong& GetSubcontrols() const { return m_subControls; } const wxArrayLong& GetSubcontrols() const { return m_subControls; }
virtual WXHBRUSH MSWControlColor(WXHDC pDC);
protected: protected:
// choose the default border for this window // choose the default border for this window
virtual wxBorder GetDefaultBorder() const; virtual wxBorder GetDefaultBorder() const;
@ -118,6 +116,23 @@ protected:
// default style for the control include WS_TABSTOP if it AcceptsFocus() // default style for the control include WS_TABSTOP if it AcceptsFocus()
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
// default handling of WM_CTLCOLORxxx
virtual WXHBRUSH MSWControlColor(WXHDC pDC);
// call this from the derived class MSWControlColor() if you want to show
// the control greyed out
WXHBRUSH MSWControlColorDisabled(WXHDC pDC);
// call this from the derived class MSWControlColor() if you want to always
// paint the background (as all opaque controls do)
WXHBRUSH MSWControlColorSolid(WXHDC pDC)
{
return MSWControlColorSolid(pDC, GetBackgroundColour());
}
// common part of the 3 methods above
WXHBRUSH MSWControlColorSolid(WXHDC pDC, wxColour colBg);
// this is a helper for the derived class GetClassDefaultAttributes() // this is a helper for the derived class GetClassDefaultAttributes()
// implementation: it returns the right colours for the classes which // implementation: it returns the right colours for the classes which
// contain something else (e.g. wxListBox, wxTextCtrl, ...) instead of // contain something else (e.g. wxListBox, wxTextCtrl, ...) instead of