#include "wx/dcscreen.h"
#endif
+#include "wx/stockitem.h"
#include "wx/msw/private.h"
// ----------------------------------------------------------------------------
bool wxButton::Create(wxWindow *parent,
wxWindowID id,
- const wxString& label,
+ const wxString& lbl,
const wxPoint& pos,
const wxSize& size,
long style,
const wxValidator& validator,
const wxString& name)
{
+ wxString label(lbl);
+ if (label.empty() && wxIsStockID(id))
+ label = wxGetStockLabel(id);
+
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
return false;