Dear all
I wondered if you could help me solve this puzzle. Scenario is as follows: there are two unrelated windows (i.e. both windows are parents to different children), defined in two different source files.
For example, I have a main window and a footer window, both visible. Then how do I communicate to the main window that the footer window wants to, for example, display something else on the main window?
I know I can use WM_SendMessageNoPara(hWinMain, WM_FOOTER_BUTTON_BACK); in the footer callback. However that relies on having the main window handle (hWinMain) declared as global. Is there a way to communicate between the two parents without using globals? What's the best way?
Thanks
I wondered if you could help me solve this puzzle. Scenario is as follows: there are two unrelated windows (i.e. both windows are parents to different children), defined in two different source files.
For example, I have a main window and a footer window, both visible. Then how do I communicate to the main window that the footer window wants to, for example, display something else on the main window?
I know I can use WM_SendMessageNoPara(hWinMain, WM_FOOTER_BUTTON_BACK); in the footer callback. However that relies on having the main window handle (hWinMain) declared as global. Is there a way to communicate between the two parents without using globals? What's the best way?
Thanks
The post was edited 1 time, last by mjanas10 ().