Fixed some compiler warnings.

This commit is contained in:
Pietro Gagliardi 2015-05-30 22:18:30 -04:00
parent fc1ef99965
commit 8a84b9e062
3 changed files with 3 additions and 7 deletions

View File

@ -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 // 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) BOOL handleParentMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *lResult)
{ {
HWND control;
NMHDR *nm = (NMHDR *) lParam;
switch (uMsg) { switch (uMsg) {
case WM_COMMAND: case WM_COMMAND:
return runWM_COMMAND(wParam, lParam, lResult); return runWM_COMMAND(wParam, lParam, lResult);

View File

@ -20,7 +20,7 @@ static uintptr_t separatorHandle(uiControl *c)
{ {
struct separator *s = (struct separator *) 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) static void separatorPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height)

View File

@ -24,7 +24,6 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
struct window *w; struct window *w;
CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam; CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam;
WINDOWPOS *wp = (WINDOWPOS *) lParam; WINDOWPOS *wp = (WINDOWPOS *) lParam;
RECT r;
LRESULT lResult; LRESULT lResult;
w = (struct window *) GetWindowLongPtrW(hwnd, GWLP_USERDATA); 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 // from https://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
#define windowMargin 7 #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; RECT r;
uiSizing *d; uiSizing *d;