![]() |
owner draw buttons not checking ODS_NOFOCUSRECT |
Post Reply
|
| Author | |
Kukis
Newbie
Joined: 24 May 2006 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: owner draw buttons not checking ODS_NOFOCUSRECTPosted: 03 August 2006 at 3:37am |
|
Hello,
I've noticed that cxtButtonTheme is not checking ODS_NOFOCUSRECT flag to check is focus rectangle visible.
void CXTButtonTheme::DrawItem(LPDRAWITEMSTRUCT lpDIS, CXTButton* pButton)
{ .....................
// Draw the focus rect if style is set and we have focus.
if ((pButton->GetXButtonStyle() & BS_XT_SHOWFOCUS) && (nState & ODS_FOCUS)) // shouldnt be here additional check !(nState & ODS_NOFOCUSRECT)?
{
DrawFocusRect(pDC, nState, rcItem, pButton); } } P.S. not big deal, but I havent found at least one such check in all your library code
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |