Click here to Skip to main content
15,911,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can set bmp,ico,jpg in Picture control? Pin
Hamid_RT14-May-08 6:48
Hamid_RT14-May-08 6:48 
QuestionAbout Rich Edit Control : CRichEditCtrl Pin
vijay.victory13-May-08 23:19
vijay.victory13-May-08 23:19 
AnswerRe: About Rich Edit Control : CRichEditCtrl Pin
ShilpiP14-May-08 0:29
ShilpiP14-May-08 0:29 
QuestionXP Style Tab Control? Pin
ritz123413-May-08 22:48
ritz123413-May-08 22:48 
AnswerRe: XP Style Tab Control? Pin
Naveen13-May-08 22:59
Naveen13-May-08 22:59 
GeneralRe: XP Style Tab Control? Pin
ritz123413-May-08 23:24
ritz123413-May-08 23:24 
GeneralRe: XP Style Tab Control? Pin
Naveen14-May-08 0:15
Naveen14-May-08 0:15 
GeneralRe: XP Style Tab Control? Pin
ritz123414-May-08 0:35
ritz123414-May-08 0:35 
1)I've included the tab control on the dialogbox.
2)In class that implements the the dialogbox has a member CTabCtrl m_Tab.
3)The .cpp class of this dialogbox has following code.
CoInitialize(NULL); <br />
<br />
	EnableThemeDialogTexture(GetSafeHwnd());<br />
		<br />
		<br />
	char szBuffer1[50];<br />
	char szBuffer2[50];<br />
<br />
	strcpy(szBuffer1,"Login");<br />
	strcpy(szBuffer2,"Upload");<br />
<br />
	m_Tab = (CXPTabCtrl *)GetDlgItem(IDC_OPTION_TABS);<br />
	<br />
<br />
	TCITEM tcItem1 = {0};<br />
		<br />
	tcItem1.mask = TCIF_TEXT;<br />
	tcItem1.pszText =szBuffer1;<br />
	tcItem1.cchTextMax =79; <br />
<br />
		<br />
<br />
	TCITEM tcItem2 = {0};<br />
		<br />
	tcItem2.mask = TCIF_TEXT;<br />
	tcItem2.pszText =szBuffer2;<br />
	tcItem2.cchTextMax =79; <br />
<br />
	m_Tab->InsertItem(0,&tcItem1);<br />
	m_Tab->InsertItem(1,&tcItem2);<br />
<br />
	m_Tab->SetCurFocus(0);


ritz1234

GeneralRe: XP Style Tab Control? Pin
Naveen14-May-08 0:45
Naveen14-May-08 0:45 
GeneralRe: XP Style Tab Control? Pin
ritz123414-May-08 1:09
ritz123414-May-08 1:09 
QuestionHow to get gdi objects associated with a CDC object? Pin
Super Hornet13-May-08 21:50
Super Hornet13-May-08 21:50 
AnswerRe: How to get gdi objects associated with a CDC object? Pin
CPallini13-May-08 22:10
mveCPallini13-May-08 22:10 
AnswerRe: How to get gdi objects associated with a CDC object? Pin
Mark Salsbery14-May-08 7:25
Mark Salsbery14-May-08 7:25 
QuestionSlow DTS package Pin
Member 290588913-May-08 21:05
Member 290588913-May-08 21:05 
QuestionUsing MFC class in a native application [modified] Pin
sabeeshcs13-May-08 20:22
sabeeshcs13-May-08 20:22 
AnswerRe: Using MFC class in a native application Pin
Nelek13-May-08 21:32
protectorNelek13-May-08 21:32 
AnswerRe: Using MFC class in a native application Pin
Iain Clarke, Warrior Programmer13-May-08 22:00
Iain Clarke, Warrior Programmer13-May-08 22:00 
RantRe: Using MFC class in a native application Pin
toxcct13-May-08 23:24
toxcct13-May-08 23:24 
GeneralRe: Using MFC class in a native application Pin
CPallini13-May-08 23:42
mveCPallini13-May-08 23:42 
GeneralRe: Using MFC class in a native application Pin
toxcct13-May-08 23:43
toxcct13-May-08 23:43 
JokeRe: Using MFC class in a native application Pin
Rajesh R Subramanian14-May-08 1:05
professionalRajesh R Subramanian14-May-08 1:05 
QuestionRe: Using MFC class in a native application Pin
David Crow14-May-08 3:16
David Crow14-May-08 3:16 
QuestionDrawing child controls in MetaFile Pin
sv1413-May-08 20:21
sv1413-May-08 20:21 
AnswerRe: Drawing child controls in MetaFile Pin
ShilpiP13-May-08 21:27
ShilpiP13-May-08 21:27 
GeneralRe: Drawing child controls in MetaFile Pin
sv1413-May-08 23:47
sv1413-May-08 23:47 

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.