
ATL Dialog Template - Modal/Modeless Tab Stop Behaviour
See KB Article Q187988 "PRB: ActiveX Control Is the Parent Window of
Modeless Dialog" at
http://support.microsoft.com/support/kb/articles/Q187/9/88.ASP
--
With best wishes,
Igor Tandetnik
Quote:
> Thank you. I have read the same in MSDN online. My problem now is that
my
> client is written in VB and when I create an instance of the modeless
dialog
> box, I pass NULL as the handle to the parent window in the Create member
> function. How do I get hold of the main message loop?
> Thank you in advance for your assistance.
> Kind regards,
> Vladislav Dubov
> > Not quite an ATL question
> > Modal dialogs spin their own message loops and perform preprocessing
> > necessary for TAB to work there. Modeless dialogs rely on your main
> message
> > loop to call IsDialogMessage for them.
> > --
> > With best wishes,
> > Igor Tandetnik
> > > I created a simple dialog class using the ATL object wizard. When I
> open
> > it
> > > > as a modal dialog box in my program by using the DoModal() member
> > > function,
> > > > I can move between controls by pressing the TAB key. When I open it
> as
> > a
> > > > modeless window, I can't. I cannot capture any of the WM_KEY...
> > messages
> > > > either.
> > > > Does anyone know why this happens? Hope someone cam help.
> > > > Kind regards,
> > > > Vladislav Dubov