Get CXTPControl when pressed |
Post Reply |
Author | |
yoavo
Senior Member Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 14 December 2005 at 11:16pm |
Hi, Is there a way to get the CXTPControl (a button in a CXTPToolbar) when the user clicked it ? (I need to get its rect in order to place a dynamic toolbar next to it when the user click on the toolbar button). Yoav. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, use ON_XTP_EXECUTE: ON_XTP_EXECUTE(ID_EDIT_FIND, OnEditFind) void CCustomThemesView::OnEditFind(NMHDR* pNMHDR, LRESULT* pResult) NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR; CXTPControl* pControl = tagNMCONTROL->pControl; *pResult = 1; // Handled;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |