mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:02:07 +00:00
* auto-select correct radio button
* only repaint required on up/down notifications events svn path=/trunk/; revision=23736
This commit is contained in:
parent
7a535d12d5
commit
adcaf80140
1 changed files with 7 additions and 2 deletions
|
@ -83,7 +83,10 @@ ColorsProc(
|
|||
SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_RED), UDM_SETRANGE, 0, (LPARAM)MAKELONG(255, 0));
|
||||
SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_GREEN), UDM_SETRANGE, 0, (LPARAM)MAKELONG(255, 0));
|
||||
SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_BLUE), UDM_SETRANGE, 0, (LPARAM)MAKELONG(255, 0));
|
||||
InvalidateRect(hwndDlg, NULL, TRUE);
|
||||
SetDlgItemInt(hwndDlg, IDC_EDIT_COLOR_RED, GetRValue(pConInfo->ScreenBackground), FALSE);
|
||||
SetDlgItemInt(hwndDlg, IDC_EDIT_COLOR_GREEN, GetGValue(pConInfo->ScreenBackground), FALSE);
|
||||
SetDlgItemInt(hwndDlg, IDC_EDIT_COLOR_BLUE, GetBValue(pConInfo->ScreenBackground), FALSE);
|
||||
CheckRadioButton(hwndDlg, IDC_RADIO_SCREEN_TEXT, IDC_RADIO_POPUP_BACKGROUND, IDC_RADIO_SCREEN_BACKGROUND);
|
||||
return TRUE;
|
||||
}
|
||||
case WM_DRAWITEM:
|
||||
|
@ -169,7 +172,9 @@ ColorsProc(
|
|||
blue = LOBYTE(blue);
|
||||
}
|
||||
s_Colors[pConInfo->ActiveStaticControl] = RGB(red, green, blue);
|
||||
InvalidateRect(hwndDlg, NULL, TRUE); //FIXME
|
||||
InvalidateRect(GetDlgItem(hwndDlg, IDC_STATIC_COLOR1 + pConInfo->ActiveStaticControl), NULL, TRUE);
|
||||
InvalidateRect(GetDlgItem(hwndDlg, IDC_STATIC_SCREEN_COLOR), NULL, TRUE);
|
||||
InvalidateRect(GetDlgItem(hwndDlg, IDC_STATIC_POPUP_COLOR), NULL, TRUE);
|
||||
break;
|
||||
}
|
||||
case WM_COMMAND:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue