Click here to Skip to main content
13,006,319 members (59,171 online)
Rate this:
Please Sign up or sign in to vote.
See more:
My first project was working fine until I tried making it more visually appealing.

On initilization, my main dialog creates an output dialog with three sections of read-only fields. The main dialog has 3 buttons, each producing a dialog corresponding to a section of the output dialog. It is from these user entry dialogs where the user is allowed to update data/common. Upon exiting I'm doing an Invalidate( TRUE ) on the output dialog in the OnPaint section of maindlg to force an update of its fields. Everything is fine to this point.

Now I set the x/y coordinates on the 3 user entry dialogs to pop up just beneath the corresponding output section, rather than on top of maindlg. Now, I see, the maindlg has no need to "paint" when I exit.

So, how can I force an update of my outdlg from each of my user entry dialogs, all being childs of maindlg.
Posted 22-Apr-11 5:40am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The typical approach used is to PostMessage a user-defined message from dialog-1 to dialog-2. Dialog-2 handles this user-defined messages and invalidates itself.
Albert Holguin 22-Apr-11 20:00pm
...or SendMessage()... my 5
Nishant Sivakumar 23-Apr-11 9:17am
Thank you.
sbwilliams59 3-Jun-11 10:29am
Hey Albert...I have another post on this subject if you wouldn't mind takig a look. A link to HOW to Post or Send messages would be greatly appreciated.



This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170628.1 | Last Updated 22 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100