Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridView Set/Kill focus event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridView Set/Kill focus event

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


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridView Set/Kill focus event
    Posted: 13 March 2005 at 4:49am

How could I get notification on CXTPPropertyGridView Set/Kill focus events?

Thanks.

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: 14 March 2005 at 2:05pm

9.60 has

virtual CXTPPropertyGridView* CXTPPropertyGrid::CreateView();

 

so you can override CXTPPropertyGrid, CXTPPropertyGridView and add

ON_WM_SETFOCUS()
ON_WM_KILLFOCUS()

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Sergey View Drop Down
Newbie
Newbie


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2005 at 4:05am

Hi Oleg,

Thank you for reply.

I created class CXTPPropertyGridEx : public CXTPPropertyGrid

and added virtual CXTPPropertyGridView* CreateView() to it.

The method CreateView is called from CXTPPropertyGrid construcor. At this point my CXTPPropertyGridEx object was not created yet. That is why the method CXTPPropertyGrid::CreateView() is called rather than CXTPPropertyGridEx::CreateView(). So I can not create my view and catch events.

I need notification on CXTPPropertyGridView Set/Kill focus events.

Thank you.

Sergey.

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.203 seconds.