X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d99be5f5381dad56492da02c2df1c3ec0750926..9739d9ee8090965862ba623b09a8fba731dc3d5c:/include/wx/msw/control.h diff --git a/include/wx/msw/control.h b/include/wx/msw/control.h index 0005193c7c..9f3b15938b 100644 --- a/include/wx/msw/control.h +++ b/include/wx/msw/control.h @@ -73,11 +73,22 @@ protected: // create the control of the given class with the given style, returns FALSE // if creation failed - bool MSWCreateControl(const wxChar *classname, WXDWORD style); + // + // All parameters except classname and style are optional, if the + // size/position are not given, they should be set later with SetSize() and, + // label (the title of the window), of course, is left empty. The extended + // style is determined from the style and the app 3D settings automatically + // if it's not specified explicitly. + bool MSWCreateControl(const wxChar *classname, + WXDWORD style, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + const wxString& label = wxEmptyString, + WXDWORD exstyle = (WXDWORD)-1); // determine the extended styles combination for this window (may slightly - // modify styl parameter) - WXDWORD GetExStyle(WXDWORD& style) const; + // modify style parameter, this is why it's non const) + WXDWORD GetExStyle(WXDWORD& style, bool *want3D) const; private: DECLARE_EVENT_TABLE()