Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Current Data and time as string Pin
Fredrik Skog18-Jul-02 3:46
Fredrik Skog18-Jul-02 3:46 
GeneralRe: Current Data and time as string Pin
Aaron Schaefer18-Jul-02 9:00
Aaron Schaefer18-Jul-02 9:00 
GeneralIXMLDOMDocument Question... Pin
Tzoockee18-Jul-02 3:27
Tzoockee18-Jul-02 3:27 
GeneralRe: IXMLDOMDocument Question... Pin
Stuart Dootson18-Jul-02 9:04
professionalStuart Dootson18-Jul-02 9:04 
QuestionHTML Views ? Pin
Jon Hulatt18-Jul-02 3:25
Jon Hulatt18-Jul-02 3:25 
AnswerRe: HTML Views ? Pin
benjymous18-Jul-02 5:59
benjymous18-Jul-02 5:59 
GeneralMs Word Automation Hell... Pin
Braulio Dez18-Jul-02 3:15
Braulio Dez18-Jul-02 3:15 
GeneralCMenu::AppendMenu and CommandID's Pin
Anonymous18-Jul-02 2:57
Anonymous18-Jul-02 2:57 
The question is simple, i have the following code for my popup menu:
Menu=new CMenu;
Menu->CreatePopupMenu();
(...)
Menu->AppendMenu(MF_STRING | MF_ENABLED, 0, "Insert");
Menu->AppendMenu(MF_STRING | MF_ENABLED, 0, "Delete");
(...)
Menu->TrackPopupMenu( TPM_LEFTALIGN
| TPM_RIGHTBUTTON | TPM_LEFTBUTTON,
Point.x, Point.y, ParentWindow);
Menu->DestroyMenu();
It works ok.
But i need to process commands to make it worth anything.
When I use:
Menu->AppendMenu(MF_STRING | MF_ENABLED,
ID_INSERT_ATTRIBUTE, "Insert");
Menu->AppendMenu(MF_STRING | MF_ENABLED,
ID_DELETE_ATTRIBUTE, "Delete");
These items appear as grayed and unavailable.
I've used CMenu::GetMenuItemID to check if the ID is assigned - it is (returned values were ID_INSERT_ATTRIBUTE and ID_DELETE_ATTRIBUTE).
I also used CMenu::EnableMenuItem to enable these (this function returned MF_ENABLED as a previous state of item Confused | :confused: ).

Did i missed something?

Krzysztof Szczech
[ CoY0te ]
GeneralFile overwriting... Pin
Raphael Kindt18-Jul-02 2:54
Raphael Kindt18-Jul-02 2:54 
GeneralRe: File overwriting... Pin
Anonymous18-Jul-02 3:04
Anonymous18-Jul-02 3:04 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 3:08
Raphael Kindt18-Jul-02 3:08 
GeneralRe: File overwriting... Pin
Anonymous18-Jul-02 3:26
Anonymous18-Jul-02 3:26 
GeneralRe: File overwriting... Pin
Fredrik Skog18-Jul-02 3:29
Fredrik Skog18-Jul-02 3:29 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 3:39
Raphael Kindt18-Jul-02 3:39 
GeneralRe: File overwriting... Pin
Fredrik Skog18-Jul-02 3:43
Fredrik Skog18-Jul-02 3:43 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 3:52
Raphael Kindt18-Jul-02 3:52 
GeneralRe: File overwriting... Pin
Fredrik Skog18-Jul-02 4:01
Fredrik Skog18-Jul-02 4:01 
GeneralRe: File overwriting... Pin
Fredrik Skog18-Jul-02 4:16
Fredrik Skog18-Jul-02 4:16 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 4:32
Raphael Kindt18-Jul-02 4:32 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 4:13
Raphael Kindt18-Jul-02 4:13 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 4:48
Raphael Kindt18-Jul-02 4:48 
GeneralRe: File overwriting... Pin
Bill Wilson18-Jul-02 8:42
Bill Wilson18-Jul-02 8:42 
GeneralRe: File overwriting... Pin
Raphael Kindt18-Jul-02 21:05
Raphael Kindt18-Jul-02 21:05 
QuestionChange the length of bitmap image arbitrary? Pin
chen18-Jul-02 2:39
chen18-Jul-02 2:39 
AnswerRe: Change the length of bitmap image arbitrary? Pin
includeh1018-Jul-02 5:04
includeh1018-Jul-02 5:04 

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.