Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using GetBinaryType (WinNT only) to determine the type of an executable file
GDI+: printing image file
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Using the heap of the calling process to allocate memory blocks
Reading and setting the priority class values for the current process and thread
Retrieving configuration information for the specified workstation (Win2000/XP)
Using the CreateFile
Creating a device context for the specified printer
Displaying standard progress dialog box when copying files
Enumerating files opened on the network
How to empty the Recycle Bin
How to obtain Content-Type value for a file type from the System Registry
How to retrieve adapter information for the local computer (including MAC address)
Retrieving list of Global Atom names
Uploading file to the FTP server using InternetWriteFile
Validating the heap of the calling process
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
How to make a VFP form fading out when released (GDI+ version)
Loading a string resource from an executable file
Using FillMemory
Using mailslots to send messages on the network
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Listing child windows for the Windows desktop
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 (50.17.109.248)
13.37 min.Example: 'Using the RestartDialog function -- restarting Windows'
13.43 min.Example: 'Using the heap of the calling process to allocate memory blocks'
2.51 hrs.Example: 'Enumerating network resources'
 Function: 'GetDiskFreeSpace'
Function group: 'File System'
10.5 hrs.Example: 'How to create MD-5 and SHA-1 hash values from a string'
Language: 'C#'
10.51 hrs.Function: 'CloseEnhMetaFile'
Function group: 'Metafile'
15.11 hrs.Example: 'How to block the ALT+TAB shortcut (WinXP)'
 Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
15.45 hrs.All Functions
15.46 hrs.Example: 'Browsing Windows Known Folders (Special Folders)'
Google
Advertise here!