##CWND TO HWND
CWnd* pp = 0;
HWND hwnd = 0;
pp = GetDlgItem(IDC_BUTTON1);
hwnd = pp->m_hWnd;
05-22
04-14
1143
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
##CWND TO HWND
CWnd* pp = 0;
HWND hwnd = 0;
pp = GetDlgItem(IDC_BUTTON1);
hwnd = pp->m_hWnd;