Print Page | Close Window

Does CodeJock support OLE?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8925
Printed Date: 06 October 2024 at 7:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Does CodeJock support OLE?
Posted By: rdhd
Subject: Does CodeJock support OLE?
Date Posted: 27 November 2007 at 1:26pm
I am examining how to convert OLE merged menus into a command ribbon.
 
How does CodeJock support OLE?
 
In particular how do I get CodeJock to send the WM_COMMAND messages to the correct window (as windows does after we call OleSetMenuDescriptor passing in the merged menu).



Replies:
Posted By: Oleg
Date Posted: 28 November 2007 at 1:08am
Hi,
Unfortunatelly OleSetMenuDescriptor  can work only with menus. Even Word hide Ribbon and show standard menu for OLE. Do same.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rdhd
Date Posted: 28 November 2007 at 6:23pm
No can do. Our app is MDI and IPAs it's own document types. Plus Word looks like a four letter word when they do that.
 
I believe CJ could easily support "merged ribbons" by simply allowing one to specify the hWnd of the WM_COMMAND target when a tab is added to the ribbon. If no HWND is supplied, route the messages as you currently do. If one is supplied use it to route the messages.
 
This would be analogous to the command bars TrackPopupMenuEx routines where I can bypass the command bars WM_COMMAND target by supplying a different CWnd.
 
If you consider an enhancement along the lines I suggest, please keep it an HWND and not a CWnd.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net