For Programmers: Free Programming Magazines  


Home > Archive > VC Language > January 2006 > modal..









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author modal..
kiran.inbng@gmail.com

2006-01-25, 4:17 am

Hi All,

How do i make a Activex Control behave as modal dialog in a mfc based
MDI app ? Any help on this will be much appreciated.

Thanks,
kiran

Jochen Kalmbach [MVP]

2006-01-25, 4:17 am

Hi kiran!

> How do i make a Activex Control behave as modal dialog in a mfc based
> MDI app ? Any help on this will be much appreciated.


Put it in a CDialog and call "DoModal"...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
kiran.inbng@gmail.com

2006-01-25, 4:17 am

Hi Jochen,

Thanks for the reply.The activex control that we are using is very
simialar to a sdi app.It has a menu,minimize and restore buttons etc.So
will the above solution work.[Iam a newbie to activex].

Thanks,
kiran

Scott McPhillips [MVP]

2006-01-25, 7:23 pm

kiran.inbng@gmail.com wrote:
> Hi Jochen,
>
> Thanks for the reply.The activex control that we are using is very
> simialar to a sdi app.It has a menu,minimize and restore buttons etc.So
> will the above solution work.[Iam a newbie to activex].
>
> Thanks,
> kiran
>


Before you display the ActiveX control call your main window's
EnableWindow(FALSE). After closing the ActiveX control call your main
window's EnableWindow(TRUE). This should simulate the effect of a
modal control.

--
Scott McPhillips [VC++ MVP]

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com