How to program a single Focus event for every object
Added code that randomly sets the focus to a different control.
Uses the following API functions and messages:
- CallNextHookEx
- CopyMemory (RtlMoveMemory)
- LockWindowUpdate
- SetFocus
- SetWindowsHookEx
- UnhookWindowsHookEx
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.