bool wxButton::MSWCommand(WXUINT param, WXWORD id)
{
- if (param == BN_CLICKED)
+ if (param == BN_CLICKED || (param == 1)) // 1 for accelerator
{
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, id);
event.SetEventObject(this);
if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
y1 = currentY;
+ AdjustForParentClientOrigin(x1, y1, sizeFlags);
+
int actualWidth = width;
int actualHeight = height;
int ww, hh;
if (parent)
{
- SendMessage((HWND) parent->GetHWND(), DM_SETDEFID, m_windowId, 0L);
+ SendMessage((HWND)parent->GetHWND(), DM_SETDEFID, m_windowId, 0L);
}
+
+ SendMessage((HWND)GetHWND(), BM_SETSTYLE, BS_DEFPUSHBUTTON, 1L);
}
wxString wxButton::GetLabel(void) const