git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3161
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define wxWANTS_CHARS 0x00040000
// Make window retained (mostly Motif, I think)
#define wxWANTS_CHARS 0x00040000
// Make window retained (mostly Motif, I think)
-#define wxRETAINED 0x0002000
+#define wxRETAINED 0x00020000
#define wxBACKINGSTORE wxRETAINED
#define wxBACKINGSTORE wxRETAINED
+// don't invalidate the whole window (resulting in a PAINT event) when the
+// window is resized (currently, makes sense for wxMSW only)
+#define wxNO_FULLREPAINT_ON_RESIZE 0x00010000
/*
* wxFrame/wxDialog style flags
*/
/*
* wxFrame/wxDialog style flags
*/
// wxControl
//-----------------------------------------------------------------------------
// wxControl
//-----------------------------------------------------------------------------
-class wxControl : public wxControlBase
+class wxControl : public wxWindow
{
DECLARE_DYNAMIC_CLASS(wxControl)
{
DECLARE_DYNAMIC_CLASS(wxControl)
// wxControl
//-----------------------------------------------------------------------------
// wxControl
//-----------------------------------------------------------------------------
-class wxControl : public wxControlBase
+class wxControl : public wxWindow
{
DECLARE_DYNAMIC_CLASS(wxControl)
{
DECLARE_DYNAMIC_CLASS(wxControl)
void wxControl::SetLabel( const wxString &label )
{
void wxControl::SetLabel( const wxString &label )
{
for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
{
if ( *pc == _T('&') )
for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
{
if ( *pc == _T('&') )
{
wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") );
{
wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") );
- if ( !CreateBase(parent, id, pos, size, style, name) )
+ if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
{
wxFAIL_MSG(_T("window creation failed"));
}
{
wxFAIL_MSG(_T("window creation failed"));
}
void wxControl::SetLabel( const wxString &label )
{
void wxControl::SetLabel( const wxString &label )
{
for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
{
if ( *pc == _T('&') )
for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
{
if ( *pc == _T('&') )
{
wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") );
{
wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") );
- if ( !CreateBase(parent, id, pos, size, style, name) )
+ if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
{
wxFAIL_MSG(_T("window creation failed"));
}
{
wxFAIL_MSG(_T("window creation failed"));
}