diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-12-29 16:02:07 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-12-29 16:02:07 +0200 |
commit | 340cd4c07beac3df1d2184ab499feb049c285a3f (patch) | |
tree | 7acca9e69e843eba81c0ece8cac2c048f3bcd388 | |
parent | 5ed7fd21c685c3c445cbfb75b50f8a7eb168fd8c (diff) |
bold font in keygen
-rwxr-xr-x | src/init.cpp | 2 | ||||
-rwxr-xr-x | src/main.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 5545368..e01fed2 100755 --- a/src/init.cpp +++ b/src/init.cpp @@ -23,6 +23,7 @@ TCHAR *inopentag = NULL, *inclosetag = NULL, *outopentag = NULL, *outclosetag = list <JabberAccount*> Accounts;
HINSTANCE hInst;
+HFONT bold_font = NULL;
HANDLE hLoadPubKey = NULL, hToggleEncryption = NULL, hOnPreBuildContactMenu = NULL, hSendKey = NULL, g_hCLIcon = NULL, hExportGpgKeys = NULL, hImportGpgKeys = NULL;
extern char *date();
RECT key_from_keyserver_rect = {0}, firstrun_rect = {0}, new_key_rect = {0}, key_gen_rect = {0}, load_key_rect = {0}, import_key_rect = {0}, key_password_rect = {0}, load_existing_key_rect = {0};
@@ -110,6 +111,7 @@ void init_vars() load_existing_key_rect.left = DBGetContactSettingDword(NULL, szGPGModuleName, "LoadExistingKeyWindowX", 0);
load_existing_key_rect.top = DBGetContactSettingDword(NULL, szGPGModuleName, "LoadExistingKeyWindowY", 0);
tabsrmm_used = isTabsrmmUsed();
+ bold_font = CreateFont(14, 0, 0, 0, 600, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, _T("Arial"));
}
static int OnModulesLoaded(WPARAM wParam,LPARAM lParam)
diff --git a/src/main.cpp b/src/main.cpp index c7f8bee..1183fa9 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -533,6 +533,8 @@ static INT_PTR CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR params.out = &out; params.code = &code; params.result = &result; + extern HFONT bold_font;
+ SendMessage(GetDlgItem(hwndDlg, IDC_GENERATING_KEY), WM_SETFONT, (WPARAM)bold_font, true);
SetWindowTextA(GetDlgItem(hwndDlg, IDC_GENERATING_KEY), Translate("Generating new random key, please wait")); EnableWindow(GetDlgItem(hwndDlg, IDC_GENERATE_KEY), 0); EnableWindow(GetDlgItem(hwndDlg, IDC_OTHER), 0); @@ -1411,6 +1413,8 @@ static INT_PTR CALLBACK DlgProcKeyGenDialog(HWND hwndDlg, UINT msg, WPARAM wPara params.out = &out; params.code = &code; params.result = &result; + extern HFONT bold_font;
+ SendMessage(GetDlgItem(hwndDlg, IDC_GENERATING_TEXT), WM_SETFONT, (WPARAM)bold_font, true);
SetWindowTextA(GetDlgItem(hwndDlg, IDC_GENERATING_TEXT), Translate("Generating new key, please wait...")); EnableWindow(GetDlgItem(hwndDlg, IDCANCEL), 0); EnableWindow(GetDlgItem(hwndDlg, IDOK), 0); |