Print Page | Close Window

Is this really neccessary...

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=8404
Printed Date: 13 November 2025 at 9:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Is this really neccessary...
Posted By: Michl
Subject: Is this really neccessary...
Date Posted: 11 October 2007 at 7:18am
This is an extract of 11.1.3. It is possible that it was corrected in 11.2.
 

void CXTButton::OnDraw(CDC* pDC)

{

DRAWITEMSTRUCT dis;

ZeroMemory(&dis, sizeof(DRAWITEMSTRUCT));

dis.CtlType = ODT_BUTTON;

dis.CtlID = GetDlgCtrlID();

dis.itemState = 0;

if (::GetFocus() == m_hWnd) dis.itemState |= ODS_FOCUS;

if (m_bPushed) dis.itemState |= ODS_SELECTED;

LRESULT dwState = SendMessage(WM_QUERYUISTATE);

if (dwState & UISF_HIDEACCEL) dis.itemState |= ODS_NOACCEL;

if (dwState & UISF_HIDEFOCUS) dis.itemState |= ODS_NOFOCUSRECT;

if (dwState & UISF_HIDEFOCUS) dis.itemState |= ODS_NOFOCUSRECT;

if (!IsWindowEnabled()) dis.itemState |= ODS_DISABLED;

dis.hwndItem = m_hWnd;

dis.hDC = pDC->GetSafeHdc();

dis.rcItem = CXTPClientRect(this);

DrawItem(&dis);

}




Replies:
Posted By: Oleg
Date Posted: 12 October 2007 at 8:18am
Thanks :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 12 October 2007 at 9:03am
I assume we just remove that line that is in red and it will fix this problem ???

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 12 October 2007 at 12:14pm
there was no problem. Just 2 same lines.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Michl
Date Posted: 15 October 2007 at 2:06am
Hi Terrym,
 
I hope your message was ironically, too.



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