![]() |
Does CodeJock support OLE? |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 899 |
![]() ![]() ![]() ![]() ![]() 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).
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 899 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |