FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Get the Active window/dialog?
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Get the Active window/dialog?
Posted: Thu Aug 21, 2008 11:39 AM
The best way for get the active window or dialog before activate any another dialog is with the function getActiveWindow() or getWndDefault()

How is the difference really?
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Get the Active window/dialog?
Posted: Fri Aug 22, 2008 02:36 PM
GetActiveWindow() --> hWnd

It is a Windows API function that returns the Windows handle to the active window associated with the thread that calls the function.

GetWndDefault() --> oWnd

It is a FWH function that returns the currently managed window or dialog object (FWH object).
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Get the Active window/dialog?
Posted: Fri Aug 22, 2008 04:03 PM
Antonio Linares wrote:GetActiveWindow() --> hWnd

It is a Windows API function that returns the Windows handle to the active window associated with the thread that calls the function.

GetWndDefault() --> oWnd

It is a FWH function that returns the currently managed window or dialog object (FWH object).


Thank Linares! This is the answer!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9

Continue the discussion