fixed focus tracking for spin controls (patch from Dimitri)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,9 +85,12 @@ LRESULT APIENTRY _EXPORT wxBuddyTextWndProc(HWND hwnd,
|
|||||||
{
|
{
|
||||||
wxSpinCtrl *spin = (wxSpinCtrl *)::GetWindowLong(hwnd, GWL_USERDATA);
|
wxSpinCtrl *spin = (wxSpinCtrl *)::GetWindowLong(hwnd, GWL_USERDATA);
|
||||||
|
|
||||||
// forward some messages (the key ones only so far) to the spin ctrl
|
// forward some messages (the key and focus ones only so far) to
|
||||||
|
// the spin ctrl
|
||||||
switch ( message )
|
switch ( message )
|
||||||
{
|
{
|
||||||
|
case WM_SETFOCUS:
|
||||||
|
case WM_KILLFOCUS:
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
case WM_DEADCHAR:
|
case WM_DEADCHAR:
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
|
Reference in New Issue
Block a user