Obtaining HWND from CString
-
Hi I have a CString containing the hexidecimal handle to a window. For example 00010AC2. I want to obtain an actual HWND from it to pass to a function. Transmit(HWND hWindow, ...other variales ). So please how do I convert this hexidecimal CString into a HWND type? Many thanks for your time. :)
-
Hi I have a CString containing the hexidecimal handle to a window. For example 00010AC2. I want to obtain an actual HWND from it to pass to a function. Transmit(HWND hWindow, ...other variales ). So please how do I convert this hexidecimal CString into a HWND type? Many thanks for your time. :)
CAnt you use of Findowindow for get handle?
-
Hi I have a CString containing the hexidecimal handle to a window. For example 00010AC2. I want to obtain an actual HWND from it to pass to a function. Transmit(HWND hWindow, ...other variales ). So please how do I convert this hexidecimal CString into a HWND type? Many thanks for your time. :)
CString szMyString = _T("00010AC2");
TCHAR *szStop;
HWND hWnd = (HWND) _tcstol(szMyString, &szStop,16);:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
CString szMyString = _T("00010AC2");
TCHAR *szStop;
HWND hWnd = (HWND) _tcstol(szMyString, &szStop,16);:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
You're welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]