Information générale
Catégorie:
Fonctions Windows API
Versions des environnements
>>>>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.
>
>Then the least work is involved with creating the form beforehand - create a form class with the properties you want and some code to position and size it the way you want, perhaps store the position and size in some table, and just add a createobject line before the browse, and add the ... window (loForm.name) in the browse command. That's about six words per browse.
tsk... too much typing ;-)
create a function windowedBrowse (tcParam) doing all that, search for browses, replacing them with "= windowedBrowse([" and add ending "])" to the end of program line, perhaps via macro ;-))
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement