Get the Active window/dialog?

Get the Active window/dialog?

Postby JC » 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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Fri Aug 22, 2008 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JC » Fri Aug 22, 2008 4: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests