Changing the tab order of a control at runtime!

Follow these steps(Just a demo)… Add two buttons to a fresh dialog in a sequencial order, IDC_BUTTON1 and IDC_BUTTON2 Goto OnInitDialog(you are not restricted to OnInitDialog, you can also do this on a button click) and paste this line of code [sourcecode language=’cpp’]GetDlgItem( IDC_BUTTON1 )->SetWindowPos(GetDlgItem( IDC_BUTTON2 ), 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | […]
Continue reading…