Hi,
I am facing a problem in setting the tab order in a dialog box. To set the tab order I have used the function SetWindowPos().
Initially it will be focused to one of the dialog item, but if I press tab it will not change the focus to the other items on the dialog box.
Please help he to fix the problem. bellow is the code...
HWND hBtn1 = GetDlgItem(hWnd, IDC_BTN_OPEN);
HWND hBtn2 = GetDlgItem(hWnd, IDC_BTN_CLOSE);
HWND hBtn3 = GetDlgItem(hWnd, IDC_BTN_SAVE);
bool result = ::SetWindowPos(hBtn1, hBtn2, 0, 0, 0, 0,SWP_NOSIZE|SWP_NOMOVE);
result = ::SetWindowPos(hBtn2, hBtn3, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);