Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to find out how to imitate WinXP behavior....
Message
De
17/02/2004 10:10:46
Lamar Glover
Southeastern Apparel, Inc.
Dothan, Alabama, États-Unis
 
 
À
06/02/2004 12:41:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00874439
Message ID:
00877930
Vues:
15
Tracy,

Thanks for your help. Running your example code in a program works and provides the behavior I desire. But I am having a problem getting it to work in my application.

I have tried calling it from the form level. I have called it from initial program level. Nothing seems to work. I will be running this from a timer based on changing variables. Should I run the code you have in DECL in my initial program and then put the other code in the timer control?

This is my first attempt at using an API call.

Thanks for your time.

>An small example:
>
>
>DO decl
>LOCAL hWindow
>hWindow = GetActiveWindow()
>_SCREEN.WindowState = 1
>DO WHILE INKEY() <> 27
>	= FlashWindow (hWindow, 1)
>	= Sleep (250)
>	= FlashWindow (hWindow, 0)
>	= Sleep (100)
>ENDDO
>= FlashWindow (hWindow, 0)
>
>PROCEDURE  decl
>	DECLARE Sleep IN kernel32 INTEGER dwMilliseconds
>	DECLARE INTEGER GetActiveWindow IN user32
>
>	DECLARE INTEGER FlashWindow IN user32;
>		INTEGER hWnd, INTEGER bInvert
>
>
>
>>In WinXP Pro if you have multiple tasks running and one of your tasks requires imput such as a password the button on the task bar will begin to flash.
>>
>>We have an application that will run at all times in a minimized window. It will alert the user if action is necessary based on a timer.
>>
>>How can we imitate the WinXP behaviour so this application's task bar icon will flash.
>>
>>Any help would be appreciated.
Lamar Glover
DP Manager, Southeastern Apparel, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform