don't localize error dialog. THEME is shutdown by that time.
This commit is contained in:
@@ -117,13 +117,12 @@ static BOOL CALLBACK ErrorWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
{
|
{
|
||||||
|
DialogUtil::SetHeaderFont( hWnd, IDC_STATIC_HEADER_TEXT );
|
||||||
|
|
||||||
// Set static text
|
// Set static text
|
||||||
RString sMessage = g_sErrorString;
|
RString sMessage = g_sErrorString;
|
||||||
sMessage.Replace( "\n", "\r\n" );
|
sMessage.Replace( "\n", "\r\n" );
|
||||||
SetWindowText( GetDlgItem(hWnd, IDC_EDIT_ERROR), sMessage );
|
SetWindowText( GetDlgItem(hWnd, IDC_EDIT_ERROR), sMessage );
|
||||||
|
|
||||||
DialogUtil::LocalizeDialogAndContents( hWnd );
|
|
||||||
DialogUtil::SetHeaderFont( hWnd, IDC_STATIC_HEADER_TEXT );
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
|||||||
Reference in New Issue
Block a user