mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
[SHELL32] De-select m_marlett on CMenuToolbarBase::OnCustomDraw
CORE-13194
This commit is contained in:
parent
62f09debc1
commit
924a8fea10
1 changed files with 3 additions and 1 deletions
|
@ -246,7 +246,7 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw, LRESULT * theResu
|
|||
WCHAR text [] = L"8";
|
||||
|
||||
// Configure the font to draw with Marlett, keeping the current background color as-is
|
||||
SelectObject(cdraw->nmcd.hdc, m_marlett);
|
||||
HGDIOBJ hFontOld = SelectObject(cdraw->nmcd.hdc, m_marlett);
|
||||
SetBkMode(cdraw->nmcd.hdc, TRANSPARENT);
|
||||
|
||||
// Tweak the alignment by 1 pixel so the menu draws like the Windows start menu.
|
||||
|
@ -255,6 +255,8 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw, LRESULT * theResu
|
|||
|
||||
// The arrow is drawn at the right of the item's rect, aligned vertically.
|
||||
DrawTextEx(cdraw->nmcd.hdc, text, 1, &rc, DT_NOCLIP | DT_VCENTER | DT_RIGHT | DT_SINGLELINE, NULL);
|
||||
|
||||
SelectObject(cdraw->nmcd.hdc, hFontOld);
|
||||
}
|
||||
*theResult = TRUE;
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in a new issue