Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridItemColor edit notifications
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItemColor edit notifications

 Post Reply Post Reply
Author
Message
Silvery View Drop Down
Groupie
Groupie
Avatar

Joined: 21 September 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Silvery Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridItemColor edit notifications
    Posted: 21 September 2007 at 4:32am
When CXTPPropertyGridItemColor is used with xtpGridItemColorPopup editor style; XTP_PGN_REQUESTEDIT notification is sent before the popup is shown but neither XTP_PGN_CANCELEDIT nor XTP_PGN_AFTEREDIT are sent after the popup is closed.
Back to Top
Silvery View Drop Down
Groupie
Groupie
Avatar

Joined: 21 September 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Silvery Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2007 at 4:35am
The problem is observed in version 11.2
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 21 September 2007 at 9:46am
Hi,
 
Thanks, good point.
 
Please replace OnWndMsg method in XTPPropertyGridItemColor.cpp
 
BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
   {
    if (message == CPN_XT_SELENDOK)
    {
     CString strValue = m_pItem->RGBToString((COLORREF)wParam);
     if (m_pItem->OnAfterEdit(strValue))
     {
      m_pItem->OnValueChanged(strValue);
     }
     *pResult = 0;
     return TRUE;
    }
    if (message == CPN_XT_SELENDCANCEL)
    {
     m_pItem->OnCancelEdit();
    }

    return CXTColorPopup::OnWndMsg(message, wParam, lParam, pResult);\
   }
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.188 seconds.