winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
May 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
793 discussions
Start a n
N
ew thread
Nikolay Sivov : comctl32/tab: Use cached colors for Tab.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 745f48157df025596680fd4e8bde1cde20af7134 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=745f48157df025596680fd4e8…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:55:51 2009 +0400 comctl32/tab: Use cached colors for Tab. --- dlls/comctl32/tab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index c2ab01e..b884697 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1668,7 +1668,7 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect /* * Text pen */ - htextPen = CreatePen( PS_SOLID, 1, GetSysColor(COLOR_BTNTEXT) ); + htextPen = CreatePen( PS_SOLID, 1, comctl32_color.clrBtnText ); holdPen = SelectObject(hdc, htextPen); hOldFont = SelectObject(hdc, infoPtr->hFont);
1
0
0
0
Nikolay Sivov : comctl32/comboex: Use cached colors for ComboEx.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 649e4640d154d07eb25dadb28ab05dd9081d530f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=649e4640d154d07eb25dadb28…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:52:50 2009 +0400 comctl32/comboex: Use cached colors for ComboEx. --- dlls/comctl32/comboex.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/comboex.c b/dlls/comctl32/comboex.c index 25c2dbf..04464fd 100644 --- a/dlls/comctl32/comboex.c +++ b/dlls/comctl32/comboex.c @@ -1535,11 +1535,11 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT const *di /* now draw the text */ if (!IsWindowVisible (infoPtr->hwndEdit)) { - nbkc = GetSysColor ((dis->itemState & ODS_SELECTED) ? - COLOR_HIGHLIGHT : COLOR_WINDOW); + nbkc = (dis->itemState & ODS_SELECTED) ? + comctl32_color.clrHighlight : comctl32_color.clrWindow; bkc = SetBkColor (dis->hDC, nbkc); - ntxc = GetSysColor ((dis->itemState & ODS_SELECTED) ? - COLOR_HIGHLIGHTTEXT : COLOR_WINDOWTEXT); + ntxc = (dis->itemState & ODS_SELECTED) ? + comctl32_color.clrHighlightText : comctl32_color.clrWindowText; txc = SetTextColor (dis->hDC, ntxc); x = xbase + xioff; y = dis->rcItem.top + @@ -1750,7 +1750,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) * The following was determined by traces of the native */ hDC = (HDC) wParam; - obkc = SetBkColor (hDC, GetSysColor (COLOR_WINDOW)); + obkc = SetBkColor (hDC, comctl32_color.clrWindow); GetClientRect (hwnd, &rect); TRACE("erasing (%s)\n", wine_dbgstr_rect(&rect)); ExtTextOutW (hDC, 0, 0, ETO_OPAQUE, &rect, 0, 0, 0); @@ -1953,7 +1953,7 @@ COMBOEX_ComboWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) * The following was determined by traces of the native */ hDC = (HDC) wParam; - obkc = SetBkColor (hDC, GetSysColor (COLOR_WINDOW)); + obkc = SetBkColor (hDC, comctl32_color.clrWindow); GetClientRect (hwnd, &rect); TRACE("erasing (%s)\n", wine_dbgstr_rect(&rect)); ExtTextOutW (hDC, 0, 0, ETO_OPAQUE, &rect, 0, 0, 0); @@ -2320,6 +2320,10 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) SetFocus(infoPtr->hwndCombo); return 0; + case WM_SYSCOLORCHANGE: + COMCTL32_RefreshSysColors(); + return 0; + default: if ((uMsg >= WM_USER) && (uMsg < WM_APP) && !COMCTL32_IsReflectedMessage(uMsg)) ERR("unknown msg %04x wp=%08lx lp=%08lx\n",uMsg,wParam,lParam);
1
0
0
0
Nikolay Sivov : comctl32/toolbar: No need to use GetSysColor directly.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 1f43da01c065cf7f0130e7dc557fc8792eac6936 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1f43da01c065cf7f0130e7dc5…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:40:39 2009 +0400 comctl32/toolbar: No need to use GetSysColor directly. --- dlls/comctl32/toolbar.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 097d628..06bf239 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -2615,7 +2615,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) else oldText = SetTextColor (lpdis->hDC, (lpdis->itemState & ODS_FOCUS)?comctl32_color.clrHighlightText:comctl32_color.clrWindowText); hPen = CreatePen( PS_SOLID, 1, - GetSysColor( (lpdis->itemState & ODS_SELECTED)?COLOR_HIGHLIGHT:COLOR_WINDOW)); + (lpdis->itemState & ODS_SELECTED)?comctl32_color.clrHighlight:comctl32_color.clrWindow); hOldPen = SelectObject (lpdis->hDC, hPen ); hOldBrush = SelectObject (lpdis->hDC, GetSysColorBrush ((lpdis->itemState & ODS_FOCUS)?COLOR_HIGHLIGHT:COLOR_WINDOW));
1
0
0
0
Nikolay Sivov : comctl32/toolbar: Use already cached control window style.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 97ecd468c49c8490a7a287428869a64f20a1f0ab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=97ecd468c49c8490a7a287428…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:36:26 2009 +0400 comctl32/toolbar: Use already cached control window style. --- dlls/comctl32/toolbar.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index f1c3fa7..097d628 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -3612,7 +3612,7 @@ TOOLBAR_GetState (const TOOLBAR_INFO *infoPtr, WPARAM wParam) static LRESULT TOOLBAR_GetStyle (const TOOLBAR_INFO *infoPtr) { - return GetWindowLongW(infoPtr->hwndSelf, GWL_STYLE); + return infoPtr->dwStyle; } @@ -5491,7 +5491,7 @@ TOOLBAR_LButtonDblClk (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam) if (nHit >= 0) TOOLBAR_LButtonDown (infoPtr, wParam, lParam); - else if (GetWindowLongW (infoPtr->hwndSelf, GWL_STYLE) & CCS_ADJUSTABLE) + else if (infoPtr->dwStyle & CCS_ADJUSTABLE) TOOLBAR_Customize (infoPtr); return 0;
1
0
0
0
Nikolay Sivov : comctl32/toolbar: Remove superfluous forward declarations.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: b97600699ab89a408a30b115eb37af5c5e4c8be0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b97600699ab89a408a30b115e…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:31:15 2009 +0400 comctl32/toolbar: Remove superfluous forward declarations. --- dlls/comctl32/toolbar.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index d47a611..f1c3fa7 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -246,15 +246,12 @@ static PIMLENTRY TOOLBAR_GetImageListEntry(const PIMLENTRY *pies, INT cies, INT static VOID TOOLBAR_DeleteImageList(PIMLENTRY **pies, INT *cies); static HIMAGELIST TOOLBAR_InsertImageList(PIMLENTRY **pies, INT *cies, HIMAGELIST himl, INT id); static LRESULT TOOLBAR_LButtonDown(TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam); -static void TOOLBAR_SetHotItemEx (TOOLBAR_INFO *infoPtr, INT nHit, DWORD dwReason); static void TOOLBAR_LayoutToolbar(TOOLBAR_INFO *infoPtr); static LRESULT TOOLBAR_AutoSize(TOOLBAR_INFO *infoPtr); static void TOOLBAR_CheckImageListIconSize(TOOLBAR_INFO *infoPtr); static void TOOLBAR_TooltipAddTool(const TOOLBAR_INFO *infoPtr, const TBUTTON_INFO *button); static void TOOLBAR_TooltipSetRect(const TOOLBAR_INFO *infoPtr, const TBUTTON_INFO *button); -static LRESULT -TOOLBAR_NotifyFormat(const TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam); static inline int default_top_margin(const TOOLBAR_INFO *infoPtr) {
1
0
0
0
Nikolay Sivov : comctl32/toolbar: Retrieve control data once at WinProc.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 9a0f600574fdc8a01625a5c7f65b0e0b08b1af8e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9a0f600574fdc8a01625a5c7f…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:27:15 2009 +0400 comctl32/toolbar: Retrieve control data once at WinProc. --- dlls/comctl32/toolbar.c | 975 ++++++++++++++++++++--------------------------- 1 files changed, 419 insertions(+), 556 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9a0f600574fdc8a01625a…
1
0
0
0
Nikolay Sivov : comctl32/status: Use cached colors instead of GetSysColor for Status.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 2b72ae6e01f72dca5503677a5097c1c002e6db09 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2b72ae6e01f72dca5503677a5…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:08:00 2009 +0400 comctl32/status: Use cached colors instead of GetSysColor for Status. --- dlls/comctl32/status.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index 17ba1e9..f7d203b 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -167,7 +167,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect) pt.x = lpRect->right - 1; pt.y = lpRect->bottom - 1; - hPenFace = CreatePen( PS_SOLID, 1, GetSysColor( COLOR_3DFACE )); + hPenFace = CreatePen( PS_SOLID, 1, comctl32_color.clr3dFace); hOldPen = SelectObject( hdc, hPenFace ); MoveToEx (hdc, pt.x - 12, pt.y, NULL); LineTo (hdc, pt.x, pt.y); @@ -176,7 +176,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect) pt.x--; pt.y--; - hPenShadow = CreatePen( PS_SOLID, 1, GetSysColor( COLOR_3DSHADOW )); + hPenShadow = CreatePen( PS_SOLID, 1, comctl32_color.clr3dShadow); SelectObject( hdc, hPenShadow ); for (i = 1; i < 11; i += 4) { MoveToEx (hdc, pt.x - i, pt.y, NULL); @@ -186,7 +186,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect) LineTo (hdc, pt.x + 1, pt.y - i - 2); } - hPenHighlight = CreatePen( PS_SOLID, 1, GetSysColor( COLOR_3DHIGHLIGHT )); + hPenHighlight = CreatePen( PS_SOLID, 1, comctl32_color.clr3dHilight); SelectObject( hdc, hPenHighlight ); for (i = 3; i < 13; i += 4) { MoveToEx (hdc, pt.x - i, pt.y, NULL); @@ -1313,6 +1313,10 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) if (STATUSBAR_WMSize (infoPtr, (WORD)wParam)) return 0; return DefWindowProcW (hwnd, msg, wParam, lParam); + case WM_SYSCOLORCHANGE: + COMCTL32_RefreshSysColors(); + return 0; + case WM_THEMECHANGED: return theme_changed (infoPtr);
1
0
0
0
Nikolay Sivov : comctl32/rebar: Use cached colors instead of GetSysColor for Rebar.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 109a10c961e63ef7c63fb48c8723dcad61965c54 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=109a10c961e63ef7c63fb48c8…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:07:00 2009 +0400 comctl32/rebar: Use cached colors instead of GetSysColor for Rebar. --- dlls/comctl32/rebar.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 089da39..982c844 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -3190,8 +3190,8 @@ REBAR_NCCreate (HWND hwnd, LPARAM lParam) /* initialize info structure - initial values are 0 */ infoPtr->clrBk = CLR_NONE; infoPtr->clrText = CLR_NONE; - infoPtr->clrBtnText = GetSysColor (COLOR_BTNTEXT); - infoPtr->clrBtnFace = GetSysColor (COLOR_BTNFACE); + infoPtr->clrBtnText = comctl32_color.clrBtnText; + infoPtr->clrBtnFace = comctl32_color.clrBtnFace; infoPtr->iOldBand = -1; infoPtr->ichevronhotBand = -2; infoPtr->iGrabbedBand = -1; @@ -3720,10 +3720,9 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_THEMECHANGED: return theme_changed (infoPtr); -/* case WM_SYSCOLORCHANGE: supported according to ControlSpy */ -/* "Applications that have brushes using the existing system colors - should delete those brushes and recreate them using the new - system colors." per MSDN */ + case WM_SYSCOLORCHANGE: + COMCTL32_RefreshSysColors(); + return 0; /* case WM_VKEYTOITEM: supported according to ControlSpy */ /* case WM_WININICHANGE: */
1
0
0
0
Nikolay Sivov : comctl32/monthcal: Use cached colors instead of GetSysColor for MonthCal.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: cf67786e406c3a5a7be913bd1c31b0903e6ba29f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf67786e406c3a5a7be913bd1…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 19:03:40 2009 +0400 comctl32/monthcal: Use cached colors instead of GetSysColor for MonthCal. --- dlls/comctl32/monthcal.c | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 15acf1f..be41451 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -456,7 +456,7 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT SYSTEMTIME localtime; int startofprescal; - oldTextColor = SetTextColor(hdc, GetSysColor(COLOR_WINDOWTEXT)); + oldTextColor = SetTextColor(hdc, comctl32_color.clrWindowText); /* fill background */ hbr = CreateSolidBrush (infoPtr->bk); @@ -1926,12 +1926,12 @@ MONTHCAL_Create(HWND hwnd, LPARAM lParam) infoPtr->monthRange = 3; infoPtr->monthdayState = Alloc (infoPtr->monthRange * sizeof(MONTHDAYSTATE)); - infoPtr->titlebk = GetSysColor(COLOR_ACTIVECAPTION); - infoPtr->titletxt = GetSysColor(COLOR_WINDOW); - infoPtr->monthbk = GetSysColor(COLOR_WINDOW); - infoPtr->trailingtxt = GetSysColor(COLOR_GRAYTEXT); - infoPtr->bk = GetSysColor(COLOR_WINDOW); - infoPtr->txt = GetSysColor(COLOR_WINDOWTEXT); + infoPtr->titlebk = comctl32_color.clrActiveCaption; + infoPtr->titletxt = comctl32_color.clrWindow; + infoPtr->monthbk = comctl32_color.clrWindow; + infoPtr->trailingtxt = comctl32_color.clrGrayText; + infoPtr->bk = comctl32_color.clrWindow; + infoPtr->txt = comctl32_color.clrWindowText; /* set the current day for highlighing */ infoPtr->minSel.wDay = infoPtr->todaysDate.wDay; @@ -2082,6 +2082,10 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_DESTROY: return MONTHCAL_Destroy(infoPtr); + case WM_SYSCOLORCHANGE: + COMCTL32_RefreshSysColors(); + return 0; + default: if ((uMsg >= WM_USER) && (uMsg < WM_APP) && !COMCTL32_IsReflectedMessage(uMsg)) ERR( "unknown msg %04x wp=%08lx lp=%08lx\n", uMsg, wParam, lParam);
1
0
0
0
Nikolay Sivov : comctl32/ipaddress: Use cached colors instead of GetSysColor for IPAddress control.
by Alexandre Julliard
19 May '09
19 May '09
Module: wine Branch: master Commit: 8806b1e83e3eeb5810428f374a1f0005fd88fd5e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8806b1e83e3eeb5810428f374…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon May 18 18:57:19 2009 +0400 comctl32/ipaddress: Use cached colors instead of GetSysColor for IPAddress control. --- dlls/comctl32/ipaddress.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index a90f6e9..42ac703 100644 --- a/dlls/comctl32/ipaddress.c +++ b/dlls/comctl32/ipaddress.c @@ -158,18 +158,18 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc) GetClientRect (infoPtr->Self, &rect); if (infoPtr->Enabled) { - bgCol = COLOR_WINDOW; - fgCol = COLOR_WINDOWTEXT; + bgCol = comctl32_color.clrWindow; + fgCol = comctl32_color.clrWindowText; } else { - bgCol = COLOR_3DFACE; - fgCol = COLOR_GRAYTEXT; + bgCol = comctl32_color.clr3dFace; + fgCol = comctl32_color.clrGrayText; } FillRect (hdc, &rect, (HBRUSH)(DWORD_PTR)(bgCol+1)); DrawEdge (hdc, &rect, EDGE_SUNKEN, BF_RECT | BF_ADJUST); - SetBkColor (hdc, GetSysColor(bgCol)); - SetTextColor(hdc, GetSysColor(fgCol)); + SetBkColor (hdc, bgCol); + SetTextColor(hdc, fgCol); for (i = 0; i < 3; i++) { GetWindowRect (infoPtr->Part[i].EditHwnd, &rcPart); @@ -595,6 +595,10 @@ IPADDRESS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) } break; + case WM_SYSCOLORCHANGE: + COMCTL32_RefreshSysColors(); + return 0; + case IPM_CLEARADDRESS: IPADDRESS_ClearAddress (infoPtr); break;
1
0
0
0
← Newer
1
...
30
31
32
33
34
35
36
...
80
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Results per page:
10
25
50
100
200