hello

[ ATL DLL project using VC6 ]

I need to use a CWindowImpl base class and then
create a window based on a dialog resource in a dll.

first of all, is it ok to create WS_POPUP windows
inside a ATL DLL ?

and last , is there a way to create a window using
a dialog resource using CWindowImpl :: Create ?

thanks a lot

Re: ATL > CWindowImpl by Igor

Igor
Sat May 14 22:07:59 CDT 2005

"andré m.a" <a.m.a@videotron.ca> wrote in message
news:X%9ge.1884$Mm1.14469@weber.videotron.net
> [ ATL DLL project using VC6 ]

You might want to ask your ATL questions in microsoft.public.vc.atl

> I need to use a CWindowImpl base class and then
> create a window based on a dialog resource in a dll.
>
> first of all, is it ok to create WS_POPUP windows
> inside a ATL DLL ?

Nothing inherently wrong with that.

> and last , is there a way to create a window using
> a dialog resource using CWindowImpl :: Create ?

No. But you can use CDialogImpl instead.

There is a problem with modeless dialog boxes created by a DLL: the main
executable does not know that your DLL has created a modeless dialog,
and thus it does not call IsDialogMessage from its message loop. Which
means that tabbing and keyboard shortcuts won't work in your dialog.
There are a number of ways around this difficulty - make sure you've
planned to implement one of them.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925