Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to find when the application started
Retrieving System Error message strings
Who is the first in viewing the Clipboard
Who owns the Windows Clipboard
GDI+: Storing DLL icon resources in image files
How to print FoxPro form -- II
Managing Cookies
Winsock: initializing the service in the VFP application
How to display the Print property sheet
How to generate UUID values
Using IsChild() for testing ThisForm.ShowWindow property
GDI+: Color Transparency
GDI+: rotating images using matrix transformations
Obtaining the bounding rectangle for the specified device context
Retrieving the rectangle area where the mouse cursor is confined
Simulating DOEVENTS
Retrieving a handle to DLL and address of an exported function in it
Retrieving the IP-to-physical address mapping table
Testing an ODBC connection for supporting specific functionality
GDI+: how to make VFP controls visually shake and shudder
How to hot-track menu item selection in top-level form (requires VFP9)
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Obtaining OS memory performance information
Retrieving configuration information for the specified server (Win98/Me)
Retrieving long values associated with the class of the VFP window

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
 
DO decl
 
#DEFINE GCW_ATOM           -32
#DEFINE GCL_CBCLSEXTRA     -20
#DEFINE GCL_CBWNDEXTRA     -18
#DEFINE GCL_HBRBACKGROUND  -10
#DEFINE GCL_HCURSOR        -12
#DEFINE GCL_HICON          -14
#DEFINE GCL_HICONSM        -34
#DEFINE GCL_HMODULE        -16
#DEFINE GCL_MENUNAME        -8
#DEFINE GCL_STYLE          -26
#DEFINE GCL_WNDPROC        -24
 
LOCAL hwnd
hwnd = GetActiveWindow()
 
? "Atom value:         ", GetClassLong (hwnd, GCW_ATOM)
? "Extra memory, bytes:", GetClassLong (hwnd, GCL_CBCLSEXTRA)
? "Extra window memory:", GetClassLong (hwnd, GCL_CBWNDEXTRA)
? "Bkgr brush handle:  ", GetClassLong (hwnd, GCL_HBRBACKGROUND)
? "Cursor handle:      ", GetClassLong (hwnd, GCL_HCURSOR)
? "Icon handle:        ", GetClassLong (hwnd, GCL_HICON)
? "Small icon handle:  ", GetClassLong (hwnd, GCL_HICONSM)
? "Module handle:      ", GetClassLong (hwnd, GCL_HMODULE)
? "Menu string addr:   ", GetClassLong (hwnd, GCL_MENUNAME)
? "Window-class style: ", GetClassLong (hwnd, GCL_STYLE)
? "Window procedure:   ", GetClassLong (hwnd, GCL_WNDPROC)
 
 
PROCEDURE  decl
    DECLARE INTEGER GetActiveWindow IN user32
    DECLARE INTEGER GetClassLong IN user32 INTEGER hWnd, INTEGER nIdx
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
1202 bytes  
Created: 2001-12-02 18:06:51  
Modified: 2001-12-02 18:07:10  
Visits in 7 days: 69  
Listed functions:
GetActiveWindow
GetClassLong
Printer friendly API declarations
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.22.212.158)
1.81 hrs.Example: 'Using Multimedia Command Strings to play MIDI files'
 Example: 'Reading the structure of VFP main menu'
 Example: 'Copying picture of the active form to the Clipboard using Enhanced Metafile API functions'
4 hrs.Solution: 'LanguageBar ActiveX Control'
9.07 hrs.Example: 'How to check whether the system is 32-bit or 64-bit'
11.98 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
 Function: 'GetBestInterface'
12.79 hrs.Example: 'Yet another modal dialog: now HTML-based'
 Example: 'Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.'
13.37 hrs.Example: 'Building a tree of subdirectories for a given path using FindFile functions'
Language: 'C#'
Google
Advertise here!