Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Custom GDI+ class
Mapping and disconnecting network drives
Winsock: sending email messages (SMTP, port 25)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Converting Unicode data from the Clipboard to a character string using a given code page
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Disk in drive A:
How to display the Properties dialog box for a file (ShellExecuteEx)
Enumerating network resources
Detecting changes in connections to removable drives (VFP9)
How to download a file from the FTP server using FtpGetFile
Splash Screen for the VFP application
Using Font and Text functions
Using EnumPrinters function to enumerate locally installed printers
How to play AVI file on the _screen
Retrieving the name of the network resource associated with a local device
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Creating a console window for Visual FoxPro application
Creating irregularly shaped FoxPro form using transparency color key
How to put a horizontal text scrolling on the form (a news line)
Displaying icons in the system tray (VFP9)

User rating: 9.83/10 (6 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 relies on extended BINDEVENT() functionality added in VFP9.

The TaskbarStatus object adds an icon to the systray and receives notifications on mouse events occurring in the bounding rectangle of the icon, and on balloon events (displayed, clicked, timeout).





See also:
  • Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form.
  • Adding user-defined items to the Control Menu of VFP form (requires VFP9)
  • Displaying Windows Shell Icons in ListView control
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 9.83/10 (6 votes)
    Rate this code sample:
    • ~
    9114 bytes  
    Created: 2001-12-24 17:57:28  
    Modified: 2011-04-06 08:57:27  
    Visits in 7 days: 121  
    Listed functions:
    CallWindowProc
    DestroyIcon
    ExtractAssociatedIcon
    GetModuleFileName
    GetWindowLong
    LoadImage
    Shell_NotifyIcon
    Printer friendly API declarations
    My comment:
    The NOTIFYICONDATA structure is simplified here, considering the (_WIN32_IE < 0x0500) condition. MSDN Library contains complete description of this structure

    * * *
    This code sample calls LoadImage or ExtractAssociatedIcon to obtain HICON values. The other possible ways of loading icons can be implemented through calls to SHGetStockIconInfo, SHGetFileInfo, ExtractIcon and GetIconInfo.

    Storing DLL icon resources in .ICO files


    * * *
    Microsoft .NET Framework conveniently includes NotifyIcon control that is to be simply dropped on Windows form.


    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.234.126.92)
    4 sec.Example: 'Enumerating servers of the specified type (e.g. SQL Server) in the primary domain'
    48.9 min.Function: 'CeWriteFile'
    Function group: 'Remote Application Programming (RAPI)'
    2.43 hrs.Example: 'Printing text on the main VFP window'
    4.32 hrs.Function: 'ExitWindows'
    1 day(s)Function: 'StrTrim'
    Function group: 'String'
     Function: 'GetProp'
     Function: 'MonitorFromWindow'
     Example: 'Enumerating printer drivers installed'
     Example: 'Converting strings between ANSI and OEM'
    2 day(s)Example: 'Setting the date and time that a file was created'
    Google
    Advertise here!