您所说的这个方法我已经用过了,我先获取主窗口的句柄HWND,然后再根据ID调用这个函数,所获得的HWND是空的[/quote]
建议你把那段msdn好好读读
As long as the hDlg parameter specifies a parent window and the child window has a unique identifie
[/quote]
那就是hDlg应该是父窗口的句柄吧?楼上说了AboutDialog不是子控件,那就是这种方式不行咯?
您所说的这个方法我已经用过了,我先获取主窗口的句柄HWND,然后再根据ID调用这个函数,所获得的HWND是空的[/quote]
建议你把那段msdn好好读读
As long as the hDlg parameter specifies a parent window and the child window has a unique identifie
You can use the GetDlgItem function with any parent-child window pair, not just with dialog boxes. As long as the hDlg parameter specifies a parent window and the child window has a unique identifie