Re: Problems with CDialog
From: Fran (Fran_at_discussions.microsoft.com)
Date: 12/23/04
- Next message: Mihajlo Cvetanovic: "Re: tab order (VC6)"
- Previous message: sris: "Re: Microsoft view & support in VC++"
- In reply to: Jeff Partch [MVP]: "Re: Problems with CDialog"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 03:21:03 -0800
Hi!
This was the way i do that the first time, and it works, the problem was
that i
cannot seen the dialog, i had to press alt+tab to see the dialog, i think
the problem is that my application have independent windows. When i try to do
it in the way i have told you everything works, i can see the dialog, the
problem is i cant call doModal() because i get a assert error.
Any idea to resolve my problem?
Thank you very much.
"Jeff Partch [MVP]" wrote:
> "Fran" <Fran@discussions.microsoft.com> wrote in message
> news:4DFE85A2-89F1-4082-8C97-CFAC73D8C98F@microsoft.com...
> > Hello!
> >
> > I have an application that uses 2 monitors. In one monitor i show some
> > videos and in the other monitor i show the user interface. When I try to
> open
> > the dialog this cannot be seen and i have to press alt+tab keys so the
> > windows appears.
> > If i create de dialog in this way:
> >
> > MyDialog md;
> >
> > md.Create(IID_MYDIALOG,AfxGetMainWnd());
> > md.Show(1);
> >
> > The dialog work prefectly and it can be shown without any problem, but if
> i
> > try to
> > show it as a modal dialog i hava an assert exception.
> >
> > md.Create(IID_MYDIALOG,AfxGetMainWnd());
> > md.DoModal();
> >
> > Is there any way to resolve it?
>
> Try calling DoModal without first calling Create.
> --
> Jeff Partch [VC++ MVP]
>
>
>
- Next message: Mihajlo Cvetanovic: "Re: tab order (VC6)"
- Previous message: sris: "Re: Microsoft view & support in VC++"
- In reply to: Jeff Partch [MVP]: "Re: Problems with CDialog"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|