Three questions that should be simple, though I don't know the proper way to do it:
1) Given an hwnd of a window, how can I get the titlebar caption?
2) Given an hwnd of a button, how can I get the button's caption?
3) Given an hwnd of a control, how can I tell what type of control it is?
EDIT: Nevermind, I think I figured everything out thanks to this MSDN article.
