Using Win32 functions in Visual FoxPro Image Gallery
Window Procedure
..msdn
CallWindowProc
DefWindowProc
WindowProc
Code examples:
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Detecting changes in connections to removable drives (VFP9)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Displaying icons in the system tray (VFP9)
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to block the PrintScreen key
How to disable the Windows Clipboard (VFP9)
How to hot-track menu item selection in top-level form (requires VFP9)
Switching between keyboard layouts
Transparent Menu Class (requires VFP9)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using Month Calendar Control (VFP9, Comctl32.dll)
Using WM_COPYDATA for interprocess communication (VFP9)
CallWindowProc
..msdn    Add comment     W32 Constants      Translate this page
The CallWindowProc function passes message information to the specified window procedure.
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Detecting changes in connections to removable drives (VFP9)
Using WM_COPYDATA for interprocess communication (VFP9)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Displaying icons in the system tray (VFP9)
How to block the PrintScreen key
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
How to disable the Windows Clipboard (VFP9)
Transparent Menu Class (requires VFP9)
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
Declaration:
 
LRESULT CallWindowProc(
    WNDPROC lpPrevWndFunc,
    HWND hWnd,
    UINT Msg,
    WPARAM wParam,
    LPARAM lParam
);
 
FoxPro declaration:
 
DECLARE INTEGER CallWindowProc IN user32;
    LONG lpPrevWndFunc,;
    LONG hWnd,;
    LONG Msg,;
    INTEGER wParam,;
    INTEGER lParam
 
Parameters:
lpPrevWndFunc
[in] Pointer to the previous window procedure. This value can be obtained by calling the GetWindowLong function with the nIndex parameter set to GWL_WNDPROC or DWL_DLGPROC

hWnd
[in] Handle to the window procedure to receive the message.

Msg
[in] Specifies the message.

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 and depends on the message sent.
My comment:
You hardly could have a reason to call this frunction directly from VFP code.
Word Index links for the CallWindowProc :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-10-23 10:55:46
Modified: 2002-10-23 11:03:24
Visited in last 7 days: 114
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.252.150)
48.38 min.Function: 'FindNextChangeNotification'
48.43 min.Function: 'mmioAscend'
Function group: 'Windows Multimedia'
48.48 min.Example: 'Using the IsWindowEnabled function'
8.59 hrs.Example: 'GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)'
 Example: 'Printing text on the client area of the main VFP window'
 Example: 'FindText -- the hopeless and useless Common Dialog'
15.68 hrs.Example: 'How to display the Print property sheet'
15.79 hrs.Function: 'WNetEnumResource'
18.02 hrs.Function: 'WNetGetProviderName'
Function group: 'Windows Networking'
1 day(s)Example: 'Disabling mouse and keyboard input for the main VFP window (with the app still running)'
Google
Advertise here!