PC Review


Reply
Thread Tools Rate Thread

How can I embed PowerPoint in my window as the child window?

 
 
=?Utf-8?B?SG93IGNhbiBJIGVtYmVkIFBvd2VyUG9pbnQgaW4g
Guest
Posts: n/a
 
      17th Sep 2005
In my Visual C++ program, how can I embed PowerPoint window in my
Window(HWND) as child window.
 
Reply With Quote
 
 
 
 
Rob Holmes
Guest
Posts: n/a
 
      19th Sep 2005
Hi,

I have done this in VB - you can start the presentation using a
SlideShowPresentation object of the Powerpoint object.

Hope this helps,

Rob.


"How can I embed PowerPoint in my window" <How can I embed PowerPoint in my
window @discussions.microsoft.com> wrote in message
news:A80F469C-0B36-4131-AE06-(E-Mail Removed)...
> In my Visual C++ program, how can I embed PowerPoint window in my
> Window(HWND) as child window.



 
Reply With Quote
 
Mike M.
Guest
Posts: n/a
 
      19th Sep 2005
Adapt this VB example to C++ using the setparent with your window handle. I
have done it and it works fine.
http://skp.mvps.org/vb/pptvbwnd.htm

// Find the handle to the slide show window using the "magic" class name.
SlideShowHwnd = ::FindWindow("screenClass", NULL);
if( SlideShowHwnd && containerHwnd )
{ // Both window handles were created/found so set the parent.
HWND ret;

// This contains the slide show within the presentation window we created
ret = SetParent( SlideShowHwnd, containerHwnd);
// Move the PPT window to match the size and position of the presentation
window
MoveWindow(SlideShowHwnd, 0, 0, presWindowWidth, presWindowHeight, TRUE);
}


"How can I embed PowerPoint in my window" <How can I embed PowerPoint in my
window @discussions.microsoft.com> wrote in message
news:A80F469C-0B36-4131-AE06-(E-Mail Removed)...
> In my Visual C++ program, how can I embed PowerPoint window in my
> Window(HWND) as child window.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed Powerpoint window inside window / dialog Roland Microsoft Powerpoint 3 10th Apr 2007 03:34 PM
Solution: Raising an Event Handler Postback on Parent Window From Popup Child Window Dialog Box Earl Teigrob Microsoft ASP .NET 1 16th Jun 2004 05:19 PM
Smart Client - Want to close the stub window when child window is closed Stone Microsoft Dot NET Framework Forms 0 28th Apr 2004 09:12 PM
Parent window not closing HTTP Connections made by child window Sameer Fegade Windows XP Internet Explorer 1 25th Feb 2004 05:51 PM
Automating PowerPoint so slideshow shows up in child window Eric \(comcast\) Microsoft Powerpoint 1 5th Feb 2004 01:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:08 PM.