Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Is this really neccessary...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Is this really neccessary...

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: Is this really neccessary...
    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);

}

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2007 at 8:18am
Thanks :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2007 at 12:14pm
there was no problem. Just 2 same lines.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2007 at 2:06am
Hi Terrym,
 
I hope your message was ironically, too.
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.047 seconds.