Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CTreeView context popup menus Collapse All
Subject Author Date
Jacquie Howard May 6, 2004 - 9:25 AM

I am having another problem with my floating control bar with a CTreeView inside.


Again everything is fine whilst the control bar is docked, but when its floating the context menus are disabled and if you right click over another item whilst the previous pop up menu is still showing the old one gets painted over in gray.


I have another control bar with a CListViewEx inside and that one behaves perfectly, so I am guessing I am missing something to do with the CTreeView itself - any suggestions?


Thanks,


Jacquie

Technical Support May 6, 2004 - 11:45 AM

Dear Jacquie,

We need to take a look at the source code so that we can help you in this case (It seems yhe problem depends on your task). Could you send us your test project.

Jacquie Howard May 7, 2004 - 5:06 PM

I saw another post in the discussion forum that asked about this same problem.


Could I not try the same update code that you sent that poster please.


Jacquie

Technical Support May 11, 2004 - 7:10 AM

Dear Jackuie,

We are sorry, but what do you mean exactly when you wrote "I saw another post in the discussion forum that asked about this same problem. Could I not try the same update code that you sent that poster please."?

Jacquie Howard May 11, 2004 - 10:02 AM

Dear Technical Support,


In the Prof_UIS General Discussion topic there is a message entitled "Popup menu disabled with floating CExtControlBar" posted by Ken Knapton on April 12th which seems to address the same problem I am having.


Jacquie

Technical Support May 12, 2004 - 5:42 AM

Dear Jacquie,

If you use CExtPopupMenuWnd in the tree control which is inside resizable control bar, you should use your own class derived from CTreeCtrl or CTreeView and specify an HWND of the tree control when calling the CExtPopupMenuWnd::LoadMenu or CExtPopupMenuWnd::CreatePopupMenu methods. Besides add command handler methods (plus command updating methods if you need) for all the context menu commands to your tree control class (not to the mainframe). Please follow these suggestions and let us know whether they help you.

Jacquie Howard Jun 1, 2004 - 9:48 AM

I was concentrating on other stuff so haven’t been able to look at this for a while.


I wasn’t using CExtPopupMenuWnd - this is code that has been adapted to use ProfUIS so it’s a bit of a mixture.


From your advice though I turned my attention to what windows were being passed to the CMenu TrackPopupMenu method and pass it my tree’s window instead of the parent window it was using.


Thanks


Jacquie