Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
CryptoAPI: Collection of Providers class
Enumerating forms supported by a specified printer
Enumerating MIDI output devices
GDI+: rotating images using matrix transformations
Reading entries from Event logs
Retrieving a handle to DLL and address of an exported function in it
Retrieving information specific to the current Time Zone
Retrieving list of files on the FTP directory
Setting the Window Region for a form
Using the GradientFill function
Using the Semaphore object
Winsock: how to retrieve the protocol information corresponding to a protocol number
GDI+: converting text strings to images and saving in a graphics file
GDI+: how to make VFP controls visually shake and shudder
Minimizing all running applications
Retrieving configuration information for the specified server (Win98/Me)
Retrieving current settings for an ODBC connection
Retrieving the names of all sections in an initialization file
Saving HKEY_LOCAL_MACHINE\\Software\\ODBC Registry Entries to an XML file
Using Video Capture: enumerating installed capture drivers
Building a tree of subdirectories for a given path using FindFile functions
GDI+: Using Scale and Shear transformations
How to check whether the system is 32-bit or 64-bit
How to display the Print property sheet
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: 56  
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 (54.242.188.217)
2.38 hrs.Example: 'Using custom Simple MapiSendMail class'
8.91 hrs.Example: 'How to prevent users from accessing the Windows Desktop and from switching to other applications'
 Function: 'OemToChar'
9.95 hrs.Function: 'ChangeDisplaySettings'
18.41 hrs.Example: 'Enumerating MIDI output devices'
 Function: 'SetLastError'
Function group: 'Error Handling'
1 day(s)Example: 'How to block the PrintScreen key'
 Example: 'Extended MessageBox Class'
 Example: 'Deleting files into the Recycle Bin'
2 day(s)Example: 'How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory'
Google
Advertise here!