Problem with context-menu in focused pane |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 14 June 2009 at 7:27pm |
XTP 13.
Pane X is not focused. When I right-click it, a context-menu is displayed. The menu items are incorrectly updated due to the fact that pane X is not focused! (I override OnCmdMsg...).
I've tried calling SetFocus() in CMyPaneChildWnd::OnRButtonDown(), but the focus is gained after the context-menu is dismissed. How can I make sure my window has focus before the menu is displayed? In Explorer items get focused immediately when right-clicking...!
Thanks!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Call m_paneManager.UpdatePanes() after SetFocus line.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Thanks a lot! Have had this problem for months :P
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |