句柄 -----> ID
id = GetWindowLong (hwndChild, GWL_ID) ;
或
id = GetDlgCtrlID (hwndChild) ;
ID -----> 句柄
hwndChild = GetDlgItem (hwndParent, id) ;
句柄 -----> ID
id = GetWindowLong (hwndChild, GWL_ID) ;
或
id = GetDlgCtrlID (hwndChild) ;
ID -----> 句柄
hwndChild = GetDlgItem (hwndParent, id) ;