Print Page | Close Window

CXTColorPopup sends CPN_XT_SELENDCANCEL twice

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=8115
Printed Date: 13 November 2025 at 2:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTColorPopup sends CPN_XT_SELENDCANCEL twice
Posted By: Silvery
Subject: CXTColorPopup sends CPN_XT_SELENDCANCEL twice
Date Posted: 21 September 2007 at 4:40am
Toolkit version 11.2.
 
If CXTColorPopup is closed by Esc the popup sends CPN_XT_SELENDCANCEL twice. Once from CXTColorPopup::PreTranslateMessage and once from CXTColorSelectorCtrl::OnKeyDown
 



Replies:
Posted By: Oleg
Date Posted: 21 September 2007 at 9:37am
Hello,
 
Thanks, please modify CXTColorPopup::PreTranslateMessage
 method as
 if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ESCAPE)
 {
  EndSelection(-1);
  return TRUE;
 }


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



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