| 849 |
} |
} |
| 850 |
} |
} |
| 851 |
|
|
| 852 |
|
static void OpacityTooltip(CTipWin* tip, HWND hDlg, int trackbar, int pos, const char *UILanguageFile) |
| 853 |
|
{ |
| 854 |
|
wchar_t uimsg[MAX_UIMSG]; |
| 855 |
|
get_lang_msgW("TOOLTIP_TITLEBAR_OPACITY", uimsg, sizeof(uimsg), L"Opacity %.1f %%", ts.UILanguageFile); |
| 856 |
|
wchar_t tipbuf[MAX_UIMSG]; |
| 857 |
|
swprintf_s(tipbuf, _countof(tipbuf), uimsg, (pos / 255.0) * 100); |
| 858 |
|
RECT rc; |
| 859 |
|
::GetWindowRect(::GetDlgItem(hDlg, trackbar), &rc); |
| 860 |
|
tip->SetText(tipbuf); |
| 861 |
|
tip->SetPos(rc.right, rc.bottom); |
| 862 |
|
tip->SetHideTimer(1000); |
| 863 |
|
if (! tip->IsVisible()) { |
| 864 |
|
tip->SetVisible(TRUE); |
| 865 |
|
} |
| 866 |
|
} |
| 867 |
|
|
| 868 |
BOOL CVisualPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam) |
BOOL CVisualPropPageDlg::OnCommand(WPARAM wParam, LPARAM lParam) |
| 869 |
{ |
{ |
| 870 |
int sel; |
int sel; |
| 1044 |
SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, pos); |
SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, pos); |
| 1045 |
} |
} |
| 1046 |
SendDlgItemMessage(IDC_ALPHA_BLEND_ACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
SendDlgItemMessage(IDC_ALPHA_BLEND_ACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
| 1047 |
|
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_ACTIVE, pos, ts.UILanguageFile); |
|
TCHAR tipbuf[32]; |
|
|
TCHAR uimsg[MAX_UIMSG]; |
|
|
RECT rc; |
|
|
get_lang_msg("TOOLTIP_TITLEBAR_OPACITY", uimsg, sizeof(uimsg), "Opacity %.1f %%", ts.UILanguageFile); |
|
|
_stprintf_s(tipbuf, _countof(tipbuf), uimsg, (pos / 255.0) * 100); |
|
|
|
|
|
::GetWindowRect(GetDlgItem(IDC_ALPHA_BLEND_ACTIVE), &rc); |
|
|
TipWin->SetText(tipbuf); |
|
|
TipWin->SetPos(rc.right, rc.bottom); |
|
|
TipWin->SetHideTimer(1000); |
|
|
if (! TipWin->IsVisible()) { |
|
|
TipWin->SetVisible(TRUE); |
|
|
} |
|
| 1048 |
return TRUE; |
return TRUE; |
| 1049 |
} |
} |
| 1050 |
case IDC_ALPHA_BLEND_INACTIVE | (EN_CHANGE << 16): |
case IDC_ALPHA_BLEND_INACTIVE | (EN_CHANGE << 16): |
| 1060 |
SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, pos); |
SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, pos); |
| 1061 |
} |
} |
| 1062 |
SendDlgItemMessage(IDC_ALPHA_BLEND_INACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
SendDlgItemMessage(IDC_ALPHA_BLEND_INACTIVE_TRACKBAR, TBM_SETPOS, TRUE, pos); |
| 1063 |
|
OpacityTooltip(TipWin, m_hWnd, IDC_ALPHA_BLEND_INACTIVE, pos, ts.UILanguageFile); |
|
TCHAR tipbuf[32], uimsg[MAX_UIMSG]; |
|
|
RECT rc; |
|
|
get_lang_msg("TOOLTIP_TITLEBAR_OPACITY", uimsg, sizeof(uimsg), "Opacity %.1f %%", ts.UILanguageFile); |
|
|
_stprintf_s(tipbuf, _countof(tipbuf), uimsg, (pos / 255.0) * 100); |
|
|
|
|
|
::GetWindowRect(GetDlgItem(IDC_ALPHA_BLEND_INACTIVE), &rc); |
|
|
TipWin->SetText(tipbuf); |
|
|
TipWin->SetPos(rc.right, rc.bottom); |
|
|
TipWin->SetHideTimer(1000); |
|
|
if (! TipWin->IsVisible()) { |
|
|
TipWin->SetVisible(TRUE); |
|
|
} |
|
| 1064 |
return TRUE; |
return TRUE; |
| 1065 |
} |
} |
| 1066 |
} |
} |