use MSWCreateControl() instead of the old mess; implemented Get(Class)DefaultAttributes()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-04-01 00:15:07 +00:00
parent 39c7a53c9b
commit 7a69cd967a
2 changed files with 62 additions and 82 deletions

View File

@@ -129,9 +129,20 @@ public:
// Windows callbacks
bool MSWCommand(WXUINT param, WXWORD id);
virtual void SetupColours();
virtual wxVisualAttributes GetDefaultAttributes() const
{
return GetClassDefaultAttributes(GetWindowVariant());
}
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL)
{
return GetCompositeControlsDefaultAttributes(variant);
}
protected:
WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
// free memory (common part of Clear() and dtor)
void Free();