FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper SETFOREGRO
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
SETFOREGRO
Posted: Wed Jul 26, 2006 05:32 PM

Link error.
Which lib do I have to use?

Thanks in advance
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: SETFOREGRO
Posted: Wed Jul 26, 2006 08:10 PM
Try this:

DLL32 FUNCTION SETFOREGROUNDWINDOW( hWnd AS LONG ) AS BOOL;
      PASCAL FROM "SetForegroundWindow" LIB "user32.dll"


EMG
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
SETFOREGRO
Posted: Thu Jul 27, 2006 06:44 AM

Thank you.
ShowWindow(hWnd,9)
setFocus(hWnd)
SETFOREGRO(hWnd)
This works fine but not with VISTA.
If the WINDOW is MINIMIZED ShowWindow(hWnd,9) does not work.
Regards
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
SETFOREGRO
Posted: Thu Jul 27, 2006 06:48 AM

It seems a bug in Windows Vista. It is Microsoft responsibility to correctly implement their Windows API. :-)

EMG

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
SETFOREGRO
Posted: Thu Jul 27, 2006 06:23 PM

Thank you Enrico,
sure you are right - but no one would to believe us.

Regards
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
SETFOREGRO
Posted: Thu Jul 27, 2006 06:35 PM

Otto,

If you provide a reduced and self contained PRG sample, then we will be able to quickly compile it and test it and offer you a solution for it. Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
SETFOREGRO
Posted: Thu Jul 27, 2006 08:15 PM

Continue the discussion