Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Does CodeJock support OLE?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Does CodeJock support OLE?

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 874
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Does CodeJock support OLE?
    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).
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 874
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.174 seconds.