A form in the background (or has been minimized) according to the form of handle, in accordance with the controls on the form to obtain the coordinates of the handle?
I have another question:
How to in the background of the form (or form) are minimized according to its handle to capture?
At the front desk of the form I will according to its position in the screen to get the control handle, very want to learn the background handle to get its way!
Hope to have the teacher instruction code, or the API function for, thank you very much!!!!!
PS: I know, according to the form structure of handle to get his son is feasible, but that feel very troublesome to analyze window is complicated, so I think directly according to the control on the form, the coordinates of the
Can simple a lot ^ ^
CodePudding user response:
Take applies only to the foreground window by location, background traversal yourself,Background/minimize didn't show no screenshots,
CodePudding user response:
I just learned to use EnumChildWindows to enumeration of all child window handle to a window...
According to the control on the form to obtain the coordinates of the handle?? Why this happen?
The building Lord teach me bai...
CodePudding user response:
GetWindowRect take child window coordinatesMapWindowPoints converts parent form coordinates
PtInRect to determine whether a specified point on the child window