#ifndef _WX_REPARENT_H_
#define _WX_REPARENT_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "reparent.h"
#endif
wxAdoptedWindow(WXWindow window);
~wxAdoptedWindow();
- void SetHandle(WXWindow window) { m_mainWidget = window; }
- WXWindow GetHandle() const { return GetXWindow(); }
+ void SetHandle(WXWindow window) { m_mainWindow = window; m_clientWindow = window; }
+ WXWindow GetHandle() const { return GetMainWindow(); }
};
#endif