Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 2.77 KB

CallWindowProc.md

File metadata and controls

82 lines (62 loc) · 2.77 KB

Home

Function name : CallWindowProc

Group: Window Procedure - Library: user32


The CallWindowProc function passes message information to the specified window procedure.


Code examples:

Displaying icons in the system tray (VFP9)
Switching between keyboard layouts
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
How to disable the Windows Clipboard (VFP9)
How to block the PrintScreen key
Transparent Menu Class (requires VFP9)
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
How to hot-track menu item selection in top-level form (requires VFP9)
Using WM_COPYDATA for interprocess communication (VFP9)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Using Month Calendar Control (VFP9, Comctl32.dll)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Detecting changes in connections to removable drives (VFP9)
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Monitoring clipboard content changes (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.


Comments:

You hardly could have a reason to call this frunction directly from VFP code.