Using Win32 functions in Visual FoxPro Image Gallery
Message and Message Queue
..msdn
BroadcastSystemMessage
GetQueueStatus
PeekMessage
PostMessage
PostQuitMessage
SendMessage
Code examples:
Accessing Adobe Reader 7.0 main menu from VFP application
Browsing Windows Known Folders (Special Folders)
Controlling master audio volume by sending WM_APPCOMMAND messages
Creating irregularly shaped FoxPro form using transparency color key
Detecting changes in connections to removable drives (VFP9)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Displaying the associated icons and descriptions for files and folders
Enumerating devices installed on the local machine
Extended MessageBox Class
How to change the name and the size of the font in the MessageBox dialog
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to disable the Windows Clipboard (VFP9)
How to drag a Form not using its Titlebar or Caption
How to draw custom Window Caption on FoxPro form
How to start the screen saver and how to find whether the screen saver is active
How to view icons stored in executable files (Icon Viewer) - II
How to view system icons for the classes installed on the local machine
Moving shortcut to a specified position on the Windows Desktop
Obtaining names and positions for shortcuts located on the Windows Desktop
Round FoxPro form
System Image List Viewer
Using Common Controls: the Header Control
Using Month Calendar Control (VFP9, Comctl32.dll)
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Using WM_COPYDATA for interprocess communication (VFP9)
Windows Shell Icons displayed and exported to ICO files (Vista)
SendMessage
..msdn    Add comment     W32 Constants      Translate this page
Sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message.
Code examples:
Round FoxPro form
System Image List Viewer
How to view icons stored in executable files (Icon Viewer) - II
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Displaying the associated icons and descriptions for files and folders
Using Common Controls: the Header Control
Using WM_COPYDATA for interprocess communication (VFP9)
Creating irregularly shaped FoxPro form using transparency color key
How to change the name and the size of the font in the MessageBox dialog
Enumerating devices installed on the local machine
Declaration:
LRESULT SendMessage(
  HWND hWnd,      // handle to destination window
  UINT Msg,       // message
  WPARAM wParam,  // first message parameter
  LPARAM lParam   // second message parameter
);
FoxPro declaration:
DECLARE INTEGER SendMessage IN user32;
    INTEGER hWnd,;
    INTEGER Msg,;
    INTEGER wParam,;
    INTEGER lParam

Parameters:
hWnd
[in] Handle to the window whose window procedure will receive the message.

Msg
[in] Specifies the message to be sent.

wParam
[in] Specifies additional message-specific information.

lParam
[in] Specifies additional message-specific information.
Return value:
The return value specifies the result of the message processing; it depends on the message sent.
Usage:
#DEFINE WM_COMMAND 0x0111

#DEFINE ID1_HELP_ABOUT           0x00090007
#DEFINE ID1_TOOLS_MACROS         0x000B0003
#DEFINE ID1_TOOLS_CLASS_BROWSER  0x000B0004
#DEFINE ID1_TOOLS_COMP_GALLERY   0x000B0005
#DEFINE ID1_TOOLS_OBJECT_BROWSER 0x000B0006
#DEFINE ID1_TOOLS_INTELS_MGR     0x000B0007
#DEFINE ID1_TOOLS_TASK_PANE      0x000B0008
#DEFINE ID1_TOOLS_TOOLBOX        0x000B0009

* if the Help part of the VFP 9.0 main menu is enabled
* this call opens the About dialog
= SendMessage(_vfp.hWnd, WM_COMMAND, ID1_HELP_ABOUT, 0)
My comment:
To send a message and return immediately, use the SendMessageCallback or SendNotifyMessage function. To post a message to the message queue of a thread and return immediately, use the PostMessage or PostThreadMessage function.
Word Index links for the SendMessage :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-22 20:23:51
Modified: 2009-01-23 16:33:08
Visited in last 7 days: 245
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.226.168.96)
1 sec.Function: 'GetWindowPlacement'
Function group: 'Window'
3 sec.Function: 'ReadProcessMemory'
4 sec.Function: 'TaskDialogIndirect'
7 sec.Function: 'waveInGetErrorText'
Function group: 'Windows Multimedia'
9 sec.Function: 'InternetGoOnline'
Function group: 'Internet Functions (WinInet)'
14 sec.Function: 'CryptStringToBinary'
18 sec.Example: 'How to perform Base64 encoding/decoding using Cryptography API Functions'
5 day(s)Example: 'Running a regular FoxPro form while main VFP window is minimized'
 Example: 'How to generate GUID values'
 Function: 'GetIconInfo'
Google
Advertise here!