atl dll with and mfc modeless dialog 
Author Message
 atl dll with and mfc modeless dialog

when creating and atl dll with MFC support can you create modeless dialog
boxes that uses the standard windows tabbing and accelerators?

For example

Create an ATL project with mfc support.
Add a COM component to it.
Add a regular Dialog, and create a class for it
now Create() it from a method in the COM component

You'll also need a test app to create the COM server and call the method.

You'll notice that it mostly works, you can click the buttons, and things
act normal.  but, try tabbing between controls.  hit the esc key.  ? the
Enter key.  Why did these stop working?



Mon, 08 Sep 2003 08:29:04 GMT  
 atl dll with and mfc modeless dialog

Quote:

>when creating and atl dll with MFC support can you create modeless dialog
>boxes that uses the standard windows tabbing and accelerators?

>For example

>Create an ATL project with mfc support.
>Add a COM component to it.
>Add a regular Dialog, and create a class for it
>now Create() it from a method in the COM component

>You'll also need a test app to create the COM server and call the method.

>You'll notice that it mostly works, you can click the buttons, and things
>act normal.  but, try tabbing between controls.  hit the esc key.  ? the
>Enter key.  Why did these stop working?

Actually I just ran into the same problem this week, except with a pure ATL
control.  The answer for me was to read KB article Q216503.  But if you're
like me and you don't want to modify the main application message loop, take
a look at Q187988 as well (thanks Igor!).

-Anatoly

-------------------------------------------------------
DTLink (Software), LLC            http://www.dtlink.com
   Get your FREE download of Personal Stock Monitor!
            "Powerful Investment Software."
 Ziff-Davis Award 1998, Shareware Industry Award 1999
-------------------------------------------------------



Mon, 08 Sep 2003 13:27:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. modeless dialog in ATL DLL

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

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

4. CDialog: Service calling a MFC-linked DLL instanciating a modeless dialog box

5. modeless dialog in mfc dll

6. Modeless Dialogs with accelerators in an MFC DLL

7. HELP insert an ATL.dll object to a MFC dialog program

8. Show modeless form in VB ActiveX DLL from C++ MFC DLL

9. How to create Modeless dialog in ATL

10. Modeless dialogs in ATL controls

11. ATL Dialog Template - Modal/Modeless Tab Stop Behaviour

12. Composite control in MFC modeless dialog

 

 
Powered by phpBB® Forum Software