I created tabs:
hTabCtrl=CreateWindow(WC_TABCONTROL, "", WS_VISIBLE|WS_TABSTOP|WS_CHILD|TCS_FOCUSONBUTTONDOWN ,0,0,0,0,hWnd, (HMENU)ID_TAB, hInst, NULL ); mOb.SetDefaultFont(hTabCtrl); hTabCtrl = GetDlgItem(hWnd, ID_TAB); tci.mask=TCIF_TEXT; tci.iImage=-1; // Create Three Tabs tci.pszText = "Главная"; TabCtrl_InsertItem(hTabCtrl,0,&tci); tci.pszText = "Two"; TabCtrl_InsertItem(hTabCtrl,1,&tci); Can you please tell me how to switch between tabs programmatically? Those. switch from the first to the second tab and back.