Am strugling with a static tab control.
Problem is the Tab control is statically placed on a dialog which is having two group boxes. One is parent group box inside which another group box is present. And the tab control i have placed here.
When i run the application, the Tab control is getting hidden and if i click on the area where i have placed the Tab, it gets displayed. Similar behaviour on switching the view, minimizing,maximaise and resizing.
I have modified even the Tab order properly to make Tab control should get the first priority. but nothing is working.
Below is the code which i have written to add pages:
memset(&tabCtrlItem, 0, sizeof(tabCtrlItem));
eReconTab.ModifyStyle( WS_VISIBLE | WS_CHILD, 0,SWP_SHOWWINDOW);
tabTitle = _T("FBP");
tabCtrlItem.mask = TCIF_TEXT|TCIF_IMAGE|TCIF_PARAM;
tabCtrlItem.pszText = tabTitle.GetBuffer(0);
tabCtrlItem.iImage = -1;
tabCtrlItem.lParam = (LPARAM)(CWnd*)&eNMFBPPage;
Pages and all gets added properly. Only problem is the Tab control is getting hidden until i click on the area.
tried with SetWindowPos and all. No Solution. If i delete both group box then it works fine.
Please any body help........