Register | Login
Forum Index > Requests and Feedback > Menu Flags for win32
Author Message
Pages: 1
Molotov
Member
(send private message)

Posts: 49
Topics: 21

Location:
Behind Keyboard
[730] Menu Flags for win32 - posted: 2011-11-18 19:55:57
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) =)

Code:
/*  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
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[731] - posted: 2011-11-18 20:51:32
excellent, will add those, which file do they belong in do you think? smile

ps you could also do:

Code:
/*  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? smile

and welcome to the forum smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Molotov
Member
(send private message)

Posts: 49
Topics: 21

Location:
Behind Keyboard
[732] - posted: 2011-11-18 20:58:57
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
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd