I need the code that will get a handle to a window or dialog box. Please send me a code snippet and don't just refer me to the help for some function because my help is not working correctly right now.
Thanks
Devin
Printable View
I need the code that will get a handle to a window or dialog box. Please send me a code snippet and don't just refer me to the help for some function because my help is not working correctly right now.
Thanks
Devin
GetSafeHwnd or m_hWnd
MFC controls and dialog boxes are CWnd types which contain the public member variable m_hWnd of type HWND. You can also use the member function GetSafeHwnd() to return the m_hWnd.