Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using GetSysColor
Creating a directory on the FTP
Enhanced GetFont dialog
Using FrameRgn for displaying system colors
Using the GetTempFileName
Converting a decimal string to an integer
GDI+: reading and writing metadata in JPEG and TIFF files
How to obtain Content-Type value for a file type from the System Registry
How to start the screen saver and how to find whether the screen saver is active
How to view icons stored in executable files (Icon Viewer) - II
URL: converting unsafe characters and spaces into escape sequences
Using shared memory to exchange data between two FoxPro applications
Using the CreateFile
Enumerating sessions established on a server
How to perform Base64 encoding/decoding using Cryptography API Functions
How to write and read Window Properties for the specified window
Winsock: retrieving the host information corresponding to a network address
Clipping mouse cursor area
How to empty the Recycle Bin
Managing Cookies
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
OS version and revision
Reading virtual key status values and key names
Using Custom FTP class (DEFINE CLASS ftp As Custom)
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: 82  
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 (54.234.231.49)
1.25 hrs.Function: 'GetSystemDefaultLCID'
Function group: 'National Language Support'
9.34 hrs.Example: 'Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)'
9.46 hrs.Example: 'Quering a waveform-audio input device'
17.88 hrs.Example: 'How to change the name and the size of the font in the MessageBox dialog'
17.89 hrs.Example: 'Creating a device context for the specified printer'
20.44 hrs.Example: 'WAV file player'
 Example: 'Deleting files into the Recycle Bin'
20.56 hrs.Example: 'How to retrieve information about a cache entry (Internet Explorer)'
 Example: 'How to print FoxPro form'
21.61 hrs.
Function group: 'GDI+ Pen'
Google
Advertise here!