Subj : Re: Dialog painting To : borland.public.cpp.borlandcpp From : Sebastian Ledesma Date : Tue Mar 22 2005 05:09 pm Sorry, I missundertood you the first time. Actually I have defined SafeYield in a auxiliary source file, and it's declared inline (however sometimes i also copy&paste). Saludos Sebastian > > "Jeff Kish" escribió en el mensaje > news:5gnt31p5lljm86kqlg550i16u9vdot9r53@4ax.com... > > Wait.. can't you just put a pumpwaitingmessages call into your loop > > (if you have one) in your lengthy processing? > > > > On Mon, 21 Mar 2005 10:06:28 -0300, "Sebastian Ledesma" > > wrote: > > > > >Hello Betkro: > > > > > >You can do something like this: > > > > > >void SafeYield() { > > > MSG msg; > > > if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { > > > TranslateMessage(&msg); > > > DispatchMessage(&msg); > > > } > > >} > > > .... > .