Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 14:51
acerunner31627-Nov-06 14:51 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 14:59
Mark Salsbery27-Nov-06 14:59 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 15:05
acerunner31627-Nov-06 15:05 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 15:09
Mark Salsbery27-Nov-06 15:09 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 15:11
acerunner31627-Nov-06 15:11 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 15:20
Mark Salsbery27-Nov-06 15:20 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 15:26
acerunner31627-Nov-06 15:26 
GeneralRe: Pop Up loading message [modified] Pin
Mark Salsbery27-Nov-06 15:49
Mark Salsbery27-Nov-06 15:49 
acerunner316 wrote:
How can I position it so that it pops up in the center like with the popup and overlap styles?


Center of the main dialog?
You could set the Center style to TRUE or move the dialog yourself:

pLoadingDlg->Create(IDD_LOADING,this);
CRect MainDialogRect, LoadDialogRect;
GetClientRect(&MainDialogRect);
pLoadingDlg->GetWindowRect(&LoadDialogRect);
pLoadingDlg->MoveWindow((MainDialogRect.Width() - LoadDialogRect.Width()) / 2, 
		(MainDialogRect.Height() - LoadDialogRect.Height()) / 2, 
		LoadDialogRect.Width(), LoadDialogRect.Height());


*EDIT* Fixed the MoveWindow call heh :laugh:


-- modified at 21:55 Monday 27th November, 2006
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 16:04
acerunner31627-Nov-06 16:04 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 16:47
Mark Salsbery27-Nov-06 16:47 
GeneralRe: Pop Up loading message Pin
Scott Holt27-Nov-06 13:57
Scott Holt27-Nov-06 13:57 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 14:14
acerunner31627-Nov-06 14:14 
GeneralRe: Pop Up loading message Pin
Scott Holt27-Nov-06 15:30
Scott Holt27-Nov-06 15:30 
GeneralRe: Pop Up loading message Pin
Scott Holt27-Nov-06 15:38
Scott Holt27-Nov-06 15:38 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 15:56
acerunner31627-Nov-06 15:56 
GeneralRe: Pop Up loading message Pin
acerunner31628-Nov-06 8:33
acerunner31628-Nov-06 8:33 
GeneralRe: Pop Up loading message Pin
Scott Holt28-Nov-06 9:57
Scott Holt28-Nov-06 9:57 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 11:26
Mark Salsbery27-Nov-06 11:26 
AnswerRe: Pop Up loading message Pin
Aqueel27-Nov-06 22:28
Aqueel27-Nov-06 22:28 
QuestionAnother beginner Q Pin
Ray_mond27-Nov-06 7:29
Ray_mond27-Nov-06 7:29 
QuestionRe: Another beginner Q Pin
Maximilien27-Nov-06 7:33
Maximilien27-Nov-06 7:33 
AnswerRe: Another beginner Q Pin
Ray_mond27-Nov-06 10:22
Ray_mond27-Nov-06 10:22 
QuestionFOLDER ACCESS PERMISSION Pin
Killer327-Nov-06 6:15
Killer327-Nov-06 6:15 
AnswerRe: FOLDER ACCESS PERMISSION Pin
David Crow27-Nov-06 7:30
David Crow27-Nov-06 7:30 
AnswerRe: FOLDER ACCESS PERMISSION Pin
Mark Salsbery27-Nov-06 7:39
Mark Salsbery27-Nov-06 7:39 

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.