Search found 15 matches: getwindowrect

Return to advanced search

Possible bug in some coordinates conversion

Hi Antonio how are you? I found a interesting bug in screen coordinates function (at least in windows 11): ---cut--- GetWindowRect( hWnd, &rct ); wWidth = rct.right - rct.left; wHeight = rct.bottom - rct.top; ---cut--- In windows 11 rct.right is 1374 and rct.left is -8, so 1374 ...
by toninhofwi
Sat Apr 30, 2022 8:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible bug in some coordinates conversion
Replies: 5
Views: 456

Al compiliar sbrowse TSBFUNCS.C me marca errores

... = _parni( 8 ) ; HDC hDC = GetDC( hWnd ) ; HFONT hOldFont ; int wMaxRight ; RECT rct ; if( hFont ) hOldFont = SelectObject( hDC, hFont ) ; GetWindowRect( hWnd, &rct ) ; wMaxRight = rct.right; rct.top += ( nHeightHead + nHeightSuper ) + ( wHeight * (wRow - 1) ) + 1 ; rct.bottom = rct.top ...
by noe aburto
Thu Aug 27, 2020 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Al compiliar sbrowse TSBFUNCS.C me marca errores
Replies: 1
Views: 278

Re: Save dialog coordinates then redisplay same place

James, from the MSDN, GetWindowRect() function: In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words, the pixel at (right, bottom) lies immediately ...
by Enrico Maria Giordano
Thu Dec 11, 2014 1:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5212

Problemas al crear la libreria TWBROWSE

... paSizes ); #endif #endif WORD wIndex = hb_parni( 4 ); WORD wCol = hb_parni( 5 ); WORD wMaxRight; LONG l; if( !wCol || wCol > wLen ) return; GetWindowRect( hWnd, &rct ); wMaxRight = rct.right - 2; wHeight = wLineHeight + 1 ; rct.top = rct.top + ( bDrawHeaders ? wHeaderHeight+1 : 0 ) + ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2842

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... paSizes ); #endif #endif WORD wIndex = hb_parni( 4 ); WORD wCol = hb_parni( 5 ); WORD wMaxRight; LONG l; if( !wCol || wCol > wLen ) return; GetWindowRect( hWnd, &rct ); wMaxRight = rct.right - 2; wHeight = wLineHeight + 1 ; rct.top = rct.top + ( bDrawHeaders ? wHeaderHeight+1 : 0 ) + ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2613

Re: Ribbon Limit

... and in vb6 Declare Function ClipCursor Lib "user32.dll" (lpRect As RECT) As Long on fwh We can try Arect:= GetWindowRect(odlg:hwn) clipcursor(Arect) but I not Know How call this function BUT It seem there is a function on c++ called clipcursor()
by MdaSolution
Mon Jan 25, 2010 11:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon Limit ---- RESOLVED!!!
Replies: 12
Views: 2070

Re: ToleAuto / OleWevent

Lailton,

Use it this way:

OleInvoke( cToolB:hObj, "GetWindowRect",@Left, @Top, @Right, @Bottom)
by Antonio Linares
Sun Aug 16, 2009 10:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ToleAuto / OleWevent
Replies: 20
Views: 4979

Re: ToleAuto / OleWevent

Lailton,

If you remove "@" from this line:

OleInvoke(cToolB,"GetWindowRect",@Left, @Top, @Right, @Bottom)

do you still get the GPF ?
by Antonio Linares
Sun Aug 16, 2009 7:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ToleAuto / OleWevent
Replies: 20
Views: 4979

Re: ToleAuto / OleWevent

Lailton,

> OleInvoke(cToolB,"GetWindowRect",@Left, @Top, @Right, @Bottom) // error this line

What error do you get ?
by Antonio Linares
Sun Aug 16, 2009 6:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ToleAuto / OleWevent
Replies: 20
Views: 4979

Re: Class ActiveX

... la ToleWevent it´s solved. entos necessito mucho continuar con ela, pero necessito tambem solver este erro que estas me retornando en la chamada GetWindowRect, creio que es o problem en passar variables @VAR, tu disse que alterando las linhas estarias solved, poderia manda-me las modificaciones ...
by lailton.webmaster
Fri Aug 07, 2009 8:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Class ActiveX
Replies: 11
Views: 2836

Re: Class ActiveX

... Description Gets the bounding rectangle of the command bar. This is the area of the window that the command bar occupies Syntax Public Sub GetWindowRect( _ ByRef Left As Long, _ ByRef Top As Long, _ ByRef Right As Long, _ ByRef Bottom As Long _ ) Parameters Left The left point of the window ...
by lailton.webmaster
Tue Aug 04, 2009 11:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Class ActiveX
Replies: 11
Views: 2836

... = ( HDC ) _parnl( 2 ) ; HWND hWndParent = GetParent( hWnd ) ; HDC hDcParent = GetDCEx( hWndParent, NULL, DCX_PARENTCLIP ) ; RECT rct ; POINT pt ; GetWindowRect( hWnd, &rct ) ; pt.y = rct.top ; pt.x = rct.left ; ScreenToClient( hWndParent, &pt ) ; BitBlt( hDC, 0, 0, rct.right - rct.left, ...
by antolin
Sat Dec 20, 2008 11:41 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: bitmap transparente
Replies: 4
Views: 1252

... función sólo hay que cambiar estas líneas: HDC hDC = GetDC( hWnd ); ... GetClientRect( hWnd, &rct ); por HDC hDC = GetWindowDC( hWnd ); ... GetWindowRect( hWnd, &rct ); para que imprima la ventana completa, incluida su título. Muchas gracias Antonio... me faltaba GetWindowDC ;-) Lo probare
by Antonio Martinez
Thu Dec 06, 2007 10:28 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Hardcopy
Replies: 2
Views: 528

... función sólo hay que cambiar estas líneas: HDC hDC = GetDC( hWnd ); ... GetClientRect( hWnd, &rct ); por HDC hDC = GetWindowDC( hWnd ); ... GetWindowRect( hWnd, &rct ); para que imprima la ventana completa, incluida su título.
by Antonio Linares
Fri Nov 30, 2007 8:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Hardcopy
Replies: 2
Views: 528

Transformar/Convertir Código em C para [x]Harbour

... ); WORD wOffset = _parnl( 16 ); if( ! wPrompts ) return; if( wBmps ) wInc = FLD_BMP; #ifdef __XPP__ SysRefresh(); // process pending msgs #endif GetWindowRect( hWnd, &rct ); wHeight = rct.bottom - rct.top; wWidth = rct.right - rct.left; if( ! wWidth ) return; if( ! wSize ) wSize = wWidth ...
by karinha
Tue May 02, 2006 1:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Transformar/Convertir Código em C para [x]Harbour
Replies: 3
Views: 1019

Return to advanced search