Notify to all dialogs in my program
-
hi guys I have an app that has some dialogs opened, is kind of storage system. When i update a price in a dialog i want the other ones to be notified of the change, is there a way to do this? I know that using messages is an option but how to signal all dialogs. Thanks :rolleyes:
-
hi guys I have an app that has some dialogs opened, is kind of storage system. When i update a price in a dialog i want the other ones to be notified of the change, is there a way to do this? I know that using messages is an option but how to signal all dialogs. Thanks :rolleyes:
-
hi guys I have an app that has some dialogs opened, is kind of storage system. When i update a price in a dialog i want the other ones to be notified of the change, is there a way to do this? I know that using messages is an option but how to signal all dialogs. Thanks :rolleyes:
Are the dialogs modal or modeless. Do they have a common parent?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
hi guys I have an app that has some dialogs opened, is kind of storage system. When i update a price in a dialog i want the other ones to be notified of the change, is there a way to do this? I know that using messages is an option but how to signal all dialogs. Thanks :rolleyes:
The application and all its dialogs can use RegisterWindowMessage[^] with the same string to get the same value. Now use SendMessage[^] and specify the
hWnd
parameter asHWND_BROADCAST
and theMsg
parameter as the value returned byRegisterWindowMessage
.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Are the dialogs modal or modeless. Do they have a common parent?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
The application and all its dialogs can use RegisterWindowMessage[^] with the same string to get the same value. Now use SendMessage[^] and specify the
hWnd
parameter asHWND_BROADCAST
and theMsg
parameter as the value returned byRegisterWindowMessage
.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Broadcast is only sent to top level windows and not child windows.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)