On Wed, Aug 16, 2000 at 04:42:04PM +0300, Veksler Michael wrote:
> That was the general feeling. In that case there are several questions:
> 1. What should be done when a client is writing to a non-client area?
>    It is wrong to put it in the client area (the way it is done now).
>    Your suggested hack works when the string is few pixels above the 
>    client area, but is makes no sense when it is below.

Well what's happening is that in managed mode GetDCEx( DCX_WINDOW)
gets a dc with its top starting at the bottom of the window
decoration. The apps assumes that the top is the top of the caption
and starts drawing on it, so everything appears a caption height too
low.  Maybe what we should do is to set dc->OrgY to -(caption height).
At least this should hide the draw attempts to the caption.

If the app used SetWindowText in the first place we wouldn't have this
problem ;)

Huw.
-- 
   Dr. Huw D M Davies              | Clarendon Laboratory
   [EMAIL PROTECTED]      | Parks Road
   Tel: +44 1865 272390            | Oxford OX1 3PU
   Fax: +44 1865 272400            | UK

Reply via email to