>Hey, I would like to show the full path of the document in the ppt window's
>title bar. The macro method for Word and Excel does not work:
[quoted text clipped - 3 lines]
>The caption field is read-only and cannot be set. Does anyone have an idea
>of how to accomplish this task?
Please see the follow codes, I hope they will help u.
CComQIPtr<MSPowerpoint::_Presentation> spActivePresentation;
//...
//...Create Active Presentation Object
//...
CString cstrFullName = spActivePresentation->FullName().GetBSTR();
CComQIPtr<MSPowerpoint::DocumentWindows> spWins;
spWins = spActivePresentation->GetWindows();
long count = spDocWins->Count;
for(int i=1; i<=count ; i++)
{
CComQIPtr<MSPowerpoint::DocumentWindow> spEnumWin;
spWindow = spDocWins->Item(i);
//...
//...Do some checks
//...
HWND hWnd = (HWND)spWindow->GetHWND();
::SetWindowText(hWnd,cstrFullName);
}

Signature
侯伟鹏