Print Page | Close Window

owner draw buttons not checking ODS_NOFOCUSRECT

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4709
Printed Date: 10 November 2025 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: owner draw buttons not checking ODS_NOFOCUSRECT
Posted By: Kukis
Subject: owner draw buttons not checking ODS_NOFOCUSRECT
Date 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 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net