-class wxFrame : public wxWindow {
-public:
- wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
- const wxPoint& pos = wxPyDefaultPosition,
- const wxSize& size = wxPyDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- char* name = "frame");
-
- void Centre(int direction = wxBOTH);
-#ifdef __WXMSW__
- void Command(int id);
-#endif
- bool CreateStatusBar(int number = 1);
- wxMenuBar* GetMenuBar();
- wxStatusBar* GetStatusBar();
-#ifdef __WXMSW__
- wxString& GetTitle();
-#else
- wxString GetTitle();
-#endif
-#ifdef __WXMSW__
- void Iconize(bool iconize);
- bool IsIconized();
- void SetAcceleratorTable(const wxAcceleratorTable& accel);
- void Maximize(bool maximize);
+%inline %{
+wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
+ wxWindow* win = new wxWindow;
+ win->SetHWND(hWnd);
+ win->SubclassWin(hWnd);
+ return win;
+}
+%}