mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 04:13:18 +00:00
compile welcome.exe as unicode application by default
svn path=/trunk/; revision=17042
This commit is contained in:
parent
52fafec558
commit
16025312da
2 changed files with 11 additions and 9 deletions
|
@ -176,7 +176,7 @@ WinMain(HINSTANCE hInst,
|
||||||
rcRightPanel.right = ulInnerWidth - 1;
|
rcRightPanel.right = ulInnerWidth - 1;
|
||||||
|
|
||||||
if (!LoadString(hInstance, (UINT)MAKEINTRESOURCE(IDS_APPTITLE), szAppTitle, 80))
|
if (!LoadString(hInstance, (UINT)MAKEINTRESOURCE(IDS_APPTITLE), szAppTitle, 80))
|
||||||
lstrcpy(szAppTitle, TEXT("ReactOS Welcome"));
|
_tcscpy(szAppTitle, TEXT("ReactOS Welcome"));
|
||||||
|
|
||||||
/* Create main window */
|
/* Create main window */
|
||||||
hwndMain = CreateWindow(szFrameClass,
|
hwndMain = CreateWindow(szFrameClass,
|
||||||
|
@ -248,13 +248,13 @@ RunApplication(int nTopic)
|
||||||
if (nLength == 0)
|
if (nLength == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (!lstrcmpi(AppName, TEXT("<exit>")))
|
if (!_tcsicmp(AppName, TEXT("<exit>")))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (lstrcmpi(AppName, TEXT("explorer.exe")) == 0)
|
if (_tcsicmp(AppName, TEXT("explorer.exe")) == 0)
|
||||||
{
|
{
|
||||||
lstrcat(AppName, TEXT(" "));
|
_tcscat(AppName, TEXT(" "));
|
||||||
lstrcat(AppName, CurrentDir);
|
_tcscat(AppName, CurrentDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&StartupInfo, 0, sizeof(STARTUPINFO));
|
memset(&StartupInfo, 0, sizeof(STARTUPINFO));
|
||||||
|
@ -285,7 +285,7 @@ SubclassButton(HWND hWnd)
|
||||||
static DWORD
|
static DWORD
|
||||||
GetButtonHeight(HDC hDC,
|
GetButtonHeight(HDC hDC,
|
||||||
HFONT hFont,
|
HFONT hFont,
|
||||||
PSZ szText,
|
LPCTSTR szText,
|
||||||
DWORD dwWidth)
|
DWORD dwWidth)
|
||||||
{
|
{
|
||||||
HFONT hOldFont;
|
HFONT hOldFont;
|
||||||
|
@ -324,7 +324,7 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
CLIP_DEFAULT_PRECIS,
|
CLIP_DEFAULT_PRECIS,
|
||||||
DEFAULT_QUALITY,
|
DEFAULT_QUALITY,
|
||||||
FF_DONTCARE,
|
FF_DONTCARE,
|
||||||
"Arial");
|
TEXT("Arial"));
|
||||||
|
|
||||||
/* Topic description font */
|
/* Topic description font */
|
||||||
hfontTopicDescription = CreateFont(-11,0,0,0,FW_THIN,
|
hfontTopicDescription = CreateFont(-11,0,0,0,FW_THIN,
|
||||||
|
@ -333,7 +333,7 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
CLIP_DEFAULT_PRECIS,
|
CLIP_DEFAULT_PRECIS,
|
||||||
DEFAULT_QUALITY,
|
DEFAULT_QUALITY,
|
||||||
FF_DONTCARE,
|
FF_DONTCARE,
|
||||||
"Arial");
|
TEXT("Arial"));
|
||||||
|
|
||||||
/* Topic button font */
|
/* Topic button font */
|
||||||
hfontTopicButton = CreateFont(-11,0,0,0,FW_BOLD,
|
hfontTopicButton = CreateFont(-11,0,0,0,FW_BOLD,
|
||||||
|
@ -342,7 +342,7 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
CLIP_DEFAULT_PRECIS,
|
CLIP_DEFAULT_PRECIS,
|
||||||
DEFAULT_QUALITY,
|
DEFAULT_QUALITY,
|
||||||
FF_DONTCARE,
|
FF_DONTCARE,
|
||||||
"Arial");
|
TEXT("Arial"));
|
||||||
|
|
||||||
/* Load title bitmap */
|
/* Load title bitmap */
|
||||||
if (hTitleBitmap != 0)
|
if (hTitleBitmap != 0)
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
<define name="_WIN32_IE">0x0501</define>
|
<define name="_WIN32_IE">0x0501</define>
|
||||||
<define name="_WIN32_WINNT">0x0501</define>
|
<define name="_WIN32_WINNT">0x0501</define>
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
|
<define name="UNICODE" />
|
||||||
|
<define name="_UNICODE" />
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>gdi32</library>
|
<library>gdi32</library>
|
||||||
<library>user32</library>
|
<library>user32</library>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue