Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClosing only one of several documents Pin
trimtrom29-Dec-02 16:10
trimtrom29-Dec-02 16:10 
GeneralRe: Closing only one of several documents Pin
Michael Dunn29-Dec-02 16:41
sitebuilderMichael Dunn29-Dec-02 16:41 
GeneralStatic Memeber Problem Pin
29-Dec-02 14:31
suss29-Dec-02 14:31 
GeneralRe: Static Memeber Problem Pin
Nitron29-Dec-02 15:02
Nitron29-Dec-02 15:02 
GeneralRe: Static Memeber Problem Pin
Michael Dunn29-Dec-02 16:04
sitebuilderMichael Dunn29-Dec-02 16:04 
GeneralMaking folder invisible (advanced) Pin
Member 20681029-Dec-02 14:11
Member 20681029-Dec-02 14:11 
GeneralRe: Making folder invisible (advanced) Pin
Andreas Saurwein30-Dec-02 6:58
Andreas Saurwein30-Dec-02 6:58 
QuestionCould someone please guide me with my code a litlle? Pin
georgiek5029-Dec-02 13:58
georgiek5029-Dec-02 13:58 
I created a tab control which I placed on a modal dialog. I have inserted my two tabs and now I am having trouble with the actual content of each page. Here is some code: This is my setting up of the tab control and loading my dialog resource
<br />
case WM_INITDIALOG:<br />
<br />
			tcItem.mask = TCIF_TEXT;<br />
<br />
			for (i = 0; i < 2; i++)<br />
			{<br />
				tcItem.pszText = szTabNames[i];<br />
				<br />
				TabCtrl_InsertItem(hwndTab, i, &tcItem);<br />
			}<br />
<br />
			<br />
<br />
			hDlgResource = FindResource(hInst, MAKEINTRESOURCE(IDD_DIALOGTEST), RT_DIALOG);<br />
			hDlgTest = LoadResource(NULL, hDlgResource);<br />
			LockResource(hDlgTest);<br />
<br />
			SetWindowPos(hwndDialog, NULL, 30, 30, 200, 200, SWP_NOZORDER);<br />
			ShowWindow(hwndDialog, SW_SHOW);<br />
<br />
			return TRUE;<br />


This is what I have to process the changing of the tab selections, actually to test it out I am trying to show the window with one tab and hide it with the other. Showing it works fine, hiding on the other hand doesn't work no matter how hard I try!:

<br />
case WM_NOTIFY:<br />
			switch(LOWORD (wParam))<br />
			{<br />
				case IDC_TABOPTIONS:<br />
					iIndex = TabCtrl_GetCurSel(hwndTab);<br />
<br />
					switch(iIndex)<br />
					{<br />
						case 0:<br />
							ShowWindow(hwndDialog, SW_HIDE);<br />
							<br />
							return break;<br />
<br />
						case 1:<br />
							SetWindowPos(hwndDialog, NULL, 30, 30, 200, 200, SWP_NOZORDER);<br />
							ShowWindow(hwndDialog, SW_SHOW);<br />
<br />
							break;<br />
<br />
						default:<br />
<br />
							break;<br />
					}<br />
<br />
					break;<br />
			}<br />
<br />
			return TRUE;<br />


Can anyone see as to why it is not hiding my dialog?
GeneralNew to Programming Pin
bmwmpower29-Dec-02 13:21
bmwmpower29-Dec-02 13:21 
GeneralRe: New to Programming Pin
Taka Muraoka29-Dec-02 13:31
Taka Muraoka29-Dec-02 13:31 
GeneralRe: New to Programming Pin
Rob Graham29-Dec-02 13:59
Rob Graham29-Dec-02 13:59 
GeneralRe: New to Programming Pin
berdj@sympatico.ca31-Dec-02 13:28
sussberdj@sympatico.ca31-Dec-02 13:28 
GeneralRe: New to Programming Pin
(Steven Hicks)n+129-Dec-02 15:54
(Steven Hicks)n+129-Dec-02 15:54 
GeneralKiss for free books Pin
Linda1029-Dec-02 12:03
Linda1029-Dec-02 12:03 
GeneralRe: Kiss for free books Pin
zarzor29-Dec-02 12:19
zarzor29-Dec-02 12:19 
GeneralRe: Kiss for free books Pin
Jim Crafton29-Dec-02 13:03
Jim Crafton29-Dec-02 13:03 
GeneralRe: Kiss for free books Pin
Taka Muraoka29-Dec-02 13:33
Taka Muraoka29-Dec-02 13:33 
GeneralRe: Kiss for free books Pin
Linda1029-Dec-02 14:41
Linda1029-Dec-02 14:41 
GeneralRe: Kiss for free books Pin
Taka Muraoka29-Dec-02 15:09
Taka Muraoka29-Dec-02 15:09 
GeneralRe: Kiss for free books Pin
Nick Parker29-Dec-02 16:39
protectorNick Parker29-Dec-02 16:39 
GeneralRe: Kiss for free books Pin
Jim Crafton29-Dec-02 17:08
Jim Crafton29-Dec-02 17:08 
GeneralRe: Kiss for free books Pin
Marc Clifton30-Dec-02 2:19
mvaMarc Clifton30-Dec-02 2:19 
GeneralRe: Kiss for free books Pin
Jim Crafton30-Dec-02 7:08
Jim Crafton30-Dec-02 7:08 
GeneralRe: Kiss for free books Pin
Jim Crafton29-Dec-02 17:11
Jim Crafton29-Dec-02 17:11 
GeneralRe: Kiss for free books Pin
(Steven Hicks)n+129-Dec-02 15:52
(Steven Hicks)n+129-Dec-02 15:52 

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.