Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to print a bitmap file
How to display Windows On-Screen Keyboard
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
System Image List Viewer
Winsock: sending email messages (SMTP, port 25)
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
The window and its ancestors
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
Custom HttpRequest class (WinHTTP)
Custom FTP Class for Visual FoxPro application
Using EnumPrinters function to enumerate locally installed printers
Mapping and disconnecting network drives
How to download a file from the FTP server using FtpGetFile
Displaying the associated icons and descriptions for files and folders
How to activate Windows Calculator
Displaying icons in the system tray (VFP9)
Drawing Windows predefined bitmaps using the LoadBitmap functions
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Confining Windows calculator inside the VFP main window
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: 171  
    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 (67.202.9.192)
    14.93 min.Example: 'Printing text with the Escape function'
    14.98 min.Function: 'GetDlgItem'
    Function group: 'Dialog Box'
    1.19 hrs.Example: 'Starting an external application in VFP using WinExec'
    1.2 hrs.
    Function group: 'Brush'
    1.64 hrs.Function: 'ChangeClipboardChain'
    Function group: 'Clipboard'
     Function: 'GdiFlush'
    Function group: 'Painting and Drawing'
    5.11 hrs.Example: 'Using shared memory to exchange data between two FoxPro applications'
    5.12 hrs.Function: 'IsNetworkAlive'
    Function group: 'System Information'
     Function: 'SQLDisconnect'
    5.77 hrs.Example: 'Loading a string resource from an executable file'
    Google
    Advertise here!