Skip to content

Commit

Permalink
Fixed uiSpinbox events not working on Windows. NOW let's alpha 3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
andlabs committed Jun 5, 2016
1 parent 02d09bd commit eeb20c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/spinbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void uiSpinboxDestroy(uiControl *c)
{
uiSpinbox *s = uiSpinbox(c);

uiWindowsUnregisterWM_COMMANDHandler(s->hwnd);
uiWindowsUnregisterWM_COMMANDHandler(s->edit);
uiWindowsEnsureDestroyWindow(s->updown);
uiWindowsEnsureDestroyWindow(s->edit);
uiWindowsEnsureDestroyWindow(s->hwnd);
Expand Down Expand Up @@ -202,7 +202,7 @@ uiSpinbox *uiNewSpinbox(intmax_t min, intmax_t max)
TRUE);
uiWindowsEnsureSetParentHWND(s->edit, s->hwnd);

uiWindowsRegisterWM_COMMANDHandler(s->hwnd, onWM_COMMAND, uiControl(s));
uiWindowsRegisterWM_COMMANDHandler(s->edit, onWM_COMMAND, uiControl(s));
uiSpinboxOnChanged(s, defaultOnChanged, NULL);

recreateUpDown(s);
Expand Down

0 comments on commit eeb20c3

Please sign in to comment.