xan1242

joined 2 years ago
[–] xan1242@lemmy.world 7 points 3 days ago* (last edited 3 days 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.