Commit 6ca8b91f authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comdlg32: Set the margins groupbox title to reflect whether we are using metric…

comdlg32: Set the margins groupbox title to reflect whether we are using metric or imperial measurements.
parent ef4588a0
...@@ -2861,6 +2861,15 @@ static void update_margin_edits(HWND hDlg, const PageSetupDataA *pda) ...@@ -2861,6 +2861,15 @@ static void update_margin_edits(HWND hDlg, const PageSetupDataA *pda)
SetDlgItemTextW(hDlg, edt7, str); SetDlgItemTextW(hDlg, edt7, str);
} }
static void set_margin_groupbox_title(HWND hDlg, const PageSetupDataA *pda)
{
WCHAR title[256];
if(LoadStringW(COMDLG32_hInstance, is_metric(pda) ? PD32_MARGINS_IN_MILLIMETERS : PD32_MARGINS_IN_INCHES,
title, sizeof(title)/sizeof(title[0])))
SetDlgItemTextW(hDlg, grp4, title);
}
/******************************************************************************** /********************************************************************************
* PRINTDLG_PS_WMCommandA * PRINTDLG_PS_WMCommandA
* process WM_COMMAND message for PageSetupDlgA * process WM_COMMAND message for PageSetupDlgA
...@@ -3351,6 +3360,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -3351,6 +3360,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
pda->dlga->rtMargin.bottom = size; pda->dlga->rtMargin.bottom = size;
} }
update_margin_edits(hDlg, pda); update_margin_edits(hDlg, pda);
set_margin_groupbox_title(hDlg, pda);
/* if paper disabled */ /* if paper disabled */
if (pda->dlga->Flags & PSD_DISABLEPAPER) { if (pda->dlga->Flags & PSD_DISABLEPAPER) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment