Click here to Skip to main content
11,806,575 members (39,266 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: TabControl
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:
CString tabTitle;
TC_ITEM tabCtrlItem;
memset(&tabCtrlItem, 0, sizeof(tabCtrlItem));
//FBP Page
if (!eNMFBPPage.Create(this))
  return FALSE;
tabTitle = _T("FBP");
tabCtrlItem.pszText = tabTitle.GetBuffer(0);
tabCtrlItem.iImage = -1;
tabCtrlItem.lParam = (LPARAM)(CWnd*)&eNMFBPPage;
eReconTab.InsertItem(0, &tabCtrlItem);
CRect tabRect;
eReconTab.AdjustRect(FALSE, tabRect);

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........
Posted 9-Apr-12 3:01am
Edited 9-Apr-12 3:15am
(no name)19.3K
SAKryukov at 9-Apr-12 12:07pm
Tag everything properly: platform, language, UI library used. Yes, I can guess, so what? Specify every relevant detail. "Improve question" is above.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 ppolymorphe 265
1 OriginalGriff 190
2 Richard Deeming 175
3 George Jonsson 125
4 Philippe Mori 80
0 OriginalGriff 3,380
1 Maciej Los 1,990
2 CPallini 1,915
3 KrunalRohit 1,907
4 ppolymorphe 1,317

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 9 Apr 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100