1
0
Fork 0

(svn r22440) -Change: [Windows] Remove Cancel button from information messages.

release/1.2
terkhen 2011-05-09 20:29:01 +00:00
parent b7c6424104
commit df8806bdb4
1 changed files with 1 additions and 3 deletions

View File

@ -376,9 +376,7 @@ void ShowInfo(const char *str)
* buffer in MB_TO_WIDE might not be large enough (512 chars) */ * buffer in MB_TO_WIDE might not be large enough (512 chars) */
wchar_t help_msgW[8192]; wchar_t help_msgW[8192];
#endif #endif
if (MessageBox(GetActiveWindow(), MB_TO_WIDE_BUFFER(str, help_msgW, lengthof(help_msgW)), _T("OpenTTD"), MB_ICONINFORMATION | MB_OKCANCEL) == IDCANCEL) { MessageBox(GetActiveWindow(), MB_TO_WIDE_BUFFER(str, help_msgW, lengthof(help_msgW)), _T("OpenTTD"), MB_ICONINFORMATION | MB_OK);
CreateConsole();
}
} }
MyShowCursor(old); MyShowCursor(old);
} }