1

I am trying to use the function GetDlgItem(int id) and not the GetDlgItem(HWND par, int id). In other parts my code I use GetDlgItem as such

CWnd * pWnd;
pWnd = GetDlgItem(IDC_UPPER_BTN);

And it works fine. But in another class I am trying to do the exact same thing and it keeps demanding a HWND.

When I search GetDlgItem I see there is a MFC and a windows version. How can I specify which one I want to use?

4

1 回答 1

0

您可以使用以下方法显式指定成员函数:

this->GetDlgItem(...);

您可以使用以下命令显式指定全局函数:

::GetDlgItem(...);
于 2013-04-24T14:47:25.830 回答