5

Is there a way to retrieve window handle from a CDialog derived class (like CWnd::m_hWnd member) ?

Thanks

ivymike
  • 1,511
  • 2
  • 20
  • 27

1 Answers1

9
HWND hWnd = GetSafeHwnd();

Should do the trick, but CDialog is itself derived from CWnd so m_hWnd would be accessable inside CDialog too

John Sibly
  • 22,782
  • 7
  • 63
  • 80