More fixes.
This commit is contained in:
parent
5236aa5855
commit
158db39b68
|
@ -97,7 +97,7 @@ BOOL runWM_NOTIFY(WPARAM wParam, LPARAM lParam, LRESULT *lResult)
|
|||
{
|
||||
HWND hwnd;
|
||||
NMHDR *arg3;
|
||||
BOOL (*handler)(uiControl *, HWND, WORD, LRESULT *);
|
||||
BOOL (*handler)(uiControl *, HWND, NMHDR *, LRESULT *);
|
||||
uiControl *c;
|
||||
|
||||
arg3 = (NMHDR *) lParam;
|
||||
|
|
|
@ -56,7 +56,7 @@ static void groupRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_t
|
|||
uiGroup *g = uiGroup(c);
|
||||
uiWindowsSizing *d;
|
||||
|
||||
uiWindowsEnsureMoveWindow(g->hwnd, x, y, width, height);
|
||||
uiWindowsEnsureMoveWindowDuringResize(g->hwnd, x, y, width, height);
|
||||
|
||||
if (g->child == NULL)
|
||||
return;
|
||||
|
|
|
@ -80,7 +80,7 @@ static void radiobuttonsRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, in
|
|||
intmax_t h;
|
||||
HWND hwnd;
|
||||
|
||||
uiWindowsEnsureMoveWindow(r->hwnd, x, y, width, height);
|
||||
uiWindowsEnsureMoveWindowDuringResize(r->hwnd, x, y, width, height);
|
||||
|
||||
x = 0;
|
||||
y = 0;
|
||||
|
@ -91,7 +91,7 @@ static void radiobuttonsRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, in
|
|||
h = height1;
|
||||
if (h > height) // clip to height
|
||||
h = height;
|
||||
uiWindowsEnsureMoveWindow(hwnd, x, y, width, h);
|
||||
uiWindowsEnsureMoveWindowDuringResize(hwnd, x, y, width, h);
|
||||
y += height1;
|
||||
height -= height1;
|
||||
if (height <= 0) // clip to height
|
||||
|
|
|
@ -133,7 +133,7 @@ static void spinboxRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_
|
|||
{
|
||||
uiSpinbox *s = uiSpinbox(c);
|
||||
|
||||
uiWindowsEnsureMoveWindow(s->hwnd, x, y, width, height);
|
||||
uiWindowsEnsureMoveWindowDuringResize(s->hwnd, x, y, width, height);
|
||||
recreateUpDown(s);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ static void tabRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_t wi
|
|||
struct child *page;
|
||||
RECT r;
|
||||
|
||||
uiWindowsEnsureMoveWindow(t->hwnd, x, y, width, height);
|
||||
uiWindowsEnsureMoveWindowDuringResize(t->hwnd, x, y, width, height);
|
||||
n = curpage(t);
|
||||
if (n == (LRESULT) (-1))
|
||||
return;
|
||||
|
|
|
@ -54,7 +54,7 @@ extern HRESULT _logLastError(debugargs, const WCHAR *s);
|
|||
extern HRESULT _logHRESULT(debugargs, const WCHAR *s, HRESULT hr);
|
||||
#define logHRESULT(s, hr) _logHRESULT(_ws(__FILE__), _wsn(__LINE__), _ws(__FUNCTION__), s, hr)
|
||||
extern void _implbug(debugargs, const WCHAR *format, ...);
|
||||
#define implbug(...) _implbug(_ws(__FILE__), _wsn(__LINE__), _ws(__FUNCTION__), __VA_LIST__)
|
||||
#define implbug(...) _implbug(_ws(__FILE__), _wsn(__LINE__), _ws(__FUNCTION__), __VA_ARGS__)
|
||||
|
||||
// winutil.cpp
|
||||
extern int windowClassOf(HWND hwnd, ...);
|
||||
|
|
Loading…
Reference in New Issue