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.
> 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");