如何获得句柄
我知道一个控件的ID 怎么才能获得它的句柄呀????
[解决办法]
The GetDlgItem function retrieves a handle to a control in the specified dialog box.
Syntax
HWND GetDlgItem( HWND hDlg,
int nIDDlgItem
);
Parameters
hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the identifier of the control to be retrieved.
Return Value
If the function succeeds, the return value is the window handle of the specified control.
If the function fails, the return value is NULL, indicating an invalid dialog box handle or a nonexistent control. To get extended error information, call GetLastError.