An object of class wxWindow must have a parent. Therefore, you cannot create an object of class wxWindow to be your top level window. Your top level window should be either of type wxFrame or wxDialog. In fact, you should probably rarely create an object using wxWindow. See wxPanel.
This forces a mouse to keep the position it had when it left a window. If you call this while the cursor is in the 'double-arrow stance, it will keep that. However, if it has the normal arrow position when it is called, it will make the cursor turn into a wait stance while it is over the specified window.
Centers the window on its parent. direction can be wxHORIZONTAL, wxVERTICAL or wxBOTH.
Calls the close handler for the window, providing an opportunity for the window to choose whether to destroy the window. Usually it is only used with the top level windows (wxFrame and wxDialog classes) as the others are not supposed to have any special OnClose() logic. The close handler should check whether the window is being deleted forcibly, using can_veto, in which case it should destroy the window.
Note that calling Close does not guarantee that the window will be destroyed; but it provides a way to simulate a manual close of a window, which may or may not be implemented by destroying the window. The default implementation of wxDialog::OnCloseWindow does not necessarily delete the dialog, since it will simply simulate an wxID_CANCEL event which is handled by the appropriate button event handler and may do anything at all.
To guarantee that the window will be destroyed, call destroy instead
Returns the id for objects that are derived from class wxWindow. This includes frames, windows and most controls, but does not include menu items. You should use get_menuitem_id() for that.
Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or NULL.
Returns the built-in scrollbar position.
orient is either wxVERTICAL or wxHORIZONTAL
Return the sizer associated with the window by a previous call to set_sizer() or NULL.
Returns the style flag for the specified window.
Forces a wxWindow to repaint itself. params can take one of several forms:
This releases the mouse position after capture_mouse has been called.
This resets the title of a wxFrame and allows you to put whatever you want in it's place. You can use set_icon to change the icon beside of it.
Set the style for the specified window.
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. If a menu item is selected, the corresponding menu event is generated and will be processed as usually. If the coordinates are not specified, the current mouse cursor position is used.