I'm working on a Word add-in that will require a custom GUI. I'm doing all
of the work in C++ (I wrote wrapper classes to make the appropriate COM calls
for the Word object model). I know you can create userforms with VBA, but
can I do the same with C++? Basically, I don't see how to get the Windows
messages from Word to be sent to my own event handlers inside the separate
dll. I know that this is a bit beyond the scope of this group, but I thought
someone might have some insight into how the userforms integrate so I could
use a similar method for my GUI.
Thanks.
Hi =?Utf-8?B?QWxhbkM=?=,
One of the Office Developer groups might be better for this question. What
you're asking is definitely possible in the .NET languages, so I assume the same
would apply to C++. The tricky part is that Word doesn't have that many events
you can use.
Beyond Word's internal events, your only available interface is commandbars.
Or, you'd need to provide a Word template Addin with Callbacks (procedures) to
your Addin (dll) so that you can leverage Word's keybindings or commandnames
(FileSave, etc.)
> I'm working on a Word add-in that will require a custom GUI. I'm doing all
> of the work in C++ (I wrote wrapper classes to make the appropriate COM calls
[quoted text clipped - 4 lines]
> someone might have some insight into how the userforms integrate so I could
> use a similar method for my GUI.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)