Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPButton bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPButton bug

 Post Reply Post Reply
Author
Message
antspower View Drop Down
Newbie
Newbie


Joined: 21 July 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote antspower Quote  Post ReplyReply Direct Link To This Post Topic: CXTPButton bug
    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?
 
Back to Top
antspower View Drop Down
Newbie
Newbie


Joined: 21 July 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote antspower Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.