Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
How to run FoxPro application under different user name (impersonating user)
Winsock: initializing the service in the VFP application
Enumerating network resources
GDI+: retrieving list of available image encoders and image decoders
How to view icons stored in executable files (Icon Viewer)
Setting the date and time that a file was created
Browsing Windows Known Folders (Special Folders)
How to register custom Event Log source
How to Start a Process as Another User (NT/XP/2K)
Retrieving IP statistics for the computer
System and Local Time values
Testing serial ports
Validating URLs using moniker functions
Converting twips to pixels and vice versa
Finding out if the current user is the Guest account
How to hot-track menu item selection in top-level form (requires VFP9)
Pocket PC: custom RAPI class for operating with the Object Store Databases
Storing screen shot of a form to enhanced metafile (*.emf)
Testing if a connection to an Url can be established
How to block the ALT+TAB shortcut (WinXP)
How to display the port-configuration dialog box for a port on the specified server
Winsock: resolving an address to a host name
Accessing examples contained in this reference through Web Services
Using GetSysColor

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
 
#DEFINE COLOR_SCROLLBAR      0
#DEFINE COLOR_ACTIVECAPTION  2
#DEFINE COLOR_WINDOW         5
#DEFINE COLOR_WINDOWFRAME    6
#DEFINE COLOR_MENUTEXT       7
#DEFINE COLOR_WINDOWTEXT     8
 
    DECLARE INTEGER GetSysColor IN "user32" INTEGER nIndex
 
    ? GetSysColor (COLOR_SCROLLBAR)
    ? GetSysColor (COLOR_ACTIVECAPTION)
    ? GetSysColor (COLOR_WINDOW)
    ? GetSysColor (COLOR_WINDOWFRAME)
    ? GetSysColor (COLOR_MENUTEXT)
    ? GetSysColor (COLOR_WINDOWTEXT)
 
    * actually, you can test the whole range
    FOR lnColor=0 TO 28
        ? "System color ["
        ?? lnColor
        ?? "] = "
        ?? GetSysColor (lnColor)
    ENDFOR
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
614 bytes  
Created: 2001-07-14 12:00:00  
Modified: 2001-09-28 16:45:15  
Visits in 7 days: 54  
Listed functions:
GetSysColor
Printer friendly API declarations
My comment:
Some constants are not availble for Win9 or for WinNT
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 (50.17.171.254)
4 sec.Function: 'GetProductInfo'
Function group: 'System Information'
Google
Advertise here!