Using Win32 functions in Visual FoxPro Image Gallery
Resource
..msdn
BeginUpdateResource
CopyImage
EndUpdateResource
FindResource
LoadImage
LoadResource
LoadString
LockResource
SizeofResource
UpdateResource
Code examples:
Bitmap Class for Visual FoxPro application
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Displaying bitmap using the AlphaBlend function
Displaying icons in the system tray (VFP9)
How to convert a bitmap file to monochrome format (1 bpp)
How to print a bitmap file
Splash Screen for the VFP application
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using the LoadImage function to have a bitmap file loaded and displayed on 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: 129  
    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.180.187)
    4 sec.Example: 'How to change display settings: screen resolution, screen refresh rate'
    13.58 min.Function: 'JetMove'
    Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
    1.82 hrs.Function: 'CeRegEnumKeyEx'
    Function group: 'Remote Application Programming (RAPI)'
     Function: 'EnumDisplayDevices'
    5.43 hrs.Function: 'OemToChar'
    Function group: 'String'
    5.69 hrs.Example: 'How to browse and connect to printers on a network (WinNT)'
     Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
    6.1 hrs.
    6.64 hrs.Example: 'Converting path to original case'
     Example: 'Splash Screen for the VFP application'
    Google
    Advertise here!