Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Adding a background image to VFP report (VFP9, ReportListener)
Moving shortcut to a specified position on the Windows Desktop
Retrieving configuration information for the specified server (Win2000/XP)
Retrieving size of a remote file
Using the FindMediaType function
Getting a bit more than the _CLIPTEXT offers
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
How to set Creation Date/Time for a folder (WinNT)
HOWTO: Use the Win32 API to Access File Dates and Times
Monitoring changes occurring within a directory
Retrieveing general information about the driver and data source associated with an ODBC connection
Extensible Storage Engine class library
Setting the date and time that a file was created
Accessing Adobe Reader 7.0 main menu from VFP application
GDI+: sending image of FoxPro form to printer
Reading and setting Environment variables
Retrieving names for the registered clipboard formats
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
Using the IsWindowEnabled function
Adding and deleting User Accounts
Changing pitch and speed of a wave file
Form Magnifier
GDI+: Creating thumbnails to preview images in a directory
Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling
Retrieving window and menu help context identifiers

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
 
LOCAL hWindow, hMenu
hWindow = GetFocus()
hMenu = GetMenu(hWindow)
 
ACTI SCREEN
? "Window handle:", hWindow
? "Window Help Context ID:", GetWindowContextHelpId(hWindow)
 
IF hMenu <> 0
    ? "Menu handle:", hMenu
    ? "Menu Help Context ID:", GetMenuContextHelpId(hMenu)
ELSE
    ? "No menu attached to this window"
ENDIF
 
PROCEDURE decl
    DECLARE INTEGER GetWindowContextHelpId IN user32 INTEGER hWnd
    DECLARE INTEGER GetMenuContextHelpId IN user32 INTEGER hmenu
    DECLARE INTEGER GetFocus IN user32
    DECLARE INTEGER GetMenu IN user32 INTEGER hWnd
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
571 bytes  
Created: 2001-07-12 12:00:00  
Modified: 2003-03-17 09:55:13  
Visits in 7 days: 73  
Listed functions:
GetFocus
GetMenu
GetMenuContextHelpId
GetWindowContextHelpId
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 (107.21.186.38)
4 sec.Example: 'Using File Mapping for enumerating files opened by Visual FoxPro'
3.28 hrs.Example: 'Writing to INI file'
 Function: 'RegDeleteValue'
 Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
9.99 hrs.Example: 'Monitoring changes occurring within a directory'
Language: 'C#'
 Example: 'Verifying a file using the Authenticode policy provider'
10.11 hrs.Example: 'Retrieving list of Global Atom names'
 Function: 'gethostbyaddr'
Function group: 'Windows Sockets 2 (Winsock)'
 Function: 'OpenInputDesktop'
12.87 hrs.Function: 'GdipRotateWorldTransform'
Function group: 'GDI+ Graphics'
Google
Advertise here!