mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:23:14 +00:00
[DESK] Fix Font Smoothing Dropdown Field. Patch by Katayama Hirofumi MZ CORE-12568
svn path=/trunk/; revision=74057
This commit is contained in:
parent
2c49ea705c
commit
5641391fa5
1 changed files with 10 additions and 9 deletions
|
@ -58,16 +58,13 @@ SaveCurrentValues(HWND hwndDlg, GLOBALS *g)
|
||||||
static VOID
|
static VOID
|
||||||
AddToCombobox(INT Combo, HWND hwndDlg, INT From, INT To)
|
AddToCombobox(INT Combo, HWND hwndDlg, INT From, INT To)
|
||||||
{
|
{
|
||||||
INT iElement, iListIndex, i = 0;
|
INT iElement;
|
||||||
TCHAR tstrText[80];
|
TCHAR tstrText[80];
|
||||||
|
|
||||||
if (Combo == IDC_EFFAPPEARANCE_SMOOTHINGTYPE) i = 1;
|
for (iElement = From; iElement <= To; iElement++)
|
||||||
|
|
||||||
for (iElement = From; iElement<=To; iElement++)
|
|
||||||
{
|
{
|
||||||
LoadString(hApplet, iElement, (LPTSTR)tstrText, ARRAYSIZE(tstrText));
|
LoadString(hApplet, iElement, (LPTSTR)tstrText, ARRAYSIZE(tstrText));
|
||||||
iListIndex = SendDlgItemMessage(hwndDlg, Combo, CB_ADDSTRING, 0, (LPARAM)tstrText);
|
SendDlgItemMessage(hwndDlg, Combo, CB_ADDSTRING, 0, (LPARAM)tstrText);
|
||||||
SendDlgItemMessageW(hwndDlg, Combo, CB_SETITEMDATA, (WPARAM)iListIndex, (LPARAM)i++);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,10 +156,14 @@ EffAppearanceDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
case IDC_EFFAPPEARANCE_SMOOTHINGTYPE:
|
case IDC_EFFAPPEARANCE_SMOOTHINGTYPE:
|
||||||
if (HIWORD(wParam) == CBN_SELCHANGE)
|
if (HIWORD(wParam) == CBN_SELCHANGE)
|
||||||
{
|
{
|
||||||
INT fontTypeIndex = SendDlgItemMessageW(hwndDlg, IDC_EFFAPPEARANCE_SMOOTHINGTYPE, CB_GETCURSEL, 0, 0);
|
INT Index =
|
||||||
|
SendDlgItemMessageW(hwndDlg, IDC_EFFAPPEARANCE_SMOOTHINGTYPE,
|
||||||
|
CB_GETCURSEL, 0, 0);
|
||||||
|
|
||||||
g->SchemeAdv.Effects.bMenuFade = SendDlgItemMessageW(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE, CB_GETCURSEL, 0, 0);
|
g->SchemeAdv.Effects.bMenuFade =
|
||||||
g->SchemeAdv.Effects.uiFontSmoothingType = SendDlgItemMessageW(hwndDlg, IDC_EFFAPPEARANCE_SMOOTHINGTYPE, CB_GETITEMDATA, fontTypeIndex, 0);
|
SendDlgItemMessageW(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE,
|
||||||
|
CB_GETCURSEL, 0, 0);
|
||||||
|
g->SchemeAdv.Effects.uiFontSmoothingType = (Index == CB_ERR) ? 0 : (Index + 1);
|
||||||
|
|
||||||
UpdateControls(hwndDlg, g);
|
UpdateControls(hwndDlg, g);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue