wxsizeeventa size event holds information about size change events. the evt_size handler function will be called when the window has been resized. you may wish to use this for frames to resize their child windows as appropriate. note that the size passed is of the whole window: call wxwindow::getclientsize for the area which may be used by the application. when a window is resized, usually only a small part of the window is damaged and you may only need to repaint that area. however, if your drawing depends on the size of the window, you may need to clear the dc explicitly and repaint the whole window. in which case, you may need to call wxwindow::refresh to invalidate the entire window. derived from include files <wx/event.h> event table macros to process a size event, use this event handler macro to direct input to a member function that takes a wxsizeevent argument.
wxsize, event handling overview members
wxsizeevent::wxsizeevent
wxsizeevent::wxsizeeventwxsizeevent(const wxsize& sz, int id = 0) constructor.
wxsizeevent::getsizewxsize getsize() const returns the entire size of the window generating the size change event.
|