Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 9:28
Force Code4-Aug-07 9:28 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 13:41
Force Code4-Aug-07 13:41 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
JuggernautMsn6-Aug-07 10:07
JuggernautMsn6-Aug-07 10:07 
QuestionPC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code4-Aug-07 1:36
Still learning how to code4-Aug-07 1:36 
AnswerRe: PC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code5-Aug-07 2:17
Still learning how to code5-Aug-07 2:17 
QuestionProblem with OnDrawClipboard Pin
dSolariuM4-Aug-07 1:12
dSolariuM4-Aug-07 1:12 
QuestionTapi reconnection Pin
mehrdadov4-Aug-07 0:06
mehrdadov4-Aug-07 0:06 
QuestionVS 2003 Tab Controls Pin
Code_Ray3-Aug-07 13:08
Code_Ray3-Aug-07 13:08 
Ok, everything was going great until I added a Tab Control to a dlgbox. Now I'm lost or maybe confussed. I'm trying to add other controls like groupboxes, checkboxes and so on, on different tabs. Can someone please look at my code and see what I need to add so that a groupbox will show on a tab.
<br />
<br />
<br />
BOOL	CALLBACK SigRoom (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)<br />
{<br />
	INITCOMMONCONTROLSEX	InitCtrlEx;<br />
	InitCtrlEx.dwSize	= sizeof(INITCOMMONCONTROLSEX);<br />
	InitCtrlEx.dwICC	= ICC_TAB_CLASSES;<br />
<br />
	InitCommonControlsEx(&InitCtrlEx);<br />
TCITEM General, Finishes, Materials, Doors, Drawers, Hardware, CounterTop ;<br />
	switch (message)<br />
	{<br />
	case WM_INITDIALOG:<br />
		{<br />
			<br />
    General.mask = TCIF_TEXT;<br />
    General.pszText = "General Info";<br />
    General.cchTextMax = strlen("General") + 1;<br />
    General.iImage = -1;<br />
    General.lParam = 0;<br />
    Finishes.mask = TCIF_TEXT;<br />
    Finishes.pszText = "Finishes";<br />
    Finishes.cchTextMax = strlen("Finishes") + 1;<br />
    Finishes.iImage = -1;<br />
    Finishes.lParam = 0;<br />
    Materials.mask = TCIF_TEXT;<br />
    Materials.pszText = "Materials";<br />
    Materials.cchTextMax = strlen("Materials") + 1;<br />
    Materials.iImage = -1;<br />
    Materials.lParam = 0;<br />
    Doors.mask = TCIF_TEXT;<br />
    Doors.pszText = "Doors";<br />
    Doors.cchTextMax = strlen("Doors") + 1;<br />
    Doors.iImage = -1;<br />
    Doors.lParam = 0;<br />
    Drawers.mask = TCIF_TEXT;<br />
    Drawers.pszText = "Drawers";<br />
    Drawers.cchTextMax = strlen("Drawers") + 1;<br />
    Drawers.iImage = -1;<br />
    Drawers.lParam = 0;<br />
    Hardware.mask = TCIF_TEXT;<br />
    Hardware.pszText = "Hardware";<br />
    Hardware.cchTextMax = strlen("Hardware") + 1;<br />
    Hardware.iImage = -1;<br />
    Hardware.lParam = 0;<br />
    CounterTop.mask = TCIF_TEXT;<br />
    CounterTop.pszText = "CounterTop";<br />
    CounterTop.cchTextMax = strlen("CounterTop") + 1;<br />
    CounterTop.iImage = -1;<br />
    CounterTop.lParam = 0;<br />
<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 0, &General);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 1, &Finishes);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 2, &Materials);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 3, &Doors);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 4, &Drawers);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 5, &Hardware);<br />
    TabCtrl_InsertItem(GetDlgItem(hDlg , IDC_TAB1), 6, &CounterTop);<br />
    return TRUE;<br />
    break;<br />
	}<br />
	default:<br />
return FALSE;<br />
	case WM_COMMAND:<br />
		switch (LOWORD (wParam))<br />
		{<br />
		case IDOK:<br />
		case IDCANCEL:<br />
			EndDialog (hDlg, 0);<br />
			return TRUE;<br />
		}<br />
		break;<br />
	}<br />
}<br />
<br />

AnswerRe: VS 2003 Tab Controls Pin
Mark Salsbery3-Aug-07 13:37
Mark Salsbery3-Aug-07 13:37 
AnswerRe: VS 2003 Tab Controls Pin
Michael Dunn3-Aug-07 14:48
sitebuilderMichael Dunn3-Aug-07 14:48 
AnswerRe: VS 2003 Tab Controls Pin
bob169723-Aug-07 16:15
bob169723-Aug-07 16:15 
QuestionPrinting in MFC [modified] Pin
hxhl953-Aug-07 12:30
hxhl953-Aug-07 12:30 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:02
bob169723-Aug-07 16:02 
QuestionRe: Printing in MFC Pin
hxhl953-Aug-07 19:32
hxhl953-Aug-07 19:32 
AnswerRe: Printing in MFC Pin
bob169724-Aug-07 3:41
bob169724-Aug-07 3:41 
GeneralRe: Printing in MFC Pin
hxhl954-Aug-07 6:36
hxhl954-Aug-07 6:36 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:25
bob169723-Aug-07 16:25 
AnswerRe: Printing in MFC Pin
hxhl954-Aug-07 6:42
hxhl954-Aug-07 6:42 
GeneralRe: Printing in MFC Pin
bob169724-Aug-07 8:38
bob169724-Aug-07 8:38 
GeneralRe: Printing in MFC Pin
Bram van Kampen5-Aug-07 3:11
Bram van Kampen5-Aug-07 3:11 
AnswerRe: Printing in MFC Pin
hxhl955-Aug-07 9:56
hxhl955-Aug-07 9:56 
QuestionCreating Formatting Bar Pin
.NET- India 3-Aug-07 9:23
.NET- India 3-Aug-07 9:23 
QuestionRe: Creating Formatting Bar Pin
David Crow3-Aug-07 10:35
David Crow3-Aug-07 10:35 
AnswerRe: Creating Formatting Bar Pin
Hamid_RT3-Aug-07 18:44
Hamid_RT3-Aug-07 18:44 
QuestionCreate a wav file using existing wav files Pin
vikrant kpr3-Aug-07 7:56
vikrant kpr3-Aug-07 7:56 

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.