mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- About/Manage: Fixed that tab background was always white (and ignored visual style)
This commit is contained in:
parent
614eef6c3b
commit
508f8f77ed
@ -74,32 +74,6 @@ BOOL CALLBACK CDialog::SetFontProc(HWND hWnd, LPARAM lParam)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
** OnColorDialog
|
|
||||||
**
|
|
||||||
** Paints dialog background.
|
|
||||||
**
|
|
||||||
*/
|
|
||||||
INT_PTR CDialog::OnColorDialog(WPARAM wParam, LPARAM lParam)
|
|
||||||
{
|
|
||||||
return (INT_PTR)GetStockObject(WHITE_BRUSH);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
** OnColorStatic
|
|
||||||
**
|
|
||||||
** Paints control text and background.
|
|
||||||
**
|
|
||||||
*/
|
|
||||||
INT_PTR CDialog::OnColorStatic(WPARAM wParam, LPARAM lParam)
|
|
||||||
{
|
|
||||||
HDC hdc = (HDC)wParam;
|
|
||||||
SetTextColor(hdc, (COLORREF)GetSysColor(COLOR_WINDOWTEXT));
|
|
||||||
SetBkMode(hdc, TRANSPARENT);
|
|
||||||
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CTab
|
** CTab
|
||||||
**
|
**
|
||||||
@ -109,6 +83,7 @@ INT_PTR CDialog::OnColorStatic(WPARAM wParam, LPARAM lParam)
|
|||||||
CTab::CTab(HWND wnd) : CDialog(wnd),
|
CTab::CTab(HWND wnd) : CDialog(wnd),
|
||||||
m_Initialized(false)
|
m_Initialized(false)
|
||||||
{
|
{
|
||||||
|
EnableThemeDialogTexture(wnd, ETDT_ENABLETAB);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -30,9 +30,6 @@ protected:
|
|||||||
|
|
||||||
void SetDialogFont();
|
void SetDialogFont();
|
||||||
|
|
||||||
static INT_PTR OnColorDialog(WPARAM wParam, LPARAM lParam);
|
|
||||||
static INT_PTR OnColorStatic(WPARAM wParam, LPARAM lParam);
|
|
||||||
|
|
||||||
HWND m_Window;
|
HWND m_Window;
|
||||||
HFONT m_Font;
|
HFONT m_Font;
|
||||||
HFONT m_FontBold;
|
HFONT m_FontBold;
|
||||||
|
@ -475,13 +475,6 @@ INT_PTR CALLBACK CDialogAbout::CTabLog::DlgProc(HWND hWnd, UINT uMsg, WPARAM wPa
|
|||||||
{
|
{
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
return c_Dialog->m_TabLog->OnCommand(wParam, lParam);
|
return c_Dialog->m_TabLog->OnCommand(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -784,13 +777,6 @@ INT_PTR CALLBACK CDialogAbout::CTabMeasures::DlgProc(HWND hWnd, UINT uMsg, WPARA
|
|||||||
{
|
{
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
return c_Dialog->m_TabMeasures->OnCommand(wParam, lParam);
|
return c_Dialog->m_TabMeasures->OnCommand(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -947,16 +933,6 @@ void CDialogAbout::CTabPlugins::Resize(int w, int h)
|
|||||||
*/
|
*/
|
||||||
INT_PTR CALLBACK CDialogAbout::CTabPlugins::DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK CDialogAbout::CTabPlugins::DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (uMsg)
|
|
||||||
{
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1026,13 +1002,6 @@ INT_PTR CALLBACK CDialogAbout::CTabVersion::DlgProc(HWND hWnd, UINT uMsg, WPARAM
|
|||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
return c_Dialog->m_TabVersion->OnNotify(wParam, lParam);
|
return c_Dialog->m_TabVersion->OnNotify(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -838,13 +838,6 @@ INT_PTR CALLBACK CDialogManage::CTabSkins::DlgProc(HWND hWnd, UINT uMsg, WPARAM
|
|||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
return c_Dialog->m_TabSkins->OnNotify(wParam, lParam);
|
return c_Dialog->m_TabSkins->OnNotify(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1406,13 +1399,6 @@ INT_PTR CALLBACK CDialogManage::CTabThemes::DlgProc(HWND hWnd, UINT uMsg, WPARAM
|
|||||||
{
|
{
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
return c_Dialog->m_TabThemes->OnCommand(wParam, lParam);
|
return c_Dialog->m_TabThemes->OnCommand(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1717,13 +1703,6 @@ INT_PTR CALLBACK CDialogManage::CTabSettings::DlgProc(HWND hWnd, UINT uMsg, WPAR
|
|||||||
{
|
{
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
return c_Dialog->m_TabSettings->OnCommand(wParam, lParam);
|
return c_Dialog->m_TabSettings->OnCommand(wParam, lParam);
|
||||||
|
|
||||||
case WM_CTLCOLORDLG:
|
|
||||||
return OnColorDialog(wParam, lParam);
|
|
||||||
|
|
||||||
case WM_CTLCOLORBTN:
|
|
||||||
case WM_CTLCOLORSTATIC:
|
|
||||||
return OnColorStatic(wParam, lParam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user