Re: How to thread a progress bar in a separate dialog?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Combo Box - Max number records returned
    ... See ExpandingSearch97 and ExpandingSearch2K at ... Allen Browne (MVP) has another approach at his website: ... <MS ACCESS MVP> ... And displaying these records takes a ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Combo Box - Max number records returned
    ... See ExpandingSearch97 and ExpandingSearch2K at ... Allen Browne (MVP) has another approach at his website: ... <MS ACCESS MVP> ... And displaying these records takes a ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Text Color in richText
    ... >> just referring to switching from displaying text red or black... ... >> Chris Hanscom ... >> MVP ... >>> In a richtext control, can set a line of text to be a different color. ...
    (microsoft.public.vb.general.discussion)
  • Re: Windows Mobile Question
    ... Cris Hanna [SBS - MVP] ... All works great including pulling down my entire address book from Exchange. ... My question is having the phone recognize an incoming number and displaying the appropriate name that is matched up in the address book/contact list. ... When a call comes in from John Doe's Home number I want the phone to display "John Doe". ...
    (microsoft.public.windows.server.sbs)
  • Re: office updates
    ... Susan Ramlet ... MVP - Office ... Please reply to the newsgroups where others may benefit. ... it freezes up at 40% and tells me the site is having problems. ...
    (microsoft.public.officeupdate)