Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 6:23
Mark Salsbery19-Dec-06 6:23 
GeneralRe: Tab Control in existing dialog box [modified] Pin
acerunner31619-Dec-06 8:30
acerunner31619-Dec-06 8:30 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 9:05
Mark Salsbery19-Dec-06 9:05 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31619-Dec-06 13:47
acerunner31619-Dec-06 13:47 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 15:33
Mark Salsbery19-Dec-06 15:33 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31619-Dec-06 15:55
acerunner31619-Dec-06 15:55 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 7:14
Mark Salsbery20-Dec-06 7:14 
GeneralRe: Tab Control in existing dialog box [modified] Pin
acerunner31620-Dec-06 9:52
acerunner31620-Dec-06 9:52 
Ok, I fixed the problem. For some reason, a clean and a rebuild fixed the problem.

But now another minor problem has arisen. I have a small popup loading dialog window that should be popping up centered relative to the main dialog window. (If you recall, you helped me with that in another forum thread.) Now with the tab, the popup window is created in the upper left corner of the tab window.

Here is how it is created.
EnableWindow(FALSE);<br />
pLoadingDlg = new CLoading;<br />
pLoadingDlg->Create(IDD_LOADING, this);	//"this" or "GetParent()"<br />
pLoadingDlg->ShowWindow(SW_SHOW);


I tried using this to move it.
CRect MainDialogRect, LoadDialogRect;<br />
GetClientRect(&MainDialogRect);<br />
pLoadingDlg->GetWindowRect(&LoadDialogRect);<br />
pLoadingDlg->MoveWindow((MainDialogRect.Width() - LoadDialogRect.Width()) / 2, <br />
     (MainDialogRect.Height() - LoadDialogRect.Height()) / 2, <br />
     LoadDialogRect.Width(), LoadDialogRect.Height());


But it just places the window at the correct location, but relative to the screen, and not to the main window.

Also the EnableWindow(FALSE); no longer works. Is it safe to use GetParent()->EnableWindow(FALSE);?



-- modified at 16:02 Wednesday 20th December, 2006
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 10:07
Mark Salsbery20-Dec-06 10:07 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 10:21
acerunner31620-Dec-06 10:21 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:20
Mark Salsbery20-Dec-06 11:20 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:43
Mark Salsbery20-Dec-06 11:43 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:51
Mark Salsbery20-Dec-06 11:51 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:21
acerunner31620-Dec-06 12:21 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:29
Mark Salsbery20-Dec-06 12:29 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:51
acerunner31620-Dec-06 12:51 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:56
Mark Salsbery20-Dec-06 12:56 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 10:54
acerunner31620-Dec-06 10:54 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:23
Mark Salsbery20-Dec-06 11:23 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:39
acerunner31620-Dec-06 12:39 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:47
Mark Salsbery20-Dec-06 12:47 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 13:08
acerunner31620-Dec-06 13:08 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 13:19
Mark Salsbery20-Dec-06 13:19 
QuestionHas anyone used the MFC Internet Classes? Pin
Richard Andrew x6418-Dec-06 10:59
professionalRichard Andrew x6418-Dec-06 10:59 
AnswerRe: Has anyone used the MFC Internet Classes? Pin
led mike18-Dec-06 11:43
led mike18-Dec-06 11:43 

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.