How to view the Class name and Text of any window
Uses a Timer to retrieve the mouse position and the window handle beneath the
mouse. Displays the window handle, class name, and text (if any).
Uses the following API functions and Messages:
- GetCursorPos
- GetClassName
- SendMessage
- WM_GETTEXT
- WM_GETTEXTLENGTH
- WindowFromPoint
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.