FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour getActiveWindow()?
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
getActiveWindow()?
Posted: Mon Sep 08, 2008 02:22 PM
Dear Antonio and friends.

I get the handle of dialog when I call the function getActiveWindow(). But, when I try to use oWndFromhWnd( getActiveWindow() ), this function returns to me nothing! Nil.
getActiveWindow() -> 2427216
oWndFromhWnd(  getActiveWindow() ) -> Nil

Why? I want to get the object dialog, of the active dialog in moment, on any location of my application!
It's possible?

Thanks!!
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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
getActiveWindow()?
Posted: Mon Sep 08, 2008 07:38 PM

Júlio,

Is it a modal dialog ? You can use GetWndDefault()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
getActiveWindow()?
Posted: Tue Sep 09, 2008 11:03 AM
Antonio Linares wrote:Júlio,

Is it a modal dialog ? You can use GetWndDefault()

Yes, it's a modal dialog! I will try your solution Antonio.
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