parameter type “int” incompatible parameter type “

2019-09-12 16:30发布

问题:

I added a check box with ID "IDC_BLACK" in a dialog box. As I tried to get the reference of the check box it says, type "int" is incompatible with type "HWND".

CButton *m_ctlCheck = new CButton;

m_ctlCheck = reinterpret_cast<CButton *>(GetDlgItem(IDC_BLACK));

Any help will be appreciated.