Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to receive the XTPWM_PROPERTYGRID_NOTIFY msg?

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


Joined: 08 December 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote long3737 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 08 December 2007 at 1:48pm
what doesn't work. where you catch it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
long3737 View Drop Down
Newbie
Newbie


Joined: 08 December 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote long3737 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (1) Thanks(1)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
long3737 View Drop Down
Newbie
Newbie


Joined: 08 December 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote long3737 Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2007 at 6:31am
Oh yeah!
Thanks a lot for your help!
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.063 seconds.