Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

Menu Flags for win32

A community discussion post from the original code:zIRON forum.

Molotov member
Posts
49
Threads
21
Location
Behind Keyboard

Menu Flags for win32

Hey first off i like to say i love what you´ve done so far with Ziron

I saw that the menu flags were missin in the win32 so i gathered those in my own files, thought you might want the, (less work for you) =)

/*  Menu Flags */

const MF_BITMAP = 0x00000004;
const MF_CHECKED =  0x00000008;
const MF_DISABLED = 0x00000002;
const MF_ENABLED = 0x00000000;
const MF_GRAYED = 0x00000001;
const MF_BARBREAK = 0x00000020;
const MF_MENUBREAK = 0x00000040;
const MF_OWNERDRAW = 0x00000100;
const MF_POPUP = 0x00000010;
const MF_SEPARATOR = 0x00000800;
const MF_STRING = 0x00000000;
const MF_UNCHECKED = 0x00000000;

"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

excellent, will add those, which file do they belong in do you think? :)

ps you could also do:

/*  Menu Flags */
enum MENU_FLAGS: DWord {
  MF_BITMAP = 0x00000004,
  MF_CHECKED =  0x00000008,
  MF_DISABLED = 0x00000002,
  MF_ENABLED = 0x00000000,
  MF_GRAYED = 0x00000001,
  MF_BARBREAK = 0x00000020,
  MF_MENUBREAK = 0x00000040,
  MF_OWNERDRAW = 0x00000100,
  MF_POPUP = 0x00000010,
  MF_SEPARATOR = 0x00000800,
  MF_STRING = 0x00000000,
  MF_UNCHECKED = 0x00000000
}

will help keep them together and easier to read maybe? :)

and welcome to the forum :)

Molotov member
Posts
49
Threads
21
Location
Behind Keyboard

Ah yeah, updated my file now

I put them into User32, since i feel like it´s a part of userinterface, but anywhere you want to put the code is fine.. =)

"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b