-
getting HWND of controls
I can get the HWND of a different window, but now I need to get the HWND of a control. The control would be like a textbox or button.
It is for a little project I am working.
I tried getting the HWND of a child window but that didn't return the HWND of the textbox, I don't belive.
-
Perhaps, in a function like your WindowProc, you could throw a:
Code:
HWND child = ::GetDlgItem(hwnd, ID_SOMECONTROL);
Where ID_SOMECONTROL is the identifier in the resource or passed as the HMENU parameter of ::CreateWindow[Ex](..)