Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats This Button and .CHM / Intercepting Windows events

Status
Not open for further replies.

TorF

Programmer
Sep 30, 2002
83
FR
My Access is the 2000 version.

I'm trying to display popups stored in a .chm file by using the 'Whats this Button'.
This work perfectly with a .hlp file, but not with a .chm...

Is anyone has a simple response to make this work with a .chm file ?



Else i'm trying a more sophistaced solution than using Access controls properties...

First note that i display correctly popups with windows API functions like:
Declare Function HTMLHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller As Long, ByVal pszFile As String, _
ByVal uCommand As Long, ByVal dwData As Long) As Long

And then i want to get event send by Windows when the user click on a control with the 'Whats This Button'.

I use for this :
Call SetWindowLong(Application.hWndAccessApp, GWL_WNDPROC, AddressOf HHSubclassWndProc)
So all messages send by Windows to Access go directly to my HHSubclassWndProc function.


I'm trying to capture the event send by the 'Whats This utton'(like the tutorial from where i take this solution says, which works perfectly in Visual Basic), but i don't receive the specified events...
Note that i try to capture events send to Access form too, with the same bad result.

Private Function HHSubclassWndProc(ByVal hwnd As Long, _
ByVal msgWinMessage As Long, ByVal wParam As Long, _
ByVal lParam As Long) As Long
Select Case (msgWinMessage)
Case WM_CONTEXTMENU...
Case WM_HELP...
Case WM_NOTIFY...
Case WM_CONTEXTMENU...
Case WM_HELP...
Case WM_TCARD...
Case Else
'Let the message continue on its way
...
End Select
End Function

The events specified in the select statement are missing....
Can someone tell me what is wrong ?
Are events type changing in Access ?
Should I see events send in another window/form ?
Anything else ?

Thanks by advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top