KenBuild, SW: Fix Win32 startup window warnings.

git-svn-id: https://svn.eduke32.com/eduke32@5734 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-05-23 04:46:14 +00:00
parent d87833f02a
commit c9897c55e0
2 changed files with 6 additions and 2 deletions

View file

@ -16,7 +16,9 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>
#ifndef _WIN32_IE
#define _WIN32_IE 0x0300 #define _WIN32_IE 0x0300
#endif
#include <commctrl.h> #include <commctrl.h>
#include <stdio.h> #include <stdio.h>
@ -466,7 +468,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
case WM_CTLCOLORSTATIC: case WM_CTLCOLORSTATIC:
if ((HWND)lParam == pages[TAB_MESSAGES]) if ((HWND)lParam == pages[TAB_MESSAGES])
return (BOOL)GetSysColorBrush(COLOR_WINDOW); return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW);
break; break;
default: break; default: break;

View file

@ -9,7 +9,9 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>
#ifndef _WIN32_IE
#define _WIN32_IE 0x0600 #define _WIN32_IE 0x0600
#endif
#include <commctrl.h> #include <commctrl.h>
#include <stdio.h> #include <stdio.h>
@ -296,7 +298,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
case WM_CTLCOLORSTATIC: case WM_CTLCOLORSTATIC:
if ((HWND)lParam == pages[TAB_MESSAGES]) if ((HWND)lParam == pages[TAB_MESSAGES])
return (BOOL)GetSysColorBrush(COLOR_WINDOW); return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW);
break; break;
default: break; default: break;