How will set new tab order of controls that we added in dialog? Suppose dialog have some controls and in this dialog i hide one controls and add new one dynamically. Now i want to set new tab order.

I already used SetWindowPos() function. It does not work fine . It is win32 application.