]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGTK compilation fixes
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Jul 1999 14:09:25 +0000 (14:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Jul 1999 14:09:25 +0000 (14:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/gtk/control.h
include/wx/gtk1/control.h
src/gtk/control.cpp
src/gtk/window.cpp
src/gtk1/control.cpp
src/gtk1/window.cpp

index f2449d0911a0a27ce0df8ad41e1b199a73df42d4..38d1da52e225c02f1cb07ac84a4a744b205f2262 100644 (file)
@@ -583,9 +583,12 @@ enum
 #define wxWANTS_CHARS           0x00040000
 
 // Make window retained (mostly Motif, I think)
-#define wxRETAINED              0x0002000
+#define wxRETAINED              0x00020000
 #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
  */
index 45d0ea230ec327f8ab532a6e4ad6c25f03565bff..f18f219d8c691229e212d30683432ae21183302e 100644 (file)
@@ -29,7 +29,7 @@ class wxControl;
 // wxControl
 //-----------------------------------------------------------------------------
 
-class wxControl : public wxControlBase
+class wxControl : public wxWindow
 {
     DECLARE_DYNAMIC_CLASS(wxControl)
 
index 45d0ea230ec327f8ab532a6e4ad6c25f03565bff..f18f219d8c691229e212d30683432ae21183302e 100644 (file)
@@ -29,7 +29,7 @@ class wxControl;
 // wxControl
 //-----------------------------------------------------------------------------
 
-class wxControl : public wxControlBase
+class wxControl : public wxWindow
 {
     DECLARE_DYNAMIC_CLASS(wxControl)
 
index e767eac88f3969030906664bbee9b954cafd90f9..578b12cb9fcdd8f3e7bceea2f76549ffd14934e6 100644 (file)
@@ -38,7 +38,7 @@ wxControl::wxControl( wxWindow *parent,
 
 void wxControl::SetLabel( const wxString &label )
 {
-    m_label = _T("");
+    m_label.Empty();
     for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
     {
         if ( *pc == _T('&') )
index 7e01371333a7d3f8727315aaf1aae07574853a10..a2d7b7536fcfbeacc016cdc52daf455a7ad37793 100644 (file)
@@ -2011,7 +2011,7 @@ void wxWindow::PreCreation( wxWindow *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"));
     }
index e767eac88f3969030906664bbee9b954cafd90f9..578b12cb9fcdd8f3e7bceea2f76549ffd14934e6 100644 (file)
@@ -38,7 +38,7 @@ wxControl::wxControl( wxWindow *parent,
 
 void wxControl::SetLabel( const wxString &label )
 {
-    m_label = _T("");
+    m_label.Empty();
     for ( const wxChar *pc = label; *pc != _T('\0'); pc++ )
     {
         if ( *pc == _T('&') )
index 7e01371333a7d3f8727315aaf1aae07574853a10..a2d7b7536fcfbeacc016cdc52daf455a7ad37793 100644 (file)
@@ -2011,7 +2011,7 @@ void wxWindow::PreCreation( wxWindow *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"));
     }