Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGrid and property pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGrid and property pages

 Post Reply Post Reply
tmolander View Drop Down

Joined: 11 April 2006
Location: Finland
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tmolander Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGrid and property pages
    Posted: 11 April 2006 at 8:01am

I need to use CXTPPropertyGrid control in CPropertyPage derived class.

When testing my property page I found out that I cannot get to the controls in property sheet with TAB i.e. to OK and Cancel buttons which are located in the sheet and not in the page. If I insert controls into the page I can get to those with TAB though.

The same behaviour can be seen in PropertyGrid's OwnerDraw sample (included with Xtreme Toolkit Pro v9.81 which I am using).

Does anyone have a fix or workaround?



Back to Top
Oleg View Drop Down
Admin Group
Admin Group

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 April 2006 at 8:16am

Thank you,

please replace this method:

CWnd* CXTPPropertyGrid::GetNextGridTabItem(BOOL bForward)
 CWnd* pThis = this;
 CWnd* pParent = pThis->GetParent();

 if (!pThis || !pParent)
  return 0 ;
 if ((pParent->GetExStyle() & WS_EX_CONTROLPARENT) && (pParent->GetStyle() & WS_CHILD))
  pParent = pParent->GetParent();

 CWnd* pNextItem = pParent->GetNextDlgTabItem(pThis, bForward);

 if (pNextItem == pThis)
  return NULL;

 return pNextItem;

Oleg, Support Team
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.078 seconds.