Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRemote execution Pin
dSolariuM13-Jul-05 20:24
dSolariuM13-Jul-05 20:24 
GeneralRe: Remote execution Pin
ThatsAlok14-Jul-05 5:17
ThatsAlok14-Jul-05 5:17 
GeneralBuild Automated DLL to be interfaced to VB6.0 Pin
thealca13-Jul-05 19:12
thealca13-Jul-05 19:12 
GeneralRe: Build Automated DLL to be interfaced to VB6.0 Pin
javad_200513-Jul-05 19:17
javad_200513-Jul-05 19:17 
GeneralRe: Build Automated DLL to be interfaced to VB6.0 Pin
thealca18-Jul-05 14:01
thealca18-Jul-05 14:01 
General"Temporary Internet Files" location using WinInet Pin
Chintoo72313-Jul-05 19:10
Chintoo72313-Jul-05 19:10 
GeneralRe: "Temporary Internet Files" location using WinInet Pin
Chintoo72313-Jul-05 19:31
Chintoo72313-Jul-05 19:31 
QuestionTrying to hide task bar but SPI_SETWORKAREA not working? Pin
retro_coder13-Jul-05 18:51
retro_coder13-Jul-05 18:51 
AnswerRe: Trying to hide task bar but SPI_SETWORKAREA not working? (SOLVED) Pin
retro_coder13-Jul-05 19:08
retro_coder13-Jul-05 19:08 
GeneralAt exit Pin
Fernando A. Gomez F.13-Jul-05 17:19
Fernando A. Gomez F.13-Jul-05 17:19 
GeneralRe: At exit Pin
Christian Graus13-Jul-05 18:38
protectorChristian Graus13-Jul-05 18:38 
GeneralRe: At exit Pin
Toby Opferman13-Jul-05 19:37
Toby Opferman13-Jul-05 19:37 

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.