I'm working on a screen record application. I want to capture running applications or computer desktop. when capturing other application, I have to input the window size. But it will crush when the window resized. I have already make a same program on MacOS. In MacOS I can get a notification when the application resized. like this ↓
m_axApplication = AXUIElementCreateApplication(pid);
AXObserverAddNotification(m_axObserver, m_axApplication, kAXWindowResizedNotification, nil);
Does Windows have the same API in MFC? Up to now, I will check the window size everytime I get the image of the specified application. It cost too much time and CPU usage. I only want to be noticed when the window resized. How to make it? Thank you.