Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - owner draw buttons not checking ODS_NOFOCUSRECT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

owner draw buttons not checking ODS_NOFOCUSRECT

 Post Reply Post Reply
Author
Message
Kukis View Drop Down
Newbie
Newbie


Joined: 24 May 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kukis Quote  Post ReplyReply Direct Link To This Post Topic: owner draw buttons not checking ODS_NOFOCUSRECT
    Posted: 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 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.