Migrated spinbox.cpp. Now for the containers I guess...
This commit is contained in:
parent
5d954712ea
commit
805e5f9811
|
@ -1,5 +1,5 @@
|
||||||
// 8 april 2015
|
// 8 april 2015
|
||||||
#include "uipriv_windows.h"
|
#include "uipriv_windows.hpp"
|
||||||
|
|
||||||
struct uiSpinbox {
|
struct uiSpinbox {
|
||||||
uiWindowsControl c;
|
uiWindowsControl c;
|
||||||
|
@ -68,8 +68,7 @@ static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
static void onDestroy(uiSpinbox *s)
|
static void onDestroy(uiSpinbox *s)
|
||||||
{
|
{
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(s->hwnd);
|
uiWindowsUnregisterWM_COMMANDHandler(s->hwnd);
|
||||||
if (DestroyWindow(s->updown) == 0)
|
uiWindowsEnsureDestroyWindow(s->updown);
|
||||||
logLastError("error destroying updown in spinboxCommitDestroy()");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void spinboxCommitSetParent(uiWindowsControl *c, HWND parent)
|
static void spinboxCommitSetParent(uiWindowsControl *c, HWND parent)
|
||||||
|
@ -117,7 +116,7 @@ static void recreateUpDown(uiSpinbox *s)
|
||||||
0, 0, 0, 0,
|
0, 0, 0, 0,
|
||||||
s->parent, NULL, hInstance, NULL);
|
s->parent, NULL, hInstance, NULL);
|
||||||
if (s->updown == NULL)
|
if (s->updown == NULL)
|
||||||
logLastError("error creating updown in recreateUpDown()");
|
logLastError(L"error creating updown");
|
||||||
SendMessageW(s->updown, UDM_SETBUDDY, (WPARAM) (s->hwnd), 0);
|
SendMessageW(s->updown, UDM_SETBUDDY, (WPARAM) (s->hwnd), 0);
|
||||||
if (preserve) {
|
if (preserve) {
|
||||||
SendMessageW(s->updown, UDM_SETRANGE32, (WPARAM) min, (LPARAM) max);
|
SendMessageW(s->updown, UDM_SETRANGE32, (WPARAM) min, (LPARAM) max);
|
Loading…
Reference in New Issue