` Printed Icetips Article

Icetips Article



Par2: Getting window position
2003-09-21 -- Lee White
 
--map--

MODULE('Window API')

GetWindowRect(LONG,*GROUP),BOOL,RAW,PASCAL,NAME('GetWindowRect'),PROC,DL
L(1)
END


--local data--

RECT                GROUP
l                     LONG
t                     LONG
r                     LONG
b                     LONG
                    END
--code--

  GetWindowRect( Window{PROP:Handle}, RECT )
  WinX = RECT.l
  WinY = RECT.t
  WinW = RECT.r - RECT.l
  WinH = RECT.b - RECT.t



Printed May 2, 2024, 10:52 am
This article has been viewed/printed 35119 times.