Search found 41 matches: owndfromhwnd

Return to advanced search

Re: How to find out the IDs of controls and types?

oWndFromHwnd() returns object control too. Try it !
by paquitohm
Tue Jan 09, 2024 8:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1847

Re: How to find out the IDs of controls and types?

hi,
paquitohm wrote:Using oWndFromHwnd() function

thx for Answer

i do want Object of Controls not Object of Windows.
by Jimmy
Tue Jan 09, 2024 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1847

Re: How to find out the IDs of controls and types?

Hi,

Using oWndFromHwnd() function

Code: Select all  Expand view
// Example
oWnd:= oWndFromHwnd( GetActiveWindow() )
 

Regards
by paquitohm
Tue Jan 09, 2024 8:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1847

Re: Can I get object from handle?

I think oWndfromhWnd() function can only find objects within the same application. Yes, you are right. Hi Mr. Rao, Is it possible to save the oWnd object in first application and read it from second application. With this read ...
by Horizon
Thu Apr 13, 2023 2:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can I get object from handle?
Replies: 15
Views: 1326

Re: Can I get object from handle?

I think oWndfromhWnd() function can only find objects within the same application.


Yes, you are right.
by nageswaragunupudi
Thu Apr 13, 2023 1:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can I get object from handle?
Replies: 15
Views: 1326

Can I get object from handle?

... )        hWnd_W := GetWindow(hWnd,0)        ? hWnd, hWnd_W, "hWnd, hWnd from GetWindow()"                         oWnd1 := oWndFromhWnd(hWnd)        xbrowser oWnd1         ? oWnd1, oWnd1 == nil        IF oWnd1 != nil            oWnd1:SetFocus()            ...
by Horizon
Thu Apr 13, 2023 11:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can I get object from handle?
Replies: 15
Views: 1326

Re: Process by window handle

What does oWndFromHwnd have to do with it ?
I'm looking through the Enum list of windows and wanted to find out which process a particular window belongs to
by Natter
Mon Dec 20, 2021 12:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process by window handle
Replies: 3
Views: 314

Re: Process by window handle

oWndFromHwnd()
by hmpaquito
Mon Dec 20, 2021 11:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process by window handle
Replies: 3
Views: 314

Re: New FTDN July 2018 (FWH 18.07)

... con MSSQL. - Funciónn FW_ValToSQL( cVar ): Solucionado el problema de compatibilidad con MSSQL donde cVal incluye doble comillas. * Función oWndFromhWnd( hWnd ) no funcionaba cuando hWnd pertenece a un cuadro de diálogo modal. Ahora funciona con diálogos modales también. * FWMARIADB: - Mejora: ...
by Antonio Linares
Fri Sep 21, 2018 8:58 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN July 2018 (FWH 18.07)
Replies: 5
Views: 2806

New FTDN July 2018 (FWH 18.07)

... of pivot functions with MSSQL. - function FW_ValToSQL( cVar ): Fixed compatibility issue with MSSQL where cVal includes double quotes. * function oWndFromhWnd( hWnd ) was not working when hWnd belongs to a modal dialog. Now it works for modal dialogs also. * FWMARIADB: - Enhancement: method FieldGet( ...
by Antonio Linares
Fri Sep 21, 2018 8:42 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN July 2018 (FWH 18.07)
Replies: 5
Views: 2806

Re: Antonio: cGetDir and ::shadow()

... Terminated at: 2018-04-23 14:22:53 Unrecoverable error 9015: Symbol item expected from hb_vmDo() Called from ASCAN(0) Called from OWNDFROMHWND(3695) in .\source\classes\WINDOW.PRG Called from FWSKINBTNPAINT(72) in C:\prg_allgemein\skins.prg Called from FWSKINBTNFOCUSED(363) in ...
by byte-one
Tue Apr 24, 2018 8:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio: Differences between BORLAND and VCC
Replies: 32
Views: 6401

Re: access to window via its :hwnd

... Test3( VAL1, VAL2 ) local a, b, c, d, e, f local hwnd := val1 altd(1) altd() a := val2 b := a altd(1) altd() c := d altd(1) altd() // Function oWndFromHwnd( hWnd ) --> oWnd b := oWndFromHwnd( hWnd ) return nil **************************************************** #pragma BEGINDUMP #include ...
by don lowenstein
Sat Jan 06, 2018 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: access to window via its :hwnd
Replies: 10
Views: 1778

Re: access to window via its :hwnd

... 'Dialog Handle Passed' HbDLLEntry2( "TEST3", hItem1, hitem2 ) *************** within babudll.prg, the handle is properly passed. Using, oWndFromHwnd( hWnd ) a problem exists, because that function searches the aWindows within the context of the dll. The window was created in the calling ...
by don lowenstein
Fri Jan 05, 2018 11:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: access to window via its :hwnd
Replies: 10
Views: 1778

Re: access to window via its :hwnd

Don,

function oWndFromHwnd( hWnd ) --> oWnd

If you use:

HbDLLEntry2( "TEST2", oWnd, nil )

then you will have access to oWnd from HbDLLEntry2()
by Antonio Linares
Thu Jan 04, 2018 9:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: access to window via its :hwnd
Replies: 10
Views: 1778

Re: Save all the Screen to BMP

Try this:

oWndFromHwnd( GetFocus() ):SaveToBmp( cFile )
by Antonio Linares
Wed Oct 07, 2015 4:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save all the Screen to BMP
Replies: 13
Views: 1848
Next

Return to advanced search