Click here to Skip to main content
15,892,517 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 11:13
[CoY0te]18-Jul-02 11:13 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:16
Joaquín M López Muñoz18-Jul-02 11:16 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 11:33
[CoY0te]18-Jul-02 11:33 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:41
Joaquín M López Muñoz18-Jul-02 11:41 
GeneralRe: I try again - CMenu::AppendMenu Pin
Jay Beckert18-Jul-02 14:25
Jay Beckert18-Jul-02 14:25 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 22:39
[CoY0te]18-Jul-02 22:39 
GeneralRe: I try again - CMenu::AppendMenu Pin
Mike Upton18-Jul-02 23:03
Mike Upton18-Jul-02 23:03 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]19-Jul-02 0:52
[CoY0te]19-Jul-02 0:52 
I think I've solved the problem.
Thanks everybody for your effort. I appreciate it.
My solution:
1. throw out that dynamic creation of menu items
2. create all my popup menus as one resource
3. Use the following:
CMenu MenuGroup;
MenuGroup.LoadMenu(IDR_POPUP_MENUS);
Menu=MenuGroup.GetSubMenu(<number of="" popup="" menu="" to="" use="">);
Menu->TrackPopupMenu(...);
Now I can use the class wizard to handle my menu commands.
I still feel strange about these grayed items. I think disabling them should not be the default action when there is no message handler - it would be better (as for me) to leave them enabled and take no action when user clicks them.
Well, I guess I'll never understand Mircosoft's way of coding.
Thank you very much again. Smile | :) Smile | :) Smile | :) Rose | [Rose]

Greetings to all assembler dudes and especially for C64 demoscene!
GeneralI like it that way Pin
KarstenK19-Jul-02 1:27
mveKarstenK19-Jul-02 1:27 
QuestionGet video adapter's name??? Pin
BlackSmith18-Jul-02 9:49
BlackSmith18-Jul-02 9:49 
AnswerRe: Get video adapter's name??? Pin
Joaquín M López Muñoz18-Jul-02 11:24
Joaquín M López Muñoz18-Jul-02 11:24 
GeneralGoing right to a subdialog Pin
Jason Hooper18-Jul-02 9:37
Jason Hooper18-Jul-02 9:37 
GeneralRe: Going right to a subdialog Pin
Joaquín M López Muñoz18-Jul-02 9:58
Joaquín M López Muñoz18-Jul-02 9:58 
GeneralRe: Going right to a subdialog Pin
Jason Hooper18-Jul-02 11:14
Jason Hooper18-Jul-02 11:14 
Generalheight of title bar of Cdialog Pin
ns18-Jul-02 9:18
ns18-Jul-02 9:18 
GeneralRe: height of title bar of Cdialog Pin
Joaquín M López Muñoz18-Jul-02 9:21
Joaquín M López Muñoz18-Jul-02 9:21 
GeneralRe: height of title bar of Cdialog Pin
ns18-Jul-02 9:35
ns18-Jul-02 9:35 
GeneralRe: height of title bar of Cdialog Pin
Joaquín M López Muñoz18-Jul-02 9:48
Joaquín M López Muñoz18-Jul-02 9:48 
Generalmemset equivilent for std::vector Pin
moredip18-Jul-02 7:38
moredip18-Jul-02 7:38 
GeneralRe: memset equivilent for std::vector Pin
Joaquín M López Muñoz18-Jul-02 7:54
Joaquín M López Muñoz18-Jul-02 7:54 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 7:56
moredip18-Jul-02 7:56 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:09
professionalChris Losinger18-Jul-02 8:09 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 8:12
moredip18-Jul-02 8:12 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:21
professionalChris Losinger18-Jul-02 8:21 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 8:24
moredip18-Jul-02 8:24 

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.