Skip to content

[FEATURE]: event handling should pass objects and $hGUI as a ByRef parameter to functions that handles the event #52

@mlipok

Description

@mlipok

What feature would you like, or what problem are you facing?

Each function that manage/maintain EVENTs should pass as a parameter a reference to the object and the window handle that triggers the event.

This is needed, for example, to manage events coming from multiple instances.

What's your proposed solution?

#TODO => Func __NetWebView2_WebViewEvents__OnMessageReceived(ByRef $oWebV2M, $hGUI, $sMsg)

#TODO => Func __NetWebView2_JSEvents__OnMessageReceived(ByRef $oWebV2M, ByRef $oWebJS, $hGUI, $sMsg)

#TODO => Func __NetWebView2_WebViewEvents__OnContextMenuRequested(ByRef $oWebV2M, $sLink, $iX, $iY, $sSelection)

Please note that the provided code links are not complete as not all of them contain a reference to $hGUI, but they should.

btw.
all others events as so far not implemented in UDF should also pass such kind of parameters

Screenshots

No response

Do you want to work on this issue/improvement?

Maybe

Any additional context?

as an example take a look here:
https://learn.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/event-parameters

https://learn.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/willexecute-event-ado

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions