MFC get handle

  1. CWnd *pWnd = GetDlgItem(ID_***);  // Get the pointer of the control  
  2. HWND hwnd = pWnd->GetSafeHwnd();  // Get the handle of the control  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325066197&siteId=291194637