• xan1242@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    23 hours ago

    One of them when I was asking about how to I make the Alt key on Windows to stop it trying to open the nonexistent menu bar, then they told me to “just add one”.

    FYI - if you haven’t figured this out already (and useful info for other Win32 devs), simply block WM_SYSCOMMAND in your WndProc of your app if the pressed key is SC_KEYMENU.

    I’ve done this for a game mod I’m developing (it didn’t have windowed mode originally) and I specifically blocked it only during active gameplay. Otherwise (e.g. during menus) it can be pretty useful to keep active.