Skip to content

windows - support for other messages #450

Closed

Description

@chrde

It seems that messages not handled in the event_loop e.g: WM_NOTIFY go to the default handler. Is there a way to provide a callback to handle such cases?

Activity

  1. added
    DS - win32
    on Apr 8, 2018
  2. francesca64 commented on Apr 11, 2018

    @francesca64
    Member

    There's not presently any API for that. The simplest change would be to allow you to provide a fall-through callback, but that would mean that any time a new event handler were added to winit, it would be a breaking change. What sort of API would you like for this?

  3. added
    S - enhancement
    S - api
    on Apr 11, 2018
  4. chrde commented on Apr 11, 2018

    @chrde
    Author

    what if the new callback has precedence over the existing loop? It could return a Handled/Not handled, and in the second case, just run the existing wnd_proc. This way we prevent future breaking changes because of winit handling new events

  5. added
    H - help wanted
    C - needs discussion
    D - easy
    P - normal
    on May 6, 2018
  6. Osspial commented on Apr 24, 2019

    @Osspial
    Contributor

    This behavior should be supported by the Window Subclassing API. As such, I don't think we need to add an equivalent API into Winit.

  7. added a commit that references this issue on Jan 5, 2022
    20adbee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C - needs discussionD - easyDS - win32H - help wantedP - normalS - apiS - enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions