]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/reparent.h
Wrap <commdlgs.h> as <commctls.h>. Required makefiles rebuilded.
[wxWidgets.git] / include / wx / x11 / reparent.h
index 815024d40bdf4e6cebf6f0040b5eaf4094310d75..b98f70c918aba7d3e4b9977c726abdba79f4d72a 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_REPARENT_H_
 #define _WX_REPARENT_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "reparent.h"
 #endif
 
@@ -63,7 +63,7 @@ class wxAdoptedWindow: public wxWindow
     wxAdoptedWindow(WXWindow window);
     ~wxAdoptedWindow();
 
-    void SetHandle(WXWindow window) { m_mainWindow = window; }
+    void SetHandle(WXWindow window) { m_mainWindow = window; m_clientWindow = window; }
     WXWindow GetHandle() const { return GetMainWindow(); }
 };