Dear all
How to force window to invalidate itself such that it jumps to WM_PAINT?
I have been trying to invalidate windows such that a different button is displayed depending which window I find myself in.
For example, I have a top window and a bottom window. Inside the top window there are child windows. If I select TopChild1 then different buttons should appear at the bottom window. I managed to get that to work only once. That is thanks to WM_GET_ID with which I communicate from the TopChild1 to Bottom window that it needs to invalidate itself and paint Buttons if the notification comes from TopChild1. However if I reopen TopChild1 and want to go through the same process again, nothing happens, i.e. WM_PAINT doesn't get triggered anymore.
How best to InvalidateWindows such that WM_PAINT gets always triggered?
Thanks
How to force window to invalidate itself such that it jumps to WM_PAINT?
I have been trying to invalidate windows such that a different button is displayed depending which window I find myself in.
For example, I have a top window and a bottom window. Inside the top window there are child windows. If I select TopChild1 then different buttons should appear at the bottom window. I managed to get that to work only once. That is thanks to WM_GET_ID with which I communicate from the TopChild1 to Bottom window that it needs to invalidate itself and paint Buttons if the notification comes from TopChild1. However if I reopen TopChild1 and want to go through the same process again, nothing happens, i.e. WM_PAINT doesn't get triggered anymore.
How best to InvalidateWindows such that WM_PAINT gets always triggered?
Thanks
The post was edited 1 time, last by mjanas10 ().