Re: entering a function after dialog is displayed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



There are problems with "lengthy initialization" that cause problems. For example,
suppose during the lengthy initialization you switch away to check email and come back.
The screen is not redrawn properly. The message pump is blocked, and the WM_PAINT that
will repaint the app, the dialog, etc. is dead. In fact, I've seen cases where there's
just sort of a "hole" and this poor lonely progress bar, apparently floating in
hyperspace, is all that is visible (the programmer realized somehow that when updating the
progress bar, an UpdateWindow is required, so the only part of the app that comes up is
the progress bar!)

I always use a background thread.

MFC makes so many things so much simpler; I read the blog site, and it convinced me once
again that programming GUI apps in the raw API is a Fundamentally Losing Idea.

(Once I realized that MFC was not coupled to using Microsoft's brain-dead imitation text
editors, I started using it. That was over 12 years ago, and I've not seen any reason to
go back to raw API programming for apps since)
joe

On Wed, 10 Oct 2007 17:41:27 -0500, "Sheng Jiang[MVP]" <sheng_jiang@xxxxxxxxxxxxxxxxxxx>
wrote:

A background thread is more appropriate.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Whose Fish?
    ... That would be much more in line with your Table Oriented Programming ... cart structure/object floating around in the app. ... intuitive way, as it is with a good object model, ... I might load CustomerInfo with read only ID ...
    (comp.object)
  • Re: Whose Fish?
    ... That would be much more in line with your Table Oriented Programming ... less so if the language supported local tables/queries well.) ... cart structure/object floating around in the app. ... I might load CustomerInfo with read only ID ...
    (comp.object)
  • Re: Confusing stack effects
    ... And DOS ... is the best way to start assembly programming. ... To learn todo 16-bit dos programming, for programming in windows later is the worst kind of advice. ... Learning to program for a Click&Go GUI is a tedious incredible complex job, compared to doing a dos app, where all you need to do is set up a loop, to take input that in all cases _you_ made the rules for. ...
    (alt.lang.asm)
  • Re: How to develop a PPC application
    ... >what is your programming experience level. ... an app. ... Be careful about overly automating, as in automatically switching fare ...
    (microsoft.public.pocketpc.developer)
  • Re: For days I have toiled...
    ... Using a programming ... language to create an app is done primarily for scalability reasons, ... >> the datasheet view by specifying a width of 0 in the Column Widths ... Simply renaming the macro to AutoExec ...
    (microsoft.public.vb.general.discussion)