how to get window handle in mfc?
This is m_hWnd member of your CWnd.
CWnd :: GetSafeHwnd is a bit “safer” because it can be used with a NULL pointer CWnd http://msdn.microsoft.com/en-US/library/d64ehwhz%28v=vs.80%29.aspx
CWnd::GetSafeHwnd(), HWND CWnd; CWnd::FromHandle HWND CWnd.
CWnd::GetSafeHwnd()
HWND
CWnd
CWnd::FromHandle
: -, - m_hWnd CWnd, .
m_hWnd
, API FindWindow windows. :
FindWindow
HANDLE hWind = FindWindow( your_win_class_name, your_win_name );
"getsafeHwnd", c,
HANDLE hwnd = FindWindowW (__in_opt LPCWSTR lpClassName, __ in_opt LPCWSTR lpWindowName);
the first is the class name "Button" or "Edit control"; the second is the name of the window. Handler window (m_hWnd).
Gain access to m_hWnda member of your CWndexample:
HWND Handle = this->m_hWnd
Source: https://habr.com/ru/post/1754800/More articles:Deploy the ASP.NET application on the same website as Sharepoint - asp.netHow to create a custom component using JSF 1.2? - jsfCassandra over SQL as a cache? - cassandraпрослушивать события изменения harware из ядра linux или udev - cVerify that each page does not exceed a valid SQL score in Symfony? - symfony1Request for related products - phpИзменение коллекции из события CollectionChanged - eventsPassing a variable to the after_initialize method - ruby | fooobar.comShould I use 301 to redirect in place? - redirectHow to create an object design in a specific place in memory? - c ++All Articles