ATL Dialog Template - Modal/Modeless Tab Stop Behaviour 
Author Message
 ATL Dialog Template - Modal/Modeless Tab Stop Behaviour

I created a simple dialog class using the ATL object wizard.  When I open it
Quote:
> 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



Mon, 11 Aug 2003 20:45:40 GMT  
 ATL Dialog Template - Modal/Modeless Tab Stop Behaviour
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


Quote:
> 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



Mon, 11 Aug 2003 23:31:20 GMT  
 ATL Dialog Template - Modal/Modeless Tab Stop Behaviour
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


Quote:
> 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



Mon, 11 Aug 2003 23:46:08 GMT  
 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



Tue, 12 Aug 2003 01:14:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Strange - tab stop navigation disabled on modal dialog

2. Strange - tab stop navigation disabled on modal dialog

3. Problem with TAB control and a MODELESS dialog in a ATL COM DLL

4. Problem with TAB control and a MODELESS dialog in a ATL COM DLL

5. Q: tabbing not possible in modeless propertysheet / modeless dialog

6. Modeless dialog called from Modal dialog woes.

7. Modeless Dialog box in a Modal Dialog Application...

8. Modeless dialog box together with modal dialog box

9. Modeless Dialog from Modal Dialog question ?

10. Post message from modal dialog to modeless dialog box....urgent!!!!!!!!!!!!!!1

11. Modeless dialog on top of Modal dialog

12. Modeless Child Dialog of Modal Dialog

 

 
Powered by phpBB® Forum Software