Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1305
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 20
Color 1
COM 6
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 28
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
Dynamic-Link Library 6
Error Handling 10
Event Logging 10
Extensible Storage Engine (ESE, Jet Blue) 23
File Management 49
File Mapping 4
File System 19
Filled Shape 2
Font and Text 13
GDI+ 6
GDI+ Bitmap 10
GDI+ Brush 4
GDI+ Font 9
GDI+ Graphics 28
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
GDI+ PathGradient Brush 3
GDI+ Pen 2
GDI+ StringFormat 2
GDI+ Text 2
Handle and Object 4
Hook 2
HTTP Functions (WinHTTP) 12
Icon 7
Internet Functions (WinInet) 49
IP Helper 24
Kernel Transaction Manager 3
Keyboard Input 22
Mailslot 3
Memory Management 26
Menu 18
Message and Message Queue 12
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 8
MSHTML Reference 1
Multilingual User Interface 4
Multiple Display Monitors 2
National Language Support 20
Network Management 34
ODBC API 30
Painting and Drawing 17
Path 3
Performance Monitoring 12
Pipe 5
PnP Configuration Manager 6
Power Management 6
Printing and Print Spooler 35
Process and Thread 31
Raw Input 4
Region 7
Registry 21
Remote Access Service (RAS) 5
Remote Application Programming (RAPI) 49
Remote Procedure Call (RPC) 7
Resource 10
Security 22
Service 11
Setup API functions 7
Shell Functions 39
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 20
Shell Lightweight Utility APIs -- string functions 4
Simple MAPI 9
String 10
Synchronization 13
System Information 23
System Shutdown 5
Terminal Services 10
Time 16
Unicode and Character Set 2
URL Monikers 7
Version Information 2
Virtual Hard Disk (Win7) 4
Window 37
Window Class 8
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 38
Keyboard Input            ..msdn    Add comment
ActivateKeyboardLayout The ActivateKeyboardLayout function sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process. The input locale identifier specifies a locale as well as the physical layout of the keyboard.
BlockInput Blocks keyboard and mouse input events from reaching applications.
EnableWindow Enables or disables mouse and keyboard input to the specified window or control.
GetActiveWindow The GetActiveWindow function retrieves the window handle to the active window attached to the calling thread"s message queue.
GetAsyncKeyState The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
GetFocus Retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread"s message queue.
GetKBCodePage Returns the current code page.
GetKeyboardLayout The GetKeyboardLayout function retrieves the active input locale identifier (formerly called the keyboard layout) for the specified thread. If the idThread parameter is zero, the input locale identifier for the active thread is returned.
GetKeyboardLayoutList The GetKeyboardLayoutList function retrieves the input locale identifiers (formerly called keyboard layout handles) corresponding to the current set of input locales in the system.
GetKeyboardLayoutName The GetKeyboardLayoutName function retrieves the name of the active input locale identifier (formerly called the keyboard layout).
GetKeyboardState The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer.
GetKeyNameText The GetKeyNameText function retrieves a string that represents the name of a key.
GetKeyState The GetKeyState function retrieves the status of the specified virtual key. The status specifies whether the key is up, down, or toggled (on, off—alternating each time the key is pressed).
IsWindowEnabled The IsWindowEnabled function determines whether the specified window is enabled for mouse and keyboard input.
keybd_event Synthesizes a keystroke.
MapVirtualKey Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
RegisterHotKey The RegisterHotKey function defines a system-wide hot key.
SetFocus Sets the keyboard focus to the specified window. The window must be attached to the calling thread"s message queue
SetKeyboardState The SetKeyboardState function copies a 256-byte array of keyboard key states into the calling thread"s keyboard input-state table.
ToAscii Translates the specified virtual-key code and keyboard state to the corresponding character or characters.
UnregisterHotKey The UnregisterHotKey function frees a hot key previously registered by the calling thread.
VkKeyScan Translates a character to the corresponding virtual-key code and shift state for the current keyboard.
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to activate Windows Calculator
How to copy the image of a form to the Clipboard using Bitmap API functions
How to block the PrintScreen key
Using the IsWindowEnabled function
How to print FoxPro form
How to put a vertical text scrolling on the form (a movie cast)
Switching between keyboard layouts
Creating the Open dialog box to specify the drive, directory, and name of a file to open
The window and its ancestors
How to put a horizontal text scrolling on the form (a news line, marquee)
Storing screen shot of a form to bitmap file
How to play AVI file on the _screen
Locking mouse and keyboard input for the VFP application
GDI+: sending image of FoxPro form to printer
Round FoxPro form
GetFocus returns a HWND value
Drawing a window caption using the DrawCaption routine
Drawing Windows predefined bitmaps using the LoadBitmap functions
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
Displaying system dialog that selects a folder
Using Common Controls: the Header Control
Extended MessageBox Class
Using IsChild() for testing ThisForm.ShowWindow property
How to print a bitmap file
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Minimizing all running applications
Confining Windows calculator inside the VFP main window
Reading the state of mouse buttons within DO WHILE loop
Setting the mouse capture to the specified window
Splash Screen for the VFP application
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to print FoxPro form -- II
How to block the ALT+TAB shortcut (WinXP)
How to create transparent areas inside a form -- punching holes in the form
Storing content of the Clipboard to a bitmap file
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Using the DrawText function
GDI+: Implementing image scrolling with inertia
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Using FrameRgn for displaying system colors
Displaying bitmap using the AlphaBlend function
Deleting files into the Recycle Bin
Printing text on the client area of the main VFP window
How to view icons stored in executable files (Icon Viewer)
An alternative way of setting Form.Closable to False
Drawing icons associated with the VFP main window
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Sending a standard message with one or more attached files using default email client
How to display the Properties dialog box for a file (ShellExecuteEx)
User Contributed Notes:
There are no notes on this subject.



Copyright © 2001-2015 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.5.43), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.109.74)
15 sec.Example: 'Monitoring changes occurring within a directory'
41 sec.Function: 'mmioDescend'
Function group: 'Windows Multimedia'
2.77 min.Function: 'GetOpenFileName'
22.91 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
Google
Advertise here!