Maximize a window under Windows

Quote
Marco Peyer wrote:
> Hello!
> I'm using Turbo Pascal for Windows 1.5 and I have a little problem: I've
> defined a new paint-routine which does use the attr.w and attr.h values. But
> when the user does maximize the window, these values don't match anymore. Is
> there a special procedure / method to get informed about the current size of
> the window?

> Marco

Hi!

  GetClientRect( HWnd, TRect) to get client rectangle ( window excluding
borders, caption and menu) or GetWindowRect( HWnd, TRect) to get window
rectangle

  Dmitri

--
-------------------------------------------------------------------
           Sh.t happens, but why it always happens to us?
-------------------------------------------------------------------
 Dmitri Poujlivyi                        dmi...@god.bel.alcatel.be
 Research Integration Team                  De Villermontstraat 38
 Alcatel Bell                               2550 Kontich   Belgium
 tel (+32/3) 450 3376                         fax (+32/3) 450 3551
-------------------------------------------------------------------