Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API to get the position of a browse window
Message
 
To
14/11/2017 02:30:39
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01655526
Message ID:
01655579
Views:
51
>>>>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform