I cant get it to work (SetMenuItemInfo)
heres my code
mii.fType = MFT_STRING;
SetMenuItem(hMenu,/* Declared In resource along with menu item IDB_TEST*/IDB_TEST,FALSE,&mii);
/*dont wory i did set it origanally/*
Try setting mmi.fMask to MIIM_STRING.
i did but my compiler could'nt find MIIM_STRING
What compiler are you using (version would be handy too)?
MENUITEMINFO is declared in winuser.h. I have metrowerks codewarrior 5 and MIIM_STRING is declared ok in there but in order for it to be defined you should:
#define WINVER 0x0500
before you #include <windows.h>
That should compile ok.
Good luck. :)
hmm id didnt work i have ver. 4 but i still tried by the way do you like metrowerks
Did it compile ok? And what os are you compiling on?
If not try (before #include <windows.h> ):
>>do you like metrowerks<<
#if !defined MIIM_STRING
#define MIIM_STRING 0x00000040
I got codewarrior 5 Pro (IDE version 4) as a freebie on a magazine cd in the UK thanks to Fordy without whom i'd never have a chance to play around with yet another compiler. :)It's ok, but I confess i've not really messed around with it that much. The IDE is nice enough with decent enough help files which is always a bonus. :)
even with the paramater it dosent work any altenatives?
Short of upgrading your compiler or getting a new one, you could try the older ModifyMenu function.
I think it would be beneficial for you to post some code showing what you have been doing....
This is a simple system call and the compiler should be able to do what's needed....