... function GetAllMonitorRect()
local nTotalMon
local n
local aRect
local aMonitors := {}
if ( nTotalMon := CountMonitors() ) > 1
aRect = GetWndRect( GetDesktopWindow() )
AAdd( aMonitors, { 1, aRect } )
for n = 2 to nTotalMon
aRect = GetRectNextMonitor( aRect )
AAdd( aMonitors, { n, aRect ...
Search found 35 matches: getwndrect
Searched query: getwndrect
- Fri Oct 04, 2024 4:03 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Usar dos monitores, mostrar cosas diferentes
- Replies: 8
- Views: 1869
- Wed Sep 25, 2024 6:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 2
- Views: 579
GetDesktopWindow() on dual monitor system.
When I ask for the desktop windows on my dual monitor system I get the main monitor by GetWndRect( GetDesktopWindows() ). Is there a way to the the second or n monitors as well. I am trying to display multiple dialogs across the screens for a scheduling app and need to know how far I can go to the ...
- Wed Sep 25, 2024 6:46 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 1728
GetDesktopWindow() on dual monitor system.
When I ask for the desktop windows on my dual monitor system I get the main monitor by GetWndRect( GetDesktopWindows() ). Is there a way to the the second or n monitors as well. I am trying to display multiple dialogs across the screens for a scheduling app and need to know how far I can go to the ...
- Mon Aug 01, 2022 11:48 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: call DLL under FiveWin
- Replies: 7
- Views: 1114
Re: call DLL under FiveWin
hi Antonio,
i want to use "as much old Code" as possible so i like to know how under FiveWin, thx
Yes ... just a Sample for Xbase++ and HMG SyntaxAntonio Linares wrote:In FWH you have function GetWndRect( hWnd ) --> aRect
i want to use "as much old Code" as possible so i like to know how under FiveWin, thx
- Mon Aug 01, 2022 11:37 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: call DLL under FiveWin
- Replies: 7
- Views: 1114
Re: call DLL under FiveWin
Dear Jimmy,
In FWH you have function GetWndRect( hWnd ) --> aRect
In FWH you have function GetWndRect( hWnd ) --> aRect

- Sat Oct 19, 2019 3:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to read position and size of a dialog box (solved)
- Replies: 5
- Views: 1155
Re: How to read position and size of a dialog box
... nRight := oRect:nRight
// restore the dialog to a saved position
oDlg:Move( nTop, nLeft, nRight - nLeft, nBottom - nTop )
Window :
aRect := GetWndRect( oWnd:hWnd )
nTop := aRect[ 1 ]
nLeft := aRect[ 2 ]
nBottom := aRect[ 3 ]
nRight := aRect[ 4 ]
nHeight := aRect[ 3 ] - aRect[ 1 ] + 1
nWidth ...
// restore the dialog to a saved position
oDlg:Move( nTop, nLeft, nRight - nLeft, nBottom - nTop )
Window :
aRect := GetWndRect( oWnd:hWnd )
nTop := aRect[ 1 ]
nLeft := aRect[ 2 ]
nBottom := aRect[ 3 ]
nRight := aRect[ 4 ]
nHeight := aRect[ 3 ] - aRect[ 1 ] + 1
nWidth ...
- Sat Oct 19, 2019 12:44 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to read position and size of a dialog box (solved)
- Replies: 5
- Views: 1155
Re: How to read position and size of a dialog box
From a post of Uwe :
aRect := GetWndRect(oWnd)
oBar := TExplorerBar():New( 0, aRect4 - 300, aRect4 + 720, aRect3 - 75, oWnd )
Mayby also on oDlg
aRect := GetWndRect(oWnd)
oBar := TExplorerBar():New( 0, aRect4 - 300, aRect4 + 720, aRect3 - 75, oWnd )
Mayby also on oDlg
- Thu Aug 31, 2017 2:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda DLL
- Replies: 24
- Views: 9244
Re: Ayuda DLL
... LIB|WINDOW
Error: Unresolved external '_HB_FUN_MEMOWRIT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|WINDOW
Error: Unresolved external '_HB_FUN_GETWNDRECT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|WINDOW
Error: Unresolved external '_HB_FUN_GETMEAITEM' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
Error: Unresolved external '_HB_FUN_MEMOWRIT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|WINDOW
Error: Unresolved external '_HB_FUN_GETWNDRECT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|WINDOW
Error: Unresolved external '_HB_FUN_GETMEAITEM' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
- Tue Apr 05, 2016 1:33 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Device context to file
- Replies: 4
- Views: 991
Re: Device context to file
hDeskTop:=GetWindowDc(FindWindow(...))
siz:=GetWndRect(hDeskTop)
hDC := CreateCompatibleDC( hDeskTop )
hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1])
hOldBmp:=SelectObject(hDc, hBmp)
BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], hDeskTop, 0, 0, 13369376) //SCRCOPY
oImg ...
siz:=GetWndRect(hDeskTop)
hDC := CreateCompatibleDC( hDeskTop )
hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1])
hOldBmp:=SelectObject(hDc, hBmp)
BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], hDeskTop, 0, 0, 13369376) //SCRCOPY
oImg ...
- Wed Dec 03, 2014 8:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Save dialog coordinates then redisplay same place
- Replies: 26
- Views: 6390
Re: Save dialog coordinates then redisplay same place
... are using two different monitors you may have different resolutions to deal with.
You can get the current dialog coordinates (in pixels) using getWndRect(oDlg:hWnd). Then you should be able to use oDlg:move() to restore its location (because Move() uses pixels). This should work for a single ...
You can get the current dialog coordinates (in pixels) using getWndRect(oDlg:hWnd). Then you should be able to use oDlg:move() to restore its location (because Move() uses pixels). This should work for a single ...
- Mon Nov 03, 2014 2:06 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: dialog:move( ntop,nleft,nwidth,nheight)
- Replies: 9
- Views: 1876
Re: dialog:move( ntop,nleft,nwidth,nheight)
Thank Antonio and CharlesKwon!
GetWndRect(odlg:hwnd) can be used to save the postion, while saving odlg:ntop,odlg:nleft,.. no use.
ACTIVATE DIALOG oDlg
on INIT (odlg:move(ntop1,nleft1,nright1-nleft1+1,nbottom1-ntop1+1),.t.)
VALID (arect:=GetWndRect(odlg:hwnd),;
oserver:query("insert into ...
GetWndRect(odlg:hwnd) can be used to save the postion, while saving odlg:ntop,odlg:nleft,.. no use.
ACTIVATE DIALOG oDlg
on INIT (odlg:move(ntop1,nleft1,nright1-nleft1+1,nbottom1-ntop1+1),.t.)
VALID (arect:=GetWndRect(odlg:hwnd),;
oserver:query("insert into ...
- Fri Aug 29, 2014 8:16 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to save and restore windows position and size?
- Replies: 2
- Views: 530
Re: How to save and restore windows position and size?
Hi,
You can use function
aKoordinat := GetWndRect(oDlg:hWnd)
Best regards,
You can use function
aKoordinat := GetWndRect(oDlg:hWnd)
Best regards,
- Wed Apr 30, 2014 3:02 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Resource Dialogs change with PC's
- Replies: 6
- Views: 1783
Re: Resource Dialogs change with PC's
... rsl1, aRect[2]*rsl0,(aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. )
// ntop,nleft,nbottom,nright
end case
next
// aRect = GetWndRect( ::hWnd )
::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. )
if ::lCentered
WndCenter( ::hWnd )
else
if Empty( ::cResName ...
// ntop,nleft,nbottom,nright
end case
next
// aRect = GetWndRect( ::hWnd )
::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. )
if ::lCentered
WndCenter( ::hWnd )
else
if Empty( ::cResName ...
- Sat Oct 26, 2013 9:44 am
- Forum: Off Topic / Otros temas
- Topic: "Snap" for Clipper
- Replies: 7
- Views: 10414
Re: "Snap" for Clipper
... WINDOW.PRG 626 1443
GETWNDAPP() (function in ?)
WINDOW.PRG 2610 3798
GETWNDDEFAULT() (function in WINDOW.PRG)
WINDOW.PRG 3224! 3425 3426
GETWNDRECT() (function in ?)
WINDOW.PRG 1707
GLOBALFREE() (function in ?)
WINDOW.PRG 2017
GLOBALGETATOMNAME() (function in ?)
WINDOW.PRG 1456 1457 ...
GETWNDAPP() (function in ?)
WINDOW.PRG 2610 3798
GETWNDDEFAULT() (function in WINDOW.PRG)
WINDOW.PRG 3224! 3425 3426
GETWNDRECT() (function in ?)
WINDOW.PRG 1707
GLOBALFREE() (function in ?)
WINDOW.PRG 2017
GLOBALGETATOMNAME() (function in ?)
WINDOW.PRG 1456 1457 ...
- Fri Aug 16, 2013 11:16 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: XBROWSE determine FOOTER coordinates
- Replies: 9
- Views: 2568
Re: XBROWSE determine FOOTER coordinates
... 125; ACTIVATE DIALOG oDlgENDIFRETURN ALLTRIM( cCitaj )
Probably need some combination with oBrw:oCol:DataRect() or GetClientRect() or GetWndRect() ... or some other solution
Or Can i use something like this ?
DEFINE DIALOG oDlg OF oCol:oFooter .... ????
I will be verry grateful for some ...
Probably need some combination with oBrw:oCol:DataRect() or GetClientRect() or GetWndRect() ... or some other solution
Or Can i use something like this ?
DEFINE DIALOG oDlg OF oCol:oFooter .... ????
I will be verry grateful for some ...