Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: windows nt timestamp format Pin
Alexander M.,14-Jul-05 2:03
Alexander M.,14-Jul-05 2:03 
GeneralRe: windows nt timestamp format Pin
198876514-Jul-05 14:16
198876514-Jul-05 14:16 
GeneralRe: windows nt timestamp format Pin
Maximilien14-Jul-05 2:46
Maximilien14-Jul-05 2:46 
GeneralRe: windows nt timestamp format Pin
198876514-Jul-05 14:19
198876514-Jul-05 14:19 
GeneralRe: windows nt timestamp format Pin
dandy7215-Jul-05 9:25
dandy7215-Jul-05 9:25 
GeneralTooltip Delay time Pin
LiYS13-Jul-05 22:02
LiYS13-Jul-05 22:02 
GeneralRe: Tooltip Delay time Pin
David Crow14-Jul-05 2:47
David Crow14-Jul-05 2:47 
GeneralOT: Seperat a file into three files Pin
Fahrrad13-Jul-05 21:06
Fahrrad13-Jul-05 21:06 
GeneralSCALING time on x-axis Pin
Raza568013-Jul-05 20:46
Raza568013-Jul-05 20:46 
GeneralRe: SCALING time on x-axis Pin
Stlan14-Jul-05 1:45
Stlan14-Jul-05 1:45 
GeneralMAPI, Profile, ConfigureMsgService() Pin
Anonymous13-Jul-05 20:45
Anonymous13-Jul-05 20:45 
GeneralProblem with colour in Resource Editor Pin
Pazzuzu13-Jul-05 20:45
Pazzuzu13-Jul-05 20:45 
GeneralRe: Problem with colour in Resource Editor Pin
Alex_Y14-Jul-05 3:24
Alex_Y14-Jul-05 3:24 
GeneralRe: Problem with colour in Resource Editor Pin
Pazzuzu14-Jul-05 3:37
Pazzuzu14-Jul-05 3:37 
GeneralRe: Problem with colour in Resource Editor Pin
Alex_Y14-Jul-05 3:46
Alex_Y14-Jul-05 3:46 
GeneralRe: Problem with colour in Resource Editor Pin
Pazzuzu14-Jul-05 3:57
Pazzuzu14-Jul-05 3:57 
GeneralIE Settings Pin
Usman Tasleem Akshaf13-Jul-05 20:45
Usman Tasleem Akshaf13-Jul-05 20:45 
GeneralRe: IE Settings Pin
Monty213-Jul-05 21:20
Monty213-Jul-05 21:20 
GeneralRe: IE Settings Pin
ThatsAlok14-Jul-05 5:12
ThatsAlok14-Jul-05 5:12 
GeneralDynamic menu Pin
Halawlaws13-Jul-05 20:39
Halawlaws13-Jul-05 20:39 
Hi i have a problem that i couldn't find a solution all over the net here it is:
I want to create dynamic menu item (at runtime) in a dialog modal.

Problem:

I assign the same ID for all dynamic menu items
ON_COMMAND(ID_ALL , OnTreeProgramadapter)

Then everytime I need to insert dynamic menu items I use
submenu1->InsertMenu(1,MF_BYCOMMAND, ID_ALL,"Save" )

This way i can know which one is selected using
GetMenuString(1, s, MF_BYCOMMAND);

Everything is great till now but...

In my program I need to enable and disable my menu item so i used
EnableMenuItem(ID_ALL,MF_ENABLED | MF_BYCOMMAND); //and i tried (ID_ALL ,MF_ENABLED | MF_BYPOSITION)

Only what happens is that only the first menu item (position 1 = last added) that is enabled and disabled as i want

My question is: HOW CAN I ENABLE AND DISABLE ALL THE REST knowing that i always want them all disabled or enabled

thx in advance 4 ur help

PS: i don't want to use different IDs for each new menu item.

/\(-)|\/|/\|)
GeneralRe: Dynamic menu Pin
Mark Greenwood13-Jul-05 21:23
Mark Greenwood13-Jul-05 21:23 
GeneralRe: Dynamic menu Pin
Halawlaws13-Jul-05 22:24
Halawlaws13-Jul-05 22:24 
GeneralRe: Dynamic menu Pin
Jose Lamas Rios15-Jul-05 5:00
Jose Lamas Rios15-Jul-05 5:00 
GeneralExecuting a BitMap on FullScreen Pin
a_david12313-Jul-05 20:31
a_david12313-Jul-05 20:31 
Generalproblem about ole Pin
William.Wang13-Jul-05 20:26
William.Wang13-Jul-05 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.