mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
[COMCTL32] -BUTTON_PaintWithTheme: Draw checked pushlike buttons as pressed.
svn path=/trunk/; revision=75488
This commit is contained in:
parent
98d7d08cbf
commit
793519c8bc
|
@ -471,12 +471,19 @@ static BOOL BUTTON_Paint(HTHEME theme, HWND hwnd, HDC hParamDC)
|
|||
|
||||
if(IsWindowEnabled(hwnd))
|
||||
{
|
||||
if(state & BST_PUSHED) drawState = STATE_PRESSED;
|
||||
else if(state & BST_HOT) drawState = STATE_HOT;
|
||||
else if(state & BST_FOCUS) drawState = STATE_DEFAULTED;
|
||||
else drawState = STATE_NORMAL;
|
||||
if(state & BST_PUSHED)
|
||||
drawState = STATE_PRESSED;
|
||||
else if ((dwStyle & BS_PUSHLIKE) && (state & (BST_CHECKED|BST_INDETERMINATE)))
|
||||
drawState = STATE_PRESSED;
|
||||
else if(state & BST_HOT)
|
||||
drawState = STATE_HOT;
|
||||
else if(state & BST_FOCUS)
|
||||
drawState = STATE_DEFAULTED;
|
||||
else
|
||||
drawState = STATE_NORMAL;
|
||||
}
|
||||
else drawState = STATE_DISABLED;
|
||||
else
|
||||
drawState = STATE_DISABLED;
|
||||
|
||||
#ifndef __REACTOS__ /* r73873 */
|
||||
hDC = hParamDC ? hParamDC : BeginPaint(hwnd, &ps);
|
||||
|
|
Loading…
Reference in a new issue