replaced remaining TRUE and FALSE (both are invalid now)

scancodes-fix
David Dormagen 2009-09-05 19:22:54 +02:00
parent d814267a46
commit a886a18180
11 changed files with 95 additions and 93 deletions

View File

@ -70,7 +70,7 @@ C4Application::~C4Application()
STARTUPINFO StartupInfo; ZeroMemory(&StartupInfo, sizeof StartupInfo);
StartupInfo.cb = sizeof StartupInfo;
PROCESS_INFORMATION ProcessInfo; ZeroMemory(&ProcessInfo, sizeof ProcessInfo);
CreateProcess(NULL, strCommandLine, NULL, NULL, TRUE, 0, NULL, NULL, &StartupInfo, &ProcessInfo);
CreateProcess(NULL, strCommandLine, NULL, NULL, true, 0, NULL, NULL, &StartupInfo, &ProcessInfo);
#endif
}
}
@ -176,7 +176,7 @@ bool C4Application::DoInit()
}
// Fixup resolution
ApplyResolutionConstraints();
ApplyResolutionConstraints();
// activate
Active=true;
@ -240,7 +240,7 @@ bool C4Application::DoInit()
return true;
}
void C4Application::ApplyResolutionConstraints()
{
// Enumerate display modes
@ -522,10 +522,10 @@ void C4Application::Activate()
DWORD nAppThread = GetCurrentThreadId();
if (nForeThread != nAppThread)
{
AttachThreadInput(nForeThread, nAppThread, TRUE);
AttachThreadInput(nForeThread, nAppThread, true);
BringWindowToTop(FullScreen.hWindow);
ShowWindow(FullScreen.hWindow, SW_SHOW);
AttachThreadInput(nForeThread, nAppThread, FALSE);
AttachThreadInput(nForeThread, nAppThread, false);
}
else
{

View File

@ -68,7 +68,7 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
::GraphicsSystem.Execute();
// update cursor clip
::MouseControl.UpdateClip();
return FALSE;
return false;
case WM_PAINT:
// Redraw after task switch
if (Application.Active)
@ -83,7 +83,7 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
case MM_MCINOTIFY:
if (wParam == MCI_NOTIFY_SUCCESSFUL)
Application.MusicSystem.NotifySuccess();
return TRUE;
return true;
case WM_KEYUP:
if (Game.DoKeyboardInput(wParam, KEYEV_Up, !!(lParam & 0x20000000), Application.IsControlDown(), Application.IsShiftDown(), false, NULL))
return 0;
@ -106,14 +106,14 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
if (::pGUI)
if (::pGUI->CharIn(c))
return 0;
return FALSE;
return false;
}
case WM_USER_LOG:
if (SEqual2((const char *)lParam, "IDS_"))
Log(LoadResStr((const char *)lParam));
else
Log((const char *)lParam);
return FALSE;
return false;
case WM_LBUTTONDOWN:
::GraphicsSystem.MouseMove(C4MC_Button_LeftDown,LOWORD(lParam),HIWORD(lParam),wParam, NULL);
break;

View File

@ -2338,7 +2338,7 @@ bool C4Game::InitGame(C4Group &hGroup, bool fLoadSection, bool fLoadSky)
if (hGroup.FindEntry(C4CFN_RoundResults))
{
if (!RoundResults.Load(hGroup, C4CFN_RoundResults))
{ LogFatal(LoadResStr("IDS_ERR_ERRORLOADINGROUNDRESULTS")); return FALSE; }
{ LogFatal(LoadResStr("IDS_ERR_ERRORLOADINGROUNDRESULTS")); return false; }
}
else
{

View File

@ -75,7 +75,7 @@ BOOL C4GraphicsSystem::RegisterViewportClass(HINSTANCE hInst)
WndClass.lpszClassName = C4ViewportClassName;
WndClass.hIcon = LoadIcon (hInst, MAKEINTRESOURCE (IDI_01_C4S) );
WndClass.hIconSm = LoadIcon (hInst, MAKEINTRESOURCE (IDI_01_C4S) );
if (!RegisterClassEx(&WndClass)) return FALSE;
if (!RegisterClassEx(&WndClass)) return false;
// register GUI dialog class
return C4GUI::Dialog::RegisterWindowClass(hInst);
}

View File

@ -69,7 +69,7 @@ int GenerateDump(EXCEPTION_POINTERS* pExceptionPointers)
MINIDUMP_EXCEPTION_INFORMATION ExpParam;
ExpParam.ThreadId = GetCurrentThreadId();
ExpParam.ExceptionPointers = pExceptionPointers;
ExpParam.ClientPointers = TRUE;
ExpParam.ClientPointers = true;
MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(),
file, MiniDumpNormal, &ExpParam, NULL, NULL);

View File

@ -33,7 +33,7 @@ C4ComponentHost *pCmpHost=NULL;
BOOL CALLBACK ComponentDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
if (!pCmpHost) return FALSE;
if (!pCmpHost) return false;
switch (Msg)
{
@ -43,13 +43,13 @@ BOOL CALLBACK ComponentDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam
break;
//-------------------------------------------------------------------------------------------------
case WM_DESTROY:
StoreWindowPosition(hDlg, "Component", Config.GetSubkeyPath("Console"), FALSE);
StoreWindowPosition(hDlg, "Component", Config.GetSubkeyPath("Console"), false);
break;
//-------------------------------------------------------------------------------------------------
case WM_INITDIALOG:
pCmpHost->InitDialog(hDlg);
RestoreWindowPosition(hDlg, "Component", Config.GetSubkeyPath("Console"));
return TRUE;
return true;
//-------------------------------------------------------------------------------------------------
case WM_COMMAND:
// Evaluate command
@ -58,22 +58,22 @@ BOOL CALLBACK ComponentDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDCANCEL:
pCmpHost->Close();
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDOK:
// IDC_EDITDATA to Data
char buffer[65000];
GetDlgItemText(hDlg,IDC_EDITDATA,buffer,65000);
pCmpHost->Modified=TRUE;
pCmpHost->Modified=true;
pCmpHost->Data.Copy(buffer);
pCmpHost->Close();
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
}
return FALSE;
return false;
//-----------------------------------------------------------------------------------------------------------------------------------
}
return FALSE;
return false;
}
void C4ComponentHost::InitDialog(HWND hDlg)

View File

@ -159,26 +159,26 @@ BOOL CALLBACK ConsoleDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
//------------------------------------------------------------------------------------------------------------
case WM_ACTIVATEAPP:
Application.Active = wParam != 0;
return TRUE;
return true;
//------------------------------------------------------------------------------------------------------------
case WM_DESTROY:
StoreWindowPosition(hDlg, "Main", Config.GetSubkeyPath("Console"), FALSE);
StoreWindowPosition(hDlg, "Main", Config.GetSubkeyPath("Console"), false);
Application.Quit();
return TRUE;
return true;
//------------------------------------------------------------------------------------------------------------
case WM_CLOSE:
Console.Close();
return TRUE;
return true;
//------------------------------------------------------------------------------------------------------------
case MM_MCINOTIFY:
if (wParam == MCI_NOTIFY_SUCCESSFUL)
Application.MusicSystem.NotifySuccess();
return TRUE;
return true;
//------------------------------------------------------------------------------------------------------------
case WM_INITDIALOG:
SendMessage(hDlg,DM_SETDEFID,(WPARAM)IDOK,(LPARAM)0);
Console.UpdateMenuText(GetMenu(hDlg));
return TRUE;
return true;
//------------------------------------------------------------------------------------------------------------
case WM_COMMAND:
// Evaluate command
@ -191,86 +191,86 @@ BOOL CALLBACK ConsoleDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
GetDlgItemText(hDlg,IDC_COMBOINPUT,buffer,16000);
if (buffer[0])
Console.In(buffer);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONHALT:
Console.DoHalt();
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONPLAY:
Console.DoPlay();
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODEPLAY:
Console.EditCursor.SetMode(C4CNS_ModePlay);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODEEDIT:
Console.EditCursor.SetMode(C4CNS_ModeEdit);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODEDRAW:
Console.EditCursor.SetMode(C4CNS_ModeDraw);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_QUIT: Console.FileQuit(); return TRUE;
case IDM_FILE_QUIT: Console.FileQuit(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_SAVEAS: Console.FileSaveAs(FALSE); return TRUE;
case IDM_FILE_SAVEAS: Console.FileSaveAs(false); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_SAVE: Console.FileSave(FALSE); return TRUE;
case IDM_FILE_SAVE: Console.FileSave(false); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_SAVEGAMEAS: Console.FileSaveAs(TRUE); return TRUE;
case IDM_FILE_SAVEGAMEAS: Console.FileSaveAs(true); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_SAVEGAME: Console.FileSave(TRUE); return TRUE;
case IDM_FILE_SAVEGAME: Console.FileSave(true); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_OPEN: Console.FileOpen(); return TRUE;
case IDM_FILE_OPEN: Console.FileOpen(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_RECORD: Console.FileRecord(); return TRUE;
case IDM_FILE_RECORD: Console.FileRecord(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_OPENWPLRS: Console.FileOpenWPlrs(); return TRUE;
case IDM_FILE_OPENWPLRS: Console.FileOpenWPlrs(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_FILE_CLOSE: Console.FileClose(); return TRUE;
case IDM_FILE_CLOSE: Console.FileClose(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_HELP_ABOUT: Console.HelpAbout(); return TRUE;
case IDM_HELP_ABOUT: Console.HelpAbout(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_PLAYER_JOIN: Console.PlayerJoin(); return TRUE;
case IDM_PLAYER_JOIN: Console.PlayerJoin(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_VIEWPORT_NEW: Console.ViewportNew(); return TRUE;
case IDM_VIEWPORT_NEW: Console.ViewportNew(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_COMPONENTS_TITLE: Console.EditTitle(); return TRUE;
case IDM_COMPONENTS_TITLE: Console.EditTitle(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_COMPONENTS_INFO: Console.EditInfo(); return TRUE;
case IDM_COMPONENTS_INFO: Console.EditInfo(); return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDM_COMPONENTS_SCRIPT: Console.EditScript(); return TRUE;
case IDM_COMPONENTS_SCRIPT: Console.EditScript(); return true;
}
// New player viewport
if (Inside((int) LOWORD(wParam),IDM_VIEWPORT_NEW1,IDM_VIEWPORT_NEW2))
{
Game.CreateViewport(LOWORD(wParam)-IDM_VIEWPORT_NEW1);
return TRUE;
return true;
}
// Remove player
if (Inside((int) LOWORD(wParam),IDM_PLAYER_QUIT1,IDM_PLAYER_QUIT2))
{
::Control.Input.Add(CID_Script, new C4ControlScript(
FormatString("EliminatePlayer(%d)", LOWORD(wParam)-IDM_PLAYER_QUIT1).getData()));
return TRUE;
return true;
}
// Remove client
if (Inside((int) LOWORD(wParam),IDM_NET_CLIENT1,IDM_NET_CLIENT2))
{
if(!::Control.isCtrlHost()) return FALSE;
if(!::Control.isCtrlHost()) return false;
Game.Clients.CtrlRemove(Game.Clients.getClientByID(LOWORD(wParam)-IDM_NET_CLIENT1), LoadResStr("IDS_MSG_KICKBYMENU"));
return TRUE;
return true;
}
return FALSE;
return false;
//------------------------------------------------------------------------------------------------------------
case WM_USER_LOG:
if (SEqual2((const char *)lParam, "IDS_"))
Log(LoadResStr((const char *)lParam));
else
Log((const char *)lParam);
return FALSE;
return false;
//------------------------------------------------------------------------------------------------------------
case WM_COPYDATA:
COPYDATASTRUCT* pcds = reinterpret_cast<COPYDATASTRUCT *>(lParam);
@ -282,10 +282,10 @@ BOOL CALLBACK ConsoleDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
// reload
Game.ReloadFile(szPath);
}
return FALSE;
return false;
}
return FALSE;
return false;
}
#elif defined(USE_X11) && !defined(WITH_DEVELOPER_MODE)
void C4Console::HandleMessage (XEvent & e)
@ -357,7 +357,7 @@ CStdWindow * C4Console::Init(CStdApp * pApp)
ShowWindow(hWindow,SW_SHOWNORMAL);
UpdateWindow(hWindow);
SetFocus(hWindow);
ShowCursor(TRUE);
ShowCursor(true);
// Success
return this;
#elif defined(WITH_DEVELOPER_MODE)
@ -1287,7 +1287,7 @@ bool C4Console::AddMenuItem(HMENU hMenu, DWORD dwID, const char *szString, bool
minfo.dwTypeData = (char*) szString;
minfo.cch = SLen(szString);
if (!fEnabled) minfo.fState|=MFS_GRAYED;
return InsertMenuItem(hMenu,0,FALSE,&minfo);
return InsertMenuItem(hMenu,0,false,&minfo);
}
#endif // _WIN32

View File

@ -60,12 +60,12 @@ BOOL CALLBACK PropertyDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
break;
//------------------------------------------------------------------------------------------------
case WM_DESTROY:
StoreWindowPosition(hDlg, "Property", Config.GetSubkeyPath("Console"), FALSE);
StoreWindowPosition(hDlg, "Property", Config.GetSubkeyPath("Console"), false);
break;
//------------------------------------------------------------------------------------------------
case WM_INITDIALOG:
SendMessage(hDlg,DM_SETDEFID,(WPARAM)IDOK,(LPARAM)0);
return TRUE;
return true;
//------------------------------------------------------------------------------------------------
case WM_COMMAND:
// Evaluate command
@ -78,17 +78,17 @@ BOOL CALLBACK PropertyDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
GetDlgItemText(hDlg,IDC_COMBOINPUT,buffer,16000);
if (buffer[0])
Console.EditCursor.In(buffer);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONRELOADDEF:
Game.ReloadDef( Console.PropertyDlg.idSelectedDef );
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
}
return FALSE;
return false;
//-----------------------------------------------------------------------------------------------
}
return FALSE;
return false;
}
#endif
C4PropertyDlg::C4PropertyDlg()

View File

@ -119,19 +119,19 @@ BOOL CALLBACK ToolsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
break;
//----------------------------------------------------------------------------------------------
case WM_DESTROY:
StoreWindowPosition(hDlg, "Property", Config.GetSubkeyPath("Console"), FALSE);
StoreWindowPosition(hDlg, "Property", Config.GetSubkeyPath("Console"), false);
break;
//----------------------------------------------------------------------------------------------
case WM_INITDIALOG:
return TRUE;
return true;
//----------------------------------------------------------------------------------------------
case WM_PAINT:
PostMessage(hDlg,WM_USER,0,0); // For user paint
return FALSE;
return false;
//----------------------------------------------------------------------------------------------
case WM_USER:
Console.ToolsDlg.UpdatePreview();
return TRUE;
return true;
//----------------------------------------------------------------------------------------------
case WM_VSCROLL:
switch (LOWORD(wParam))
@ -146,7 +146,7 @@ BOOL CALLBACK ToolsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Console.ToolsDlg.SetGrade(C4TLS_GradeMax-iValue);
break;
}
return TRUE;
return true;
//----------------------------------------------------------------------------------------------
case WM_COMMAND:
// Evaluate command
@ -154,47 +154,47 @@ BOOL CALLBACK ToolsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDOK:
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODEDYNAMIC:
Console.ToolsDlg.SetLandscapeMode(C4LSC_Dynamic);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODESTATIC:
Console.ToolsDlg.SetLandscapeMode(C4LSC_Static);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONMODEEXACT:
Console.ToolsDlg.SetLandscapeMode(C4LSC_Exact);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONBRUSH:
Console.ToolsDlg.SetTool(C4TLS_Brush, false);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONLINE:
Console.ToolsDlg.SetTool(C4TLS_Line, false);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONRECT:
Console.ToolsDlg.SetTool(C4TLS_Rect, false);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONFILL:
Console.ToolsDlg.SetTool(C4TLS_Fill, false);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONPICKER:
Console.ToolsDlg.SetTool(C4TLS_Picker, false);
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONIFT:
Console.ToolsDlg.SetIFT(TRUE);
return TRUE;
Console.ToolsDlg.SetIFT(true);
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_BUTTONNOIFT:
Console.ToolsDlg.SetIFT(FALSE);
return TRUE;
Console.ToolsDlg.SetIFT(false);
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_COMBOMATERIAL:
switch (HIWORD(wParam))
@ -208,7 +208,7 @@ BOOL CALLBACK ToolsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
break;
}
}
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case IDC_COMBOTEXTURE:
switch (HIWORD(wParam))
@ -222,13 +222,13 @@ BOOL CALLBACK ToolsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
break;
}
}
return TRUE;
return true;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
}
return FALSE;
return false;
//----------------------------------------------------------------------------------------
}
return FALSE;
return false;
}
#endif
C4ToolsDlg::C4ToolsDlg()
@ -754,9 +754,9 @@ void C4ToolsDlg::InitGradeCtrl()
HWND hwndTrack = GetDlgItem(hDialog,IDC_SLIDERGRADE);
SendMessage(hwndTrack,TBM_SETPAGESIZE,0,(LPARAM)5);
SendMessage(hwndTrack,TBM_SETLINESIZE,0,(LPARAM)1);
SendMessage(hwndTrack,TBM_SETRANGE,(WPARAM)FALSE,
SendMessage(hwndTrack,TBM_SETRANGE,(WPARAM)false,
(LPARAM) MAKELONG(C4TLS_GradeMin,C4TLS_GradeMax));
SendMessage(hwndTrack,TBM_SETPOS,(WPARAM)TRUE,(LPARAM)C4TLS_GradeMax-Grade);
SendMessage(hwndTrack,TBM_SETPOS,(WPARAM)true,(LPARAM)C4TLS_GradeMax-Grade);
UpdateWindow(hwndTrack);
#else
#ifdef WITH_DEVELOPER_MODE
@ -791,7 +791,7 @@ bool C4ToolsDlg::PopMaterial()
#ifdef _WIN32
if (!hDialog) return false;
SetFocus(GetDlgItem(hDialog,IDC_COMBOMATERIAL));
SendDlgItemMessage(hDialog,IDC_COMBOMATERIAL,CB_SHOWDROPDOWN,TRUE,0);
SendDlgItemMessage(hDialog,IDC_COMBOMATERIAL,CB_SHOWDROPDOWN,true,0);
#else
#ifdef WITH_DEVELOPER_MODE
if(!hbox) return false;
@ -807,7 +807,7 @@ bool C4ToolsDlg::PopTextures()
#ifdef _WIN32
if (!hDialog) return false;
SetFocus(GetDlgItem(hDialog,IDC_COMBOTEXTURE));
SendDlgItemMessage(hDialog,IDC_COMBOTEXTURE,CB_SHOWDROPDOWN,TRUE,0);
SendDlgItemMessage(hDialog,IDC_COMBOTEXTURE,CB_SHOWDROPDOWN,true,0);
#else
#ifdef WITH_DEVELOPER_MODE
if(!hbox) return false;

View File

@ -130,7 +130,9 @@ typedef __int32 intptr_t;
//#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include <windows.h>
#undef FALSE
#undef TRUE
#include <mmsystem.h>
#endif

View File

@ -93,7 +93,7 @@ CStdWindow * CStdWindow::Init(CStdApp * pApp) {
// Show & focus
ShowWindow(hWindow,SW_SHOWNORMAL);
SetFocus(hWindow);
ShowCursor(FALSE);
ShowCursor(false);
#endif
return this;
@ -274,12 +274,12 @@ int GLMonitorInfoEnumCount;
BOOL CALLBACK GLMonitorInfoEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData)
{
// get to indexed monitor
if (GLMonitorInfoEnumCount--) return TRUE;
if (GLMonitorInfoEnumCount--) return true;
// store it
CStdApp *pApp = (CStdApp *) dwData;
pApp->hMon = hMonitor;
pApp->MonitorRect = *lprcMonitor;
return TRUE;
return true;
}
bool CStdApp::GetIndexedDisplayMode(int32_t iIndex, int32_t *piXRes, int32_t *piYRes, int32_t *piBitDepth, uint32_t iMonitor)