Trapping Messages or Exanging Data on a Modeless Dialog Box using C++.

Trapping Messages or Exanging Data on a Modeless Dialog Box using C++.

Post by Marc St-Jacque » Tue, 05 Aug 1997 04:00:00



I have a Dialog based program with a Modeless Dialog Box over it.  How can
my base detect if the Modeless box pressed a button, or changfes a value,
etc.

I've haven't been able to find one decent example with Modeless dialog
boxes.  All exemples in VC++ 4.0 are all created for C or have incomplete
source for C++ (ie. missing ressource, etc.).  FAQ's do not answer this
question.

Thanks in advance.

--
------------------------------------
Marc St-Jacques

http://mistral.ere.umontreal.ca/~stjacque

 
 
 

Trapping Messages or Exanging Data on a Modeless Dialog Box using C++.

Post by Norman Bulle » Tue, 05 Aug 1997 04:00:00



> I have a Dialog based program with a Modeless Dialog Box over it.  How can
> my base detect if the Modeless box pressed a button, or changfes a value,
> etc.

> I've haven't been able to find one decent example with Modeless dialog
> boxes.  All exemples in VC++ 4.0 are all created for C or have incomplete
> source for C++ (ie. missing ressource, etc.).  FAQ's do not answer this
> question.

> Thanks in advance.

Don't your two dialogs run in the same program? They can share
information using global variables, or (if you are using MFC or OWL)
call member functions related to the other. Or they can even send your
own user-defined messages to each other.

Norm

 
 
 

1. Calling a modeless dialog box from a modal dialog box

Hi,

Can a modal dialog box be the parent of a modeless dialog box?

I have a dialog box with 7 radio buttons.  Depending on which
button is selected, a different modeless dialog box is displayed.
The user will select a control on the modeless dialog box and then
both the modal and modeless dialog boxes should go away.

I am using VC++ and MFC.

Any help would be appreciated.

Cathy

2. OS/2 Security Enabling Services

3. EXTREMELY URGENT!: Trapping All Keystroke Messages in a Modal Dialog Box

4. resource busy message

5. email trace

6. Trapping Dialog Box Messages

7. 1200 keyboard interface..Ok so which one does work?

8. User define dialog box, how do I trap WM_CHAR messages?

9. Using accelerators when a modeless dialog box is the main window

10. How do you handle Accelerators in modeless dialog boxes using SDK?

11. How to make a modeless dialog box using MFC?

12. Borland C++ 3.1 BWCC Modeless, Iconifiable Dialog Box