Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 11:03
acerunner31627-Nov-06 11:03 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 11:09
Mark Salsbery27-Nov-06 11:09 
GeneralRe: Pop Up loading message [modified] Pin
acerunner31627-Nov-06 12:50
acerunner31627-Nov-06 12:50 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 13:24
Mark Salsbery27-Nov-06 13:24 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 13:45
acerunner31627-Nov-06 13:45 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 13:51
Mark Salsbery27-Nov-06 13:51 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 14:20
acerunner31627-Nov-06 14:20 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 14:39
Mark Salsbery27-Nov-06 14:39 
You are passing "this" as the parent. I don't know what class you are creating the dialog in.
For example, if it is a CFrameWnd derived then you may need to pass the client window as the
parent.
pLoadingDlg->Create(IDD_LOADING,this);

By the way, as Scott mentioned, child windows do get disabled when you disable the parent.
This doesn't affect the visiblility of any windows. I disabled the main window in my example to
prevent the user from doing anything until the operation completes, which is the Microsoft
recommended method. Of course, you can do what you want with the UI as you need to.

This does work Smile | :)
Here's the dialog resource I tested with:
IDD_STATUS DIALOGEX 0, 0, 186, 25<br />
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE<br />
EXSTYLE WS_EX_STATICEDGE<br />
FONT 8, "MS Shell Dlg", 400, 0, 0x1<br />
BEGIN<br />
    CTEXT           "Test Status",IDC_STATIC,15,7,156,12<br />
END

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 
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 

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.