Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - No notification message from custom button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No notification message from custom button

 Post Reply Post Reply
Author
Message
floydzhang View Drop Down
Groupie
Groupie


Joined: 08 March 2008
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote floydzhang Quote  Post ReplyReply Direct Link To This Post Topic: No notification message from custom button
    Posted: 08 March 2008 at 6:06am
Hi,
 
I met a strange problem with XTP 11.2.1. I inserted a propertygrid on a pane, and I also created a CXTListCtrl on that pane. I could catch the notification message through OnGridNotify() when I clicked the standard grid items. Then I inserted some custom button as grid item into the propertygrid(same as GridSample) , but I couldn't catch the notification message through OnGridNotify() when I clicked custom button.
 
What's the problem...?
 
some of my code:
 
BEGIN_MESSAGE_MAP(CPropertiesPane, CWnd)
     ......
     ON_MESSAGE(XTPWM_PROPERTYGRID_NOTIFY, OnGirdNotify)
END_MESSAGE_MAP()
 
LRESULT CPropertiesPane::OnGirdNotify(WPARAM wParam, LPARAM lParam)
{
     int nGridAction = (int)wParam;
     .....
}
 
int CPropertiesPane::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CWnd::OnCreate(lpCreateStruct) == -1)
       return -1;
  
    ......
    if (m_wndPropertyGridPart.GetSafeHwnd() == 0)
    {
        m_wndPropertyGridPart.Create(CRect(0, 0, 0, 0), this, 0xf0);
        m_wndPropertyGridPart.SetOwner(this);
        m_wndPropertyGridPart.SetTheme(xtpGridThemeDefault);
        m_wndPropertyGridPart.ShowHelp(FALSE);
    .....
}
 
Regards
Boyang
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.109 seconds.