Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

adding custom GUI to Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AlanC - 17 Jan 2006 22:57 GMT
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.
Cindy M  -WordMVP- - 19 Jan 2006 17:38 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.