Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Converting Unicode data from the Clipboard to a character string using a given code page
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Custom GDI+ class
Establishing connection using the SQLDriverConnect
Custom FTP Class for Visual FoxPro application
Detecting changes in connections to removable drives (VFP9)
Splash Screen for the VFP application
Winsock: sending email messages (SMTP, port 25)
How to create non-blocking Winsock server
How to print a bitmap file
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Sending email messages with Simple MAPI
Peer-to-peer LAN messenger built with Mailslot API functions
Custom HttpRequest class (WinINet)
How to create MD-5 and SHA-1 hash values from a string
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Displaying bitmap using the AlphaBlend function
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Enumerating data formats currently available on the clipboard
How to put a vertical text scrolling on the form (a movie cast)
Mapping and disconnecting network drives
How to prevent users from accessing the Windows Desktop and from switching to other applications
Using FlashWindowEx to flash the taskbar button of the VFP application

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
This code sample shows how to turn user to the monitor`s screen by flashing the icon of an application in the Windows taskbar. There are several other ways of alerting the user using various visual effects:

  • Flashing caption of a VFP application in the Windows task bar using FlashWindow
  • Shaking VFP form controls
  • Placing On-screen Alert on top of all windows
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    1263 bytes  
    Created: 2002-01-29 22:56:25  
    Modified: 2012-04-27 16:14:04  
    Visits in 7 days: 160  
    Listed functions:
    FlashWindowEx
    GetActiveWindow
    Printer friendly API declarations
    My comment:
    This is an asynchronous function, that means it returns immediately after beginning the flashing.

    Once the handle of a window is known, it is possible to flash the window with a caption and/or taskbar button.

    Another code sample shows how to enumerate handles for the child windows of the main VFP window. Apply the FlashWindowEx to any of these windows and watch the result.

    * * *
    The FlashWindowManager class shown here once added to C# WinForm project automatically adds FlashWindow and FlashStop extension methods to every form in the project.

    With fairly small changes the FlashWindowManager class can be used with .NET WPF forms.
    public static void FlashWindow(
            this Window window,
            FlashWinFlags flags = FlashWinFlags.FlashAll,
            int count = int.MaxValue,
            nt timeout = 0)
    {
            var windowInteropHelper = new WindowInteropHelper(window);
            FlashWindow(windowInteropHelper.Handle, flags, count, timeout);
    }
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.226.5.29)
    4 sec.Function: 'FindWindowEx'
    Function group: 'Window'
    1.47 hrs.Example: 'Retrieving names for the registered clipboard formats'
     Example: 'GDI+: printing vertical text on VFP reports via generated images (VFP9)'
    2.86 hrs.Function: 'CeDeleteFile'
    3.1 hrs.Gallery
    Page 8
    7.06 hrs.Example: 'GDI+: printing vertical text on VFP reports via generated images (VFP8)'
     Example: 'Drawing icons associated with the VFP main window'
    17.15 hrs.Example: 'Testing Clipboard functions: emptying the clipboard'
     Function: 'AVIFileOpen'
    22.91 hrs.Function: 'NetScheduleJobEnum'
    Function group: 'Network Management'
    Google
    Advertise here!