chrisochap
July 17th, 2006, 04:46 PM
Does anyone know how to verify if a AfxWnd42 control is visible in a window or not? Right now, I'm doing a BitBlt of a portion of the parent window to see if the button is active & I know there's got to be better way to do this. I can enumerate all the window controls just fine, get/set text for the control, etc. I just need/want to find out how to see if the button is actually active.
golanshahar
July 17th, 2006, 04:57 PM
If you have the Handle to the window you can use ::IsWindowVisible() (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/html/wce50lrfiswindowvisible.asp) to check it. ;)
Cheers
chrisochap
July 17th, 2006, 05:46 PM
Lol... I had just wrote some code to use those API calls yesterday too, but for the parent window, didn't realize it works the same with controls located within the window. Thanks much.