mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
[COMCTL32] - A button with the style BS_DEFPUSHBUTTON is drawn as defaulted instead of normal.
svn path=/trunk/; revision=74074
This commit is contained in:
parent
c27717bac7
commit
f3a00c2f57
1 changed files with 5 additions and 0 deletions
|
@ -361,6 +361,11 @@ BOOL BUTTON_PaintWithTheme(HTHEME theme, HWND hwnd, HDC hParamDC, LPARAM prfFlag
|
||||||
}
|
}
|
||||||
else drawState = STATE_DISABLED;
|
else drawState = STATE_DISABLED;
|
||||||
|
|
||||||
|
if (drawState == STATE_NORMAL && (dwStyle & BUTTON_TYPE) == BS_DEFPUSHBUTTON)
|
||||||
|
{
|
||||||
|
drawState = STATE_DEFAULTED;
|
||||||
|
}
|
||||||
|
|
||||||
paint(theme, hwnd, hParamDC, drawState, dtFlags, state & BST_FOCUS, prfFlag);
|
paint(theme, hwnd, hParamDC, drawState, dtFlags, state & BST_FOCUS, prfFlag);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue