LangDLL defaults to MS Shell Dlg
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2268 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
cdd2d0f635
commit
dca0c7c4c4
3 changed files with 13 additions and 11 deletions
|
@ -51,14 +51,16 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
size = myatoi(temp);
|
||||
if (!popstring(temp)) {
|
||||
LOGFONT f = {0,};
|
||||
f.lfHeight = -MulDiv(size, GetDeviceCaps(GetDC(hwndDlg), LOGPIXELSY), 72);
|
||||
lstrcpy(f.lfFaceName, temp);
|
||||
font = CreateFontIndirect(&f);
|
||||
SendMessage(hwndDlg, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDOK, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDCANCEL, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDC_TEXT, WM_SETFONT, (WPARAM)font, 1);
|
||||
if (lstrcmp(temp, "MS Shell Dlg")) {
|
||||
f.lfHeight = -MulDiv(size, GetDeviceCaps(GetDC(hwndDlg), LOGPIXELSY), 72);
|
||||
lstrcpy(f.lfFaceName, temp);
|
||||
font = CreateFontIndirect(&f);
|
||||
SendMessage(hwndDlg, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDOK, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDCANCEL, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDC_LANGUAGE, WM_SETFONT, (WPARAM)font, 1);
|
||||
SendDlgItemMessage(hwndDlg, IDC_TEXT, WM_SETFONT, (WPARAM)font, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
ShowWindow(hwndDlg, SW_SHOW);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue