Print Page | Close Window

CXTPButton bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18527
Printed Date: 27 September 2024 at 8:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPButton bug
Posted By: antspower
Subject: CXTPButton bug
Date Posted: 09 June 2011 at 10:00pm
CODEJOCK TOOLKITPRO 13.1.0.
winsp3 ,vs 2003, in sample button
This button set stytle dropdown. Very nice  indeed!
m_btnWithMenu.SetPushButtonStyle(xtpButtonDropDown);
popup menu is ok.
I add a comand
ON_COMMAND(ID_DROPDOWNMENU_OPTIONITEM1, OnDropdownmenuOptionitem1)
in CButtonPage,to deal this comand,but when I clicked menu item, OnDropdownmenuOptionitem1
nerver run,
is like the message was filter by CXTPButton?
 



Replies:
Posted By: antspower
Date Posted: 09 June 2011 at 11:31pm
 int nCmd = TrackPopupMenu(pPopup->GetSafeHmenu(), TPM_LEFTALIGN | TPM_LEFTBUTTON | TPM_VERTICAL|TPM_RETURNCMD ,
  dwStyle == xtpButtonDropDownRight ? rect.right : rect.left, dwStyle == xtpButtonDropDownRight ? rect.top : rect.bottom, 0, this->GetSafeHwnd(), 0);
 
the demo add attribit TPM_RETURNCMD  remove it is ok



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