Thanks,
Ajay
Tom
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176125657....@p77g2000hsh.googlegroups.com...
On his Friday post he said he didn't like that link. :)
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:3050FDE6-5544-434B...@microsoft.com...
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:%LsSh.2466$zC....@newssvr22.news.prodigy.net...
That was Friday. Easter is now gone. Link is now very useful.
---
Ajay
So I was just trying to be funny.
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:BDC80F9E-23C4-47C5...@microsoft.com...
"Ajay Kalra" <ajay...@yahoo.com> wrote in message
news:1176133687....@e65g2000hsc.googlegroups.com...
AliR.
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:cgtSh.2468$zC....@newssvr22.news.prodigy.net...
http://support.microsoft.com/kb/237554
To get started :o)
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:TFuSh.2039$Q23...@newssvr17.news.prodigy.net...
Please follow this link where slideshow has been shown inside a frame
control.
http://skp.mvps.org/vb/pptvbwnd.htm
But this thing is done in VB, I want to immitate it in MFC for a
dialog or a win32 window. I don't want to open PowerPoint in another
window, I want to embed activex control ( if it is there ?) inside a
dialog which is created by my application. My dialog should act as a
host window for slideshow.
I hope its pretty much clear to you guys.
Thanks,
Ajay
On Apr 9, 10:57 pm, "Tom Serface" <tom.nos...@camaswood.com> wrote:
> In that case maybe OP needs something like:
>
> http://support.microsoft.com/kb/237554
>
> To get started :o)
>
> Tom
>
> "AliR (VC++ MVP)" <A...@online.nospam> wrote in messagenews:TFuSh.2039$Q23...@newssvr17.news.prodigy.net...
>
>
>
> > You know what just popped into my head. Maybe he wants to extract each
> > frame out of the file, and run the presentation himself.
>
> > AliR.
>
> > "AliR (VC++ MVP)" <A...@online.nospam> wrote in message
> >news:cgtSh.2468$zC....@newssvr22.news.prodigy.net...
> >> LOL
>
> >> "AjayKalra" <ajayka...@yahoo.com> wrote in message
> >>news:1176133687....@e65g2000hsc.googlegroups.com...
> >>>> On his Friday post he said he didn't like that link. :)
>
> >>> That was Friday. Easter is now gone. Link is now very useful.
>
> >>> ---
> >>>Ajay- Hide quoted text -
>
> - Show quoted text -
http://support.microsoft.com/kb/261997
Tom
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176181347.7...@b75g2000hsg.googlegroups.com...
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:CF5D72B5-D021-4FB6...@microsoft.com...
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:AuNSh.2129$Q23....@newssvr17.news.prodigy.net...
Thanks,
Ajay
On Apr 10, 7:47 pm, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
> Sounds good to me.
>
> AliR.
>
> "Tom Serface" <tom.nos...@camaswood.com> wrote in message
>
> news:CF5D72B5-D021-4FB6...@microsoft.com...
>
>
>
> > OK, I've never tried to do this, but perhaps this will work for you (I'm
> > hoping Ali didn't already post this :o) It looks to me from the VB code
> > like it's just changing the PowerPoint's parent window to be that of the
> > form. This article talks about how to get that window handle.
>
> >http://support.microsoft.com/kb/261997
>
> > Tom
>
> > "Roland" <ajay.sonaw...@gmail.com> wrote in message
> >>> - Show quoted text -- Hide quoted text -
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:AC36284F-DE39-42DF...@microsoft.com...
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176291665.4...@n76g2000hsh.googlegroups.com...
http://www.learnstar.com/AliR/PowerPointSample.zip
The only problem right now is that the presentation window flashes on the
screen for a split second as a full screen window. I am working on that
part, but this should be a good start.
Run the sample exe and press the "Push me" button and you will see a two
page presentation in the middle of the dialog.
The example was written using VS 2003.
AliR.
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:MLaTh.7862$u03....@newssvr21.news.prodigy.net...
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:gsbTh.4867$5e2....@newssvr11.news.prodigy.net...
I have been wondering if I can have it start offscreen first.
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:9179735C-9D63-4AB3...@microsoft.com...
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:QwcTh.4887$5e2...@newssvr11.news.prodigy.net...
I was only missing SetWindowPos function call. Seems my all problems
are solved. I also struggling with how to hide presentation form ,
still no success.
Thanks,
Ajay
On Apr 12, 2:35 am, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
> Thanks Tom. I just can't figure out how to keep the presentation from
> showing fullscreen for a second. If you run the sample and press the
> button, you will see it flash for a second.
>
> I have been wondering if I can have it start offscreen first.
>
> AliR.
>
> "Tom Serface" <tom.nos...@camaswood.com> wrote in message
>
> news:9179735C-9D63-4AB3...@microsoft.com...
>
>
>
> > Good stuff Ali.
>
> > Tom
>
> > "AliR (VC++ MVP)" <A...@online.nospam> wrote in message
> >news:gsbTh.4867$5e2....@newssvr11.news.prodigy.net...
> >> Here is a sample.
>
> >>http://www.learnstar.com/AliR/PowerPointSample.zip
>
> >> The only problem right now is that the presentation window flashes on the
> >> screen for a split second as a full screen window. I am working on that
> >> part, but this should be a good start.
> >> Run the sample exe and press the "Push me" button and you will see a two
> >> page presentation in the middle of the dialog.
> >> The example was written using VS 2003.
>
> >> AliR.
>
> >> "AliR (VC++ MVP)" <A...@online.nospam> wrote in message
> >>news:MLaTh.7862$u03....@newssvr21.news.prodigy.net...
> >>>I have been trying to put together an example for you, but the problem
> >>>that I have run into so far is the fact that the persentation is
> >>>fullscreen, and I can't figure out a way to change that setting.
>
> >>> AliR.
>
Waiting for your reply.
Thanks,
Ajay
Anyway, seems like you will have to do it the same way as the persentation
window, using FindWindow.
I have PowerPoint 2003 on my system, I am sure the class name will be
different for other versions:
CWnd *pWnd = FindWindow("PP11FrameClass",NULL);
if (pWnd)
{
pWnd->ShowWindow(SW_HIDE);
}
According to this link http://support.microsoft.com/kb/261997 the old one
is called PP9FrameClass. I guess you could put that in a loop.
All of this would make me a little nervous, what if the user has power point
open?
Here is another approach. You can set the title to a GUID that you generate
using app.put_Caption(....);
Then use EnumWindows to find the exact window, FindWindow wouldn't be
reliable because the title will probably be
"GUID - Persentation name".
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176388909.9...@l77g2000hsb.googlegroups.com...
I basically copied and pasted the code out of the links that Tom and I
posted a few days ago and changed 2 lines total to get it to work.
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176386737.2...@p77g2000hsh.googlegroups.com...
AliR.
"Tom Serface" <tom.n...@camaswood.com> wrote in message
news:eIJzveIf...@TK2MSFTNGP06.phx.gbl...
Tom
"AliR (VC++ MVP)" <Al...@online.nospam> wrote in message
news:z4sTh.16275$Um6....@newssvr12.news.prodigy.net...
I don't know ifany of this help move the plot along.
Best wishes
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176388909.9...@l77g2000hsb.googlegroups.com...
Thanks,
Ajay
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176728740.8...@p77g2000hsh.googlegroups.com...
sss.put_AdvanceMode(1); // Use manual advance.
I changed the ssw variable to be a member of my class
CSlideShowWindow *m_ssw;
Then in the method where I start the presentation I used that variable to
start the presentation
sss.put_AdvanceMode(1);
m_ssw = new CSlideShowWindow(sss.Run);
Then in a button handler I put the following code.
void CPowerPointSampleDlg::OnBnClickedButton2()
{
CSlideShowView View(m_ssw->get_View());
View.GotoSlide(View.get_CurrentShowPosition()+1,0);
}
Don't forget to delete m_ssw when you are done with it.
You will also have to check and make sure there is a slide to advance to
before calling GotoSlide.
AliR.
"Roland" <ajay.s...@gmail.com> wrote in message
news:1176728740.8...@p77g2000hsh.googlegroups.com...
Could you please tell me how to detect "End of slide show" , I have
used Event sinking mechanism to get events of slideshow such as
SlideShowEnd
SlideShowNextSlide etc.
SlideShowEnd fires after you click on "End of slide show" black slide.
I want to get the event before next slide is "End of slide show"
I used SlideShowNextSlide to capture this event but it doesn't come up
for last slide.
Any suggestiions ?
Thanks,
Ajay
On Apr 16, 8:48 pm, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
> I fogot to mention that you will have to change the advance mode from 2 to 1
>
> sss.put_AdvanceMode(1); // Use manual advance.
>
> I changed the ssw variable to be a member of my class
>
> CSlideShowWindow *m_ssw;
>
> Then in the method where I start the presentation I used that variable to
> start the presentation
>
> sss.put_AdvanceMode(1);
>
> m_ssw = new CSlideShowWindow(sss.Run);
>
> Then in a button handler I put the following code.
>
> void CPowerPointSampleDlg::OnBnClickedButton2()
>
> {
>
> CSlideShowView View(m_ssw->get_View());
>
> View.GotoSlide(View.get_CurrentShowPosition()+1,0);
>
> }
>
> Don't forget to delete m_ssw when you are done with it.
> You will also have to check and make sure there is a slide to advance to
> before calling GotoSlide.
>
> AliR.
>
> "Roland" <ajay.sonaw...@gmail.com> wrote in message
>
> news:1176728740.8...@p77g2000hsh.googlegroups.com...
>
>
>
> > Ali,
> > Do you know how to advance slide manually ? Means my application will
> > have a button ( Next button) to advance slide maually.
>
> > Thanks,