I want to define the position and size of a Word-window out of my application.
I use these functions :
1. To find which is the Word-window :
FUNCTION FindWnd(cTitle)
LOCAL hWnd := GETWINDOW(GETDESKTOPWINDOW(),GW_CHILD)
WHILE hWnd <> 0
IF UPPER(cTitle) $ UPPER(GETWINDOWTEXT(hWnd))
RETURN(hWnd)
ENDIF
hWnd := GETWINDOW(hWnd,GW_HWNDNEXT)
ENDDO
RETURN(NIL)2. To define the position and the size of the Word-window :
LOCAL cWnd := FindWnd("WORD")
IF !EMPTY(cWnd)
BringWindowToTop(cWnd)
cWnd:Top := US->WORDTOP
cWnd:Left := US->WORDLEF
cWnd:Width := US->WORDWID
cWnd:Height := US->WORDHEI
ENDIFUnfortunately I got an error "No exporterd method : top".
How can I establish the positioning of a Word-window ?
Thanks a lot for any help.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773