Click to See Complete Forum and Search --> : get window handle of control


May 9th, 1999, 11:22 PM
i have a form view with about a million controls on it! ;)

given one control's ID i want to be able to get the window handle of the control previous in the TAB order. Anyone know how?

May 10th, 1999, 12:35 AM
Use 'GetDlgItem()' function to get the CWnd object of that particular control
Use 'GetNextDlgTabItem()' function to get the previous or next control in tab order.

May 10th, 1999, 12:48 AM
****! how did i miss this function!

thanks for your help.