![]() |
CXTPButton bug |
Post Reply
|
| Author | |
antspower
Newbie
Joined: 21 July 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPButton bugPosted: 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?
|
|
![]() |
|
antspower
Newbie
Joined: 21 July 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |