Skip to content

Request for ImGui_ImplWin32_WndProcHandler support #23

@clembu

Description

@clembu

Dear Imgui provides a win32 wndproc handler via ImGui_ImplWin32_WndProcHandler, which helps imgui integrate with a win32 event loop and support things like user input.

The Dear Imgui distribution disables that function with a #if 0 to avoid depending on windows.h at build time. There must be some reason why they haven't used void* and other equivalent types for it, but I'm certainly not knowledgeable enough to know it.

Though I think that with zig's build system, zgui might be able to provide that function for win32 targets, especially since there already is zwindows providing those types on the zig side. (It's on the CPP compilation side that I think complications arise :/ )

Has this been discussed before?
What options are there?

As it is, all zgui samples using a win32 event loop have a rather poor end user experience. Unless I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions