Powerpoint Automation

Q

quicklearner

Hi, I am into Powerpoint Automation.through my coding I am showing the
preview if some one clicks on the Preview button then it has to show
Preview.But while slides preview runs if I click outside tht window tht
windows goes at the back,Wht I want is tht when my preview is running if some
one clicks any where or on the other window nothing should happens .The
preview window should remain in the front.I dont have any idea how to do it
If any one has got ay idea Plz help me in doing this.
Right now I am Doing my coding in Visual Basic 6.0 & using PowerPoint 2002.
Thanx In advance.
 
M

Mike M.

I don't think you can prevent the user from clicking on another application
and giving it the focus (which makes PowerPoint stop). In my application
that I automate PowerPoint from I check the state of the presentation every
few seconds and if it is paused I send a focus message to the slide show
window.

// See if I can find out if the presentation is paused.
int state = pres->SlideShowWindow->GetView()->GetState();
if(state == PowerPoint::ppSlideShowPaused)
// Send focus message
LRESULT l_ret = ::postMessage(SlideShowHwnd, WM_SETFOCUS, NULL, NULL);

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top