Fixed some compiler warnings.
This commit is contained in:
parent
fc1ef99965
commit
8a84b9e062
|
@ -105,9 +105,6 @@ void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect)
|
|||
// why have this to begin with? http://blogs.msdn.com/b/oldnewthing/archive/2010/03/16/9979112.aspx
|
||||
BOOL handleParentMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult)
|
||||
{
|
||||
HWND control;
|
||||
NMHDR *nm = (NMHDR *) lParam;
|
||||
|
||||
switch (uMsg) {
|
||||
case WM_COMMAND:
|
||||
return runWM_COMMAND(wParam, lParam, lResult);
|
||||
|
|
|
@ -20,7 +20,7 @@ static uintptr_t separatorHandle(uiControl *c)
|
|||
{
|
||||
struct separator *s = (struct separator *) c;
|
||||
|
||||
return s->hwnd;
|
||||
return (uintptr_t) (s->hwnd);
|
||||
}
|
||||
|
||||
static void separatorPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height)
|
||||
|
|
|
@ -24,7 +24,6 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
|
|||
struct window *w;
|
||||
CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam;
|
||||
WINDOWPOS *wp = (WINDOWPOS *) lParam;
|
||||
RECT r;
|
||||
LRESULT lResult;
|
||||
|
||||
w = (struct window *) GetWindowLongPtrW(hwnd, GWLP_USERDATA);
|
||||
|
@ -193,9 +192,9 @@ static void windowSetMargined(uiWindow *ww, int margined)
|
|||
// from https://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
|
||||
#define windowMargin 7
|
||||
|
||||
static void windowResizeChild(uiControl *c)
|
||||
static void windowResizeChild(uiWindow *ww)
|
||||
{
|
||||
struct window *w = (struct window *) c;
|
||||
struct window *w = (struct window *) ww;
|
||||
RECT r;
|
||||
uiSizing *d;
|
||||
|
||||
|
|
Loading…
Reference in New Issue