Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to hide or remove separator bars in toolbar programmatically? Pin
ns18-Jul-02 10:08
ns18-Jul-02 10:08 
AnswerRe: how to hide or remove separator bars in toolbar programmatically? Pin
Ravi Bhavnani18-Jul-02 10:29
professionalRavi Bhavnani18-Jul-02 10:29 
AnswerRe: how to hide or remove separator bars in toolbar programmatically? Pin
Ravi Bhavnani18-Jul-02 10:30
professionalRavi Bhavnani18-Jul-02 10:30 
GeneralISAPI and Unicode Pin
Roman Nurik18-Jul-02 10:04
Roman Nurik18-Jul-02 10:04 
GeneralRe: ISAPI and Unicode Pin
Joaquín M López Muñoz18-Jul-02 10:10
Joaquín M López Muñoz18-Jul-02 10:10 
GeneralI try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 9:52
[CoY0te]18-Jul-02 9:52 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 10:05
Joaquín M López Muñoz18-Jul-02 10:05 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 10:43
[CoY0te]18-Jul-02 10:43 
Nothing.
The problem is, that items with nIDNewItem=0 (created by AppendMenu) are OK, but when i pass parameter greater then 0 to this function these items are disabled. This is the ONLY difference between these items. And more: I can add some items with nIDNewItem=0 and some with nIDNewItrm>0 in the same menu and only those with nIDNewItem>0 will be disabled (this is a popup menu with no submenus).
By the way - I've tested some negative ID values - -1000,-2000 and -3000 were enabled and -10000,-20000,-30000 were grayed. Funny thing, but it drives me crazy!

Is there any way to check the user's choice without processing the WM_COMMAND message? I didn't notice that CMenu class has any kind of GetSelectedItem method, so I doubt it, but it would be the simpliest way.

Anyway thanks for the answer. It's good that someone answered.

Greetings to all assembler dudes and especially for C64 demoscene!
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:02
Joaquín M López Muñoz18-Jul-02 11:02 
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 
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 

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.