diff --git a/docs/changes.txt b/docs/changes.txt index 92c19d41b4..73bfe8a433 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -142,6 +142,7 @@ wxMSW: - Use correct index of the right-clicked column in wxListCtrl in the corresponding event even when the control is scrolled horizontally. - Implement wxRadioBox::Reparent() correctly (Vince Harron). +- Make context sensitive help work for the text part of wxSpinCtrl. wxGTK: diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index bf56006ade..0b22a278e6 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -147,8 +147,7 @@ LRESULT APIENTRY _EXPORT wxBuddyTextWndProc(HWND hwnd, { wxSpinCtrl *spin = (wxSpinCtrl *)wxGetWindowUserData(hwnd); - // forward some messages (the key and focus ones only so far) to - // the spin ctrl + // forward some messages (mostly the key and focus ones) to the spin ctrl switch ( message ) { case WM_SETFOCUS: @@ -163,6 +162,12 @@ LRESULT APIENTRY _EXPORT wxBuddyTextWndProc(HWND hwnd, case WM_DEADCHAR: case WM_KEYUP: case WM_KEYDOWN: +#ifdef WM_HELP + // we need to forward WM_HELP too to ensure that the context help + // associated with wxSpinCtrl is shown when the text control part of it + // is clicked with the "?" cursor + case WM_HELP: +#endif spin->MSWWindowProc(message, wParam, lParam); // The control may have been deleted at this point, so check.