![]() |
How to receive the XTPWM_PROPERTYGRID_NOTIFY msg? |
Post Reply
|
| Author | |
long3737
Newbie
Joined: 08 December 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?Posted: 08 December 2007 at 4:27am |
|
Hello!
I attempt to receive the XTPWM_PROPERTYGRID_NOTIFY message and map it to the OnGridNotify function like \Samples\PropertyGrid\GridSample in my class, which inherit from CXTPPropertyGrid,but it doesn't work.
Thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 December 2007 at 1:48pm |
|
what doesn't work. where you catch it.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
long3737
Newbie
Joined: 08 December 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 December 2007 at 9:33pm |
|
I'm sorry that I haven't expressed it clearly.
my code like this: //ToolPane.h class ToolPane : public CXTPPropertyGrid { …… afx_msg LRESULT OnGridNotify(WPARAM, LPARAM); DECLARE_MESSAGE_MAP() } //ToolPane.cpp //message map BEGIN_MESSAGE_MAP(ToolPane, CXTPPropertyGrid) …… ON_MESSAGE(XTPWM_PROPERTYGRID_NOTIFY, OnGridNotify) END_MESSAGE_MAP() LRESULT EnvironmentPane::OnGridNotify(WPARAM wParam, LPARAM lParam) { TRACE("OnGridNotify"); return 0; } OnGridNotify doesn't work. By the way,this pane is a child window of a CXTPTabControl window. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(1)
Quote Reply
Posted: 09 December 2007 at 4:17am |
|
CXTPPropertyGridi sends message to parent. not to self.
If you need handle message in grid, override
LRESULT CXTPPropertyGrid::SendNotifyMessage(WPARAM wParam /*= 0*/, LPARAM lParam /*= 0*/)
message. LRESULT EnvironmentPane::SendNotifyMessage(WPARAM wParam, LPARAM lParam)
{ TRACE("OnGridNotify"); return 0; } |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
long3737
Newbie
Joined: 08 December 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 December 2007 at 6:31am |
|
Oh yeah!
Thanks a lot for your help! |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |