Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » WindowProc invoked while in Paint routine
Re: WindowProc invoked while in Paint routine [message #40387 is a reply to message #40362] Mon, 29 July 2013 19:38 Go to previous message
mirek is currently offline  mirek
Messages: 14260
Registered: November 2005
Ultimate Member
Well, this happens when you start message processing from Paint routine.

Typical example:

void MyApp::Paint(Draw& w)
{
    Progress pi;
    for(....) {
         pi.StepCanceled();
    }
}


The problem is that Win32 (not U++) does not handle this well, that is why it is checked.

While above example might seem obvious, I usually hit this error if Paint uses some sort of cached/lazy loaded data and loading of this data attempts to show the progress.

Mirek
 
Read Message
Read Message
Previous Topic: using an activex dll
Next Topic: NotNull doesn't work on an EditString with a convert
Goto Forum:
  


Current Time: Tue Jun 03 03:10:40 CEST 2025

Total time taken to generate the page: 0.02672 seconds