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 / Outlook / Programming Add-Ins / October 2004

Tip: Looking for answers? Try searching our database.

Customizing Inspector's caption

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vladimir Chtchetkine - 27 Oct 2004 21:20 GMT
Hi everyone!

How can I customize the caption of Inspector window? Do I have any
control over it at all? I know that this property is r/o but may be
there are some other places where I can make adjustmens that would
result in a desired caption? What I'm doing in my code is calling
CreateItemFromTemplate and then creating and displaying new Inspector
for that item. Any advice would be very welcome :-)

TIA,

Vladimir
Sue Mosher [MVP-Outlook] - 27 Oct 2004 22:43 GMT
No, it's always the item subject and possibly the form name.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi everyone!
>
[quoted text clipped - 8 lines]
>
> Vladimir
Vladimir Chtchetkine - 28 Oct 2004 15:35 GMT
Thank you, Sue! That's what I figured out too :-) The problem is that
it is not only "possible form name" but IT IS form name and I do not
want it to be that form name. I don't want to go directly to Window
stuff (as Matt suggested) 'cause it's sort of a hack and I don't like
doing it as long as there are some legitimate ways around.

Regards,

Vladimir

> No, it's always the item subject and possibly the form name.
Matt Fletcher - 28 Oct 2004 09:28 GMT
> Hi everyone!
>
[quoted text clipped - 8 lines]
>
> Vladimir

As OOM doesn't support this why not get the Inspector's window handle using
IOleWindow and set the caption using SetWindowText - the code below seems to
work.

Matt Fletcher

_InspectorPtr spInspector;
HWND hwndInspector;

// need to initialise spInspector

CComQIPtr<IOleWindow> spOleWindow = spInspector;

if (spOleWindow)
   spOleWindow->GetWindow(&hwndInspector);

if (hwndInspector)
   SetWindowText(hwndInspector, "Customised caption");
Vladimir Chtchetkine - 28 Oct 2004 15:38 GMT
Matt: Thanks a lot! If other ways fail I'll do as you suggested :-)

Regards,

Vladimir

> As OOM doesn't support this why not get the Inspector's window handle using
> IOleWindow and set the caption using SetWindowText - the code below seems to
[quoted text clipped - 14 lines]
> if (hwndInspector)
>     SetWindowText(hwndInspector, "Customised caption");
 
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.