Search found 47 matches: getdesktopwindow

Return to advanced search

Re: FWDBG - tamaño de la ventana

Saludos,
En mi caso tomo las coordenadas del video:
aCoord:=GetCoors( GetDesktopWindow() )

Luego creo el dialogo o MDI segun la capacidad del video.
by jnavas
Wed Sep 27, 2023 1:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWDBG - tamaño de la ventana
Replies: 19
Views: 1089

Re: Consulta sobre centrar un dialogo.

... cGrad := PadR( GradStr( BrwGrad( oBrw ) ), 128 ) ACTIVATE DIALOG oDlg on INIT (BtnBarNew( oBrw, @oDlg, aBotones),oDlg:Move( oDlg:nTop, ( WndWidth( GetDesktopWindow() ) / 2 ) - ( oDlg:nWidth / 2 ), oDlg:nWidth, oDlg:nHeight, .T. )) // ACTIVATE DIALOG oDlg on INIT (BtnBarNew( oBrw, @oDlg, aBotones),oDlg:Move( ...
by José Camilo
Tue Aug 01, 2023 1:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre centrar un dialogo.
Replies: 9
Views: 436

Re: Consulta sobre centrar un dialogo.

Prueba asi:

oDlg:Move( 50, ( WndWidth( GetDesktopWindow() ) / 2 ) - ( oDlg:nWidth / 2 ), oDlg:nWidth, oDlg:nHeight, .T. )

y dime si el diálogo se posiciona hacia lo alto de la pantalla, gracias
by Antonio Linares
Mon Jul 31, 2023 4:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre centrar un dialogo.
Replies: 9
Views: 436

Re: Consulta sobre centrar un dialogo.

Estimado José,

Prueba así:

oDlg:Move( oDlg:nTop, ( WndWidth( GetDesktopWindow() ) / 2 ) - ( oDlg:nWidth / 2 ), oDlg:nWidth, oDlg:nHeight, .T. )
by Antonio Linares
Sun Jul 30, 2023 9:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre centrar un dialogo.
Replies: 9
Views: 436

Re: Clipboard without a window

Massimo,

Please check that you have this code in Class TClipboard

METHOD Open() INLINE OpenClipboard( If( ::oWnd == nil, GetDeskTopWindow(), ::oWnd:hWnd ) )
by Antonio Linares
Sat May 15, 2021 3:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Clipboard without a window
Replies: 3
Views: 549

Re: problema con DrawBitmap() usando tCodeBars

... ) ::SetFlags( nFlags ) return Self //--------------------------------------// METHOD Build() CLASS TCodeBars local hBmpOld local hDCDesk := GetDC( GetDesktopWindow() ) local hDCMem := CreateCompatibleDC( hDCDesk ) local hBrush := CreateSolidBrush( 0 ) local hBack := CreateSolidBrush( CLR_WHITE ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1023

harbour v1.x -> v.3x Error

...      RETURN NIL    STATIC FUNCTION AppDeskTop()       LOCAL oDeskTop := WvgWindow():New()       oDeskTop:hWnd := Win_GetDesktopWindow()      // ERROR       #if 0       oDeskTop:hWnd := HB_INLINE(){          hb_retnint( ( LONG ) GetDesktopWindow() ...
by Jimmy
Thu Oct 17, 2019 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: harbour v1.x -> v.3x Error
Replies: 2
Views: 506

Re: Pritpal, HBIDE developer, assists us to use it with FWH

...  REQUEST HB_GT_WGU   RETURN NILSTATIC FUNCTION AppDeskTop()   LOCAL oDeskTop := WvgWindow():New()   oDeskTop:hWnd := Win_GetDesktopWindow()   #if 0   oDeskTop:hWnd := HB_INLINE(){      hb_retnint( ( LONG ) GetDesktopWindow() );  ...
by Jimmy
Thu Oct 17, 2019 7:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Pritpal, HBIDE developer, assists us to use it with FWH
Replies: 293
Views: 99074

Re: ¿Dialogo que funcione como ventana?

oDlg:bInit:={||oDlgAjustar(oDlg)
ACTIVATE DIALOG oDlg

RETURN .T.

FUNCTION oDlgAjustar(oDlg)
LOCAL aCoors:=GetCoors( GetDesktopWindow() )
oDlg:Move(0,0,aCoors[3],aCoors[4],.T.)
RETURN .T.
by jnavas
Wed Dec 05, 2018 3:00 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Dialogo que funcione como ventana?
Replies: 7
Views: 1064

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6332

Re: Save all the Screen to BMP

function save_scr()
LOCAL hBmp, hDib,h,cFile := "screen.bmp"
h:=getdesktopwindow()
hBmp := WndBitmap(h)
hDib := DibFromBitmap( hBmp )
DibWrite( cFile, hDib )
GloBalFree( hDib )
DeleteObject( hBmp )
RETURN nil
*

* Now i'm tring to convert the BMP file to JPG file....any help ?

by Romeo
Tue Oct 13, 2015 9:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save all the Screen to BMP
Replies: 13
Views: 1848

Re: Save all the Screen to BMP

GetDesktopWindow() returns the handle for the entire screen
by Antonio Linares
Thu Oct 08, 2015 8:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save all the Screen to BMP
Replies: 13
Views: 1848

Re: How to keep a appl. on top of the dialog on resize ?

... is not running !", "Attention" ) ENDIF RETURN NIL // ---------- 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 ...
by ukoenig
Sat Aug 01, 2015 1:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2436

Re: (APORTE) PickColor con Fuentes para sus Sistemas

y si en vez usar odlg:capture() usas SetCapture( GetDesktopWindow() ) , ¿ no te captura toda la pantalla ? .
La duda me surge si captura los pixeles del desktop o los de las ventanas debujadas sobre él .
by mastintin
Sun Jul 26, 2015 9:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: (APORTE) PickColor con Fuentes para sus Sistemas
Replies: 15
Views: 3665

Re: bmpfromico

... ... of a file then I saw there is a function Made from Daniel HB_FUNC( BMPFROMICON ) { HICON hIcon = ( HICON ) hb_parnl( 1 ); HDC HDCMem = GetDC( GetDesktopWindow() ); HDC hDC = CreateCompatibleDC( HDCMem ); HBITMAP hBitmap = CreateCompatibleBitmap(HDCMem, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON)); ...
by Silvio.Falconi
Fri Jul 03, 2015 3:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8985
Next

Return to advanced search