Re: How to thread a progress bar in a separate dialog?
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 10 Aug 2005 13:33:09 -0400
TRUE is not a valid value for a ShowWindow argument. The values are SW_SHOW and SW_HIDE,
among others, but TRUE is definitely not a valid value.
joe
On 10 Aug 2005 09:21:56 -0700, "Cyde Weys" <cyde@xxxxxxx> wrote:
>
>Cyde Weys wrote:
>> Alright, I've done everything you asked, and the program is still
>> working, but the loading dialog never displays? By "working" I mean
>> that the files are still loaded correctly, but when the loading screen
>> should come up, the program just sort of freezes at the main screen for
>> a second and then works. It's loading the files just fine, not
>> displaying the dialog. Since this isn't really the proprietary part of
>> my code I can give a lot more information about exactly what I've done:
>
>Nevermind, I figured it out. My code in readinData() now reads as the
>following:
>
> LoadingDlg *dlg = new LoadingDlg;
> dlg->Create(LoadingDlg::IDD);
> dlg->SetRange(1, getNumFiles());
> dlg->SetStep(1);
> dlg->SetPos(1);
> dlg->ShowWindow(TRUE); /* I DIDN'T HAVE THIS LINE BEFORE */
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- References:
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- From: Josh McFarlane
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- From: Josh McFarlane
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- From: Joseph M . Newcomer
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- From: Cyde Weys
- Re: How to thread a progress bar in a separate dialog?
- Prev by Date: Re: How to thread a progress bar in a separate dialog?
- Next by Date: Re: Order of Message Map Entries - Does It Matter?
- Previous by thread: Re: How to thread a progress bar in a separate dialog?
- Next by thread: Re: How to thread a progress bar in a separate dialog?
- Index(es):
Relevant Pages
|