comdlg32/fontdlg: Limit text length user can type in as font point size.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1aa53bc470
commit
a48d96843c
|
@ -753,6 +753,9 @@ static LRESULT CFn_WMInitDialog(HWND hDlg, LPARAM lParam, LPCHOOSEFONTW lpcf)
|
||||||
SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb5, CBN_SELCHANGE),
|
SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb5, CBN_SELCHANGE),
|
||||||
(LPARAM)GetDlgItem(hDlg,cmb5));
|
(LPARAM)GetDlgItem(hDlg,cmb5));
|
||||||
}
|
}
|
||||||
|
/* limit text length user can type in as font size */
|
||||||
|
SendDlgItemMessageW(hDlg, cmb3, CB_LIMITTEXT, 5, 0);
|
||||||
|
|
||||||
if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle)
|
if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle)
|
||||||
{
|
{
|
||||||
j=SendDlgItemMessageW(hDlg,cmb2,CB_FINDSTRING,-1,(LPARAM)lpcf->lpszStyle);
|
j=SendDlgItemMessageW(hDlg,cmb2,CB_FINDSTRING,-1,(LPARAM)lpcf->lpszStyle);
|
||||||
|
|
Loading…
Reference in New Issue