Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
GDI+: retrieving list of available image encoders and image decoders
Testing Transparent Menu Class with top-level form (requires VFP9)
Using the GetLogicalDriveStrings
Creating the Save dialog box to specify the drive, directory, and name of a file to save
GDI+: printing vertical text on VFP reports via generated images (VFP8)
How to build UDP responder
Passing data records between VFP applications via the Clipboard
Reading keys in the specified section of the Win.ini file
StrDup returns a pointer to the duplicate of a source VFP string
Using vendor-neutral SQL constructs
Animating a transition of the VFP form (a wire-frame rectangle)
Enumerating global and local group accounts on a server (WinNT/XP/2K)
Finding parameters for the region specified
How to download a file from HTTP server using URL Monikers functions
Loading a string resource from an executable file
Pocket PC: base class
Setting the mouse capture to the specified window
URL: converting unsafe characters and spaces into escape sequences
Using the Semaphore object to allow only one instance of VFP application running
Verifying a file using the Authenticode policy provider
How to hide your program from the Close Program dialog (Win9* only)
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
How to view system icons for the classes installed on the local machine
Printing text on the main VFP window
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: 78  
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 (23.20.196.179)
4.7 hrs.Gallery
Page 16
 Function: 'getservbyport'
 Example: 'Enumerating Processes -- WinNT'
Language: 'WMI'
13.85 hrs.Example: 'Attaching menu to a top-level form'
 Example: 'Using the NetMessageBufferSend to send messages on the network'
 Example: 'Using FrameRgn for displaying system colors'
14.43 hrs.Example: 'System Image List Viewer'
 Example: 'Printing Image File, programmatically set print page orientation to landscape'
14.9 hrs.Example: 'Comparing file times'
 Function: 'GetDC'
Function group: 'Device Context'
Google
Advertise here!