Learn when you want, where you want with convenient online training courses. Sign up now!
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!
Public Function CallbackMsgs(ByVal wHwnd As Long, ByVal wmsg As Long, ByVal wp_id As Long, ByVal lp_id As Long) As Long
If wmsg = WM_HOTKEY Then
CallbackMsgs = 1
CallbackMsgs = CallWindowProc(mnReturnWindow, wHwnd, wmsg, wp_id, lp_id)
Open in new window
Public Sub RegisterHotKeys(thisForm As Form)
Dim bDummyVariable As Boolean
Set mfActiveHotkeyForm = thisForm
Select Case mfActiveHotkeyForm.Name
bDummyVariable = RegisterHotKey(thisForm.hwnd, 0, MOD_CTRL, VK_F10)
bDummyVariable = RegisterHotKey(thisForm.hwnd, 1, MOD_CTRL, VK_F11)
bDummyVariable = RegisterHotKey(thisForm.hwnd, 2, MOD_CTRL, VK_F12)
' Subclassing the form to get the Windows callback msgs.
mnReturnWindow = SetWindowLong(thisForm.hwnd, GWL_WNDPROC, AddressOf CallbackMsgs)
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.