Print Page | Close Window

CXTPPropertyGridView Set/Kill focus event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=1958
Printed Date: 04 June 2024 at 1:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridView Set/Kill focus event
Posted By: Sergey
Subject: CXTPPropertyGridView Set/Kill focus event
Date Posted: 13 March 2005 at 4:49am

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

Thanks.




Replies:
Posted By: Oleg
Date 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


Posted By: Sergey
Date 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.




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