Print Page | Close Window

How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9044
Printed Date: 14 November 2025 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?
Posted By: long3737
Subject: How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?
Date 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



Replies:
Posted By: Oleg
Date Posted: 08 December 2007 at 1:48pm
what doesn't work. where you catch it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


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


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


Posted By: long3737
Date Posted: 09 December 2007 at 6:31am
Oh yeah!
Thanks a lot for your help!



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