jschmidt
April 29th, 1999, 03:26 AM
Hello,
I have a SDI application with some modeless dialogs to allow the user to edit the members of the document. As some of these dialogs also make use of document members which are edited in other dialogs, they have to update their calculations whenever an involved document member is changed through the appropriate other dialog. I therefore use the PostMessage function to send an WM_APP based message with a dialog identifying constant as wParam of the message whenever a document member is edited in a dialog. In every dialogs PreTranslateMessage function I try to catch this message and have the dialog update its contents whenever the originator of the message is the one in which related members are edited. Unfortunately the message reaches my MainFrame window, but doesn't reach the other dialogs which are all childs of the MainFrame. Even forwarding the Message with SendMessageToDescendants didn't do the job...
So how to send a message in such a way that all my dialogs in the application receive it, no matter whether they are child of the same parent or whatever.
Thanks a lot in advance
Jens
I have a SDI application with some modeless dialogs to allow the user to edit the members of the document. As some of these dialogs also make use of document members which are edited in other dialogs, they have to update their calculations whenever an involved document member is changed through the appropriate other dialog. I therefore use the PostMessage function to send an WM_APP based message with a dialog identifying constant as wParam of the message whenever a document member is edited in a dialog. In every dialogs PreTranslateMessage function I try to catch this message and have the dialog update its contents whenever the originator of the message is the one in which related members are edited. Unfortunately the message reaches my MainFrame window, but doesn't reach the other dialogs which are all childs of the MainFrame. Even forwarding the Message with SendMessageToDescendants didn't do the job...
So how to send a message in such a way that all my dialogs in the application receive it, no matter whether they are child of the same parent or whatever.
Thanks a lot in advance
Jens