>>>>I'd like to get the position and size of an existing browse window. Could anyone tell me any API which gives me the information?
>>>>
>>>>The browse window is created by a normal BROWSE command without the "name" clause.
>>>>
>>>>TIA
>>>
>>>It may be a silly question, but why don't you use the Name clause?
>>
>>Because I want to write a program to re-position and resize the browse windows which were created by many old programs. Re-coding the old programs is possible but involves much work.
>
>Since a browse is not a "real" window, I think it's the only solution.
Browse is real API window
DECLARE INTEGER FindWindowEx IN user32 INTEGER, INTEGER, string ,string
LOCAL m.lcAlias,m.lii
m.lcAlias=LOWER(SYS(2015))
CREATE CURSOR (m.lcAlias) (XX000 I)
FOR m.lii=1 TO 20
INSERT INTO (m.lcAlias) (XX000) VALUES (m.lii)
NEXT
BROWSE NOWAIT
?TRANSFORM(FindWindowEx(_Screen.hwnd,0,NULL,m.lcAlias),"@0")
MartinaJ