..msdn Add comment W32 Constants Translate this page
Installs an application-defined hook procedure into a hook chain.|
DECLARE INTEGER SetWindowsHookEx IN user32;
[in] Specifies the type of hook procedure to be installed.
[in] Pointer to the hook procedure.
[in] Handle to the DLL containing the hook procedure pointed to by the lpfn parameter.
[in] Specifies the identifier of the thread with which the hook procedure is to be associated.
|If the function succeeds, the return value is the handle to the hook procedure.|
LRESULT CALLBACK OnWinCreated(int nCode, WPARAM wParam, LPARAM lParam)
idHook = SetWindowsHookEx(WH_CBT, &OnWinCreated,
|See also: UnhookWindowsHookEx, MessageBox |
It is highly unlikely someone would call this function from pure VFP code. This page might easily contain no VFP declaration for that reason.
Though when called from FLL or DLL library, the SetWindowsHookEx can enable VFP application with valuable and unique functionality.
For example, provided a certain windows hook set, each following MESSAGEBOX() dialog within current VFP session would appear not centered but instead would automatically position itself at the specified screen location.
* * *
Highly recommended reading: Craig Boyd`s SPS blog entry BindEvent on Steroids.
|Word Index links for the SetWindowsHookEx :|
|Translate this page:|
Visited in last 7 days: 5
|Created: ||2009-10-19 13:05:20|
|Modified: ||2010-11-21 19:41:28|
Copyright © 2001-2017
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.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.37), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.