Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThat was VS6! Pin
CPallini29-Oct-07 3:39
mveCPallini29-Oct-07 3:39 
GeneralRe: That was VS6! Pin
George_George29-Oct-07 4:05
George_George29-Oct-07 4:05 
GeneralRe: DllRegisterServer Pin
George_George29-Oct-07 4:01
George_George29-Oct-07 4:01 
GeneralRe: DllRegisterServer Pin
CPallini29-Oct-07 3:36
mveCPallini29-Oct-07 3:36 
GeneralRe: DllRegisterServer Pin
George_George29-Oct-07 4:03
George_George29-Oct-07 4:03 
Questionscroll bars Pin
Paulraj G28-Oct-07 21:39
Paulraj G28-Oct-07 21:39 
AnswerRe: scroll bars Pin
Hamid_RT28-Oct-07 22:01
Hamid_RT28-Oct-07 22:01 
QuestionHow to add Control In Tab Pin
GauranG Shah28-Oct-07 21:17
GauranG Shah28-Oct-07 21:17 
Hello Friends,

I am using win32 Application. In which I need to create the Tab Control. I have created the Tabs using following code, But don't know how to add Control in particular TAB. Can anybody tell me how to do this.

Following is the code I am using to create the TAB.

HWND WINAPI DoCreateTabControl(HWND hwndParent) 
{ 
	RECT rcClient; 
	HWND hwndTab; 
	TCITEM tie1, tie2; 
	GetClientRect(hwndParent, &rcClient); 
	InitCommonControls(); 
	hwndTab = GetDlgItem(hwndParent,IDC_TAB1);

	// Add tabs for each day of the week. 
	tie1.mask = TCIF_TEXT | TCIF_IMAGE; 
	tie1.iImage = -1; 
	tie1.pszText = L"TAB 1"; 
	tie2.mask = TCIF_TEXT | TCIF_IMAGE; 
	tie2.iImage = -1; 
	tie2.pszText = L"TAB2 "; 

  TabCtrl_InsertItem(hwndTab, 0,&tie1);
  TabCtrl_InsertItem(hwndTab, 1,&tie2);

  return hwndTab; 
}


Thnx in advance..


AnswerRe: How to add Control In Tab Pin
Nishad S28-Oct-07 22:43
Nishad S28-Oct-07 22:43 
Questionshell extension question Pin
carabutnicolae123428-Oct-07 21:04
carabutnicolae123428-Oct-07 21:04 
QuestionDate and Time Pin
john563228-Oct-07 20:58
john563228-Oct-07 20:58 
AnswerRe: Date and Time Pin
Hamid_RT28-Oct-07 21:08
Hamid_RT28-Oct-07 21:08 
AnswerRe: Date and Time Pin
Nishad S28-Oct-07 21:08
Nishad S28-Oct-07 21:08 
AnswerRe: Date and Time Pin
chandu00428-Oct-07 21:37
chandu00428-Oct-07 21:37 
AnswerRe: Date and Time Pin
CodingLover28-Oct-07 21:43
CodingLover28-Oct-07 21:43 
AnswerRe: Date and Time Pin
Rahul Vaishnav28-Oct-07 21:52
Rahul Vaishnav28-Oct-07 21:52 
AnswerRe: Date and Time Pin
panthal29-Oct-07 1:34
panthal29-Oct-07 1:34 
QuestionInsert data to a SQL database on a click event. Pin
CodingLover28-Oct-07 20:51
CodingLover28-Oct-07 20:51 
NewsSoftware Engineers needed at Elektrobit (Beijing) Pin
zhaihuanyu28-Oct-07 20:34
zhaihuanyu28-Oct-07 20:34 
Questionhandling mouse event on a picture Pin
Joy_ee28-Oct-07 20:29
Joy_ee28-Oct-07 20:29 
QuestionRe: handling mouse event on a picture Pin
Nishad S28-Oct-07 20:36
Nishad S28-Oct-07 20:36 
AnswerRe: handling mouse event on a picture Pin
Hamid_RT28-Oct-07 20:43
Hamid_RT28-Oct-07 20:43 
QuestionDisable process termination Pin
hxhl9528-Oct-07 19:13
hxhl9528-Oct-07 19:13 
AnswerRe: Disable process termination Pin
Hamid_RT28-Oct-07 19:21
Hamid_RT28-Oct-07 19:21 
AnswerRe: Disable process termination Pin
Michael Dunn28-Oct-07 19:40
sitebuilderMichael Dunn28-Oct-07 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.