getActiveWindow()?

getActiveWindow()?

Postby JC » Mon Sep 08, 2008 2: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.
Code: Select all  Expand view  RUN
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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Mon Sep 08, 2008 7:38 pm

Júlio,

Is it a modal dialog ? You can use GetWndDefault()
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 » 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
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 76 guests

cron