nanogui: UPDATEREGIONS problems


Previous by date: 20 Nov 2002 15:19:43 -0000 microwin on ppc, hn
Next by date: 20 Nov 2002 15:19:43 -0000 Re: microwin on ppc, Greg Haerr
Previous in thread: 20 Nov 2002 15:19:43 -0000 UPDATEREGIONS problems, 김준영
Next in thread:

Subject: Re: [nanogui] UPDATEREGIONS problems
From: "Greg Haerr" ####@####.####
Date: 20 Nov 2002 15:19:43 -0000
Message-Id: <018301c290a7$2e6e1660$3aba46a6@xmission.com>

: I am in a serious trouble now as I have to change the whole software
architecture, if partial redrawing is not possible.

You shouldn't be in trouble.  With UPDATEREGIONS,
Microwindows calculates the union of the window
visible area and the invalidated area of the window,
allowing updating only in this usually smaller area.

: I think the update region in HWND is passed to PSD and HDC when GetDCEx() is
called but  I can't understand the mechanism.
In GetDCEx() code, the codes surrounded by UPDATEREGION do not seem to work,
because GetDCEx() function is always called with the "hrgnClip=NULL" as
parameter.

Try removing the DCX_EXCLUDEUPDATE flag passed to GetDCEx()
in the BeginPaint function in wingdi.c.  It appears I've
added it back in again for the mdemo program.

The UPDATEREGION should be correct when BeginPaint is called.
When GetDC is called, you will get just the window region.

Regards,

Greg


Previous by date: 20 Nov 2002 15:19:43 -0000 microwin on ppc, hn
Next by date: 20 Nov 2002 15:19:43 -0000 Re: microwin on ppc, Greg Haerr
Previous in thread: 20 Nov 2002 15:19:43 -0000 UPDATEREGIONS problems, 김준영
Next in thread:


Powered by ezmlm-browse 0.20.