X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd307ee1f13834bdfe43a0964db657bcd860142..d42508c2a026d505d39c386b233de4a1b51f1445:/include/wx/os2/choice.h?ds=sidebyside diff --git a/include/wx/os2/choice.h b/include/wx/os2/choice.h index f124982646..6289745486 100644 --- a/include/wx/os2/choice.h +++ b/include/wx/os2/choice.h @@ -28,7 +28,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxChoiceNameStr) { Create(parent, id, pos, size, n, choices, style, validator, name); @@ -39,7 +41,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxChoiceNameStr); // Implement base class virtuals @@ -57,7 +61,7 @@ public: // OS2 only virtual bool OS2Command(WXUINT param, WXWORD id); - MRESULT OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); protected: virtual void DoSetItemClientData( int n, void* clientData ); @@ -66,7 +70,7 @@ protected: virtual wxClientData* DoGetItemClientObject( int n ) const; // OS2 implementation - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);