How to get handle of PowerPoint window from taskbar?
-
I am using PowerPoint automation to display PowerPoint file from my project. But sometimes the PowerPoint file is displaying behind my main application. How can I get the handle of the PowerPoint window from my project?
-
I am using PowerPoint automation to display PowerPoint file from my project. But sometimes the PowerPoint file is displaying behind my main application. How can I get the handle of the PowerPoint window from my project?
You can keep your application behind the ppt by using
this->SetWindowPos(&this->wndBottom,,,,,)
Also to get your ppt window, you can use FindWindow("WindowName",NULL);
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
-
You can keep your application behind the ppt by using
this->SetWindowPos(&this->wndBottom,,,,,)
Also to get your ppt window, you can use FindWindow("WindowName",NULL);
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
_Application app; app.CreateDispatch( "PowerPoint.Application" ); ......... SlideShowSettings m_pptSlideShowSettings; ......... // Run the slide m_pptSlideShowSettings.Run(); How can I get the handle of the running slide window? What will be the "WindowName" name in the function FindWindow("WindowName",NULL);
-
_Application app; app.CreateDispatch( "PowerPoint.Application" ); ......... SlideShowSettings m_pptSlideShowSettings; ......... // Run the slide m_pptSlideShowSettings.Run(); How can I get the handle of the running slide window? What will be the "WindowName" name in the function FindWindow("WindowName",NULL);
Sorry for the typo that's the classname of the applicaiton. If you want to catch using the name displayed on the title bar, you should past it as the second argument. Open a notepad, minimize it. Then run the below code:
HWND h = FindWindow(NULL,"Notepad");
ShowWindow(h,SW_MAXIMIZE);He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus