Click here to Skip to main content
15,894,182 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [mfc] combobox - disable typing Pin
Sam 200619-Feb-06 8:30
Sam 200619-Feb-06 8:30 
GeneralRe: [mfc] combobox - disable typing Pin
Jörgen Sigvardsson19-Feb-06 9:53
Jörgen Sigvardsson19-Feb-06 9:53 
AnswerRe: [mfc] combobox - disable typing Pin
MANISH RASTOGI19-Feb-06 17:32
MANISH RASTOGI19-Feb-06 17:32 
QuestionMFCGridCtrl not visible Pin
toxcct19-Feb-06 4:52
toxcct19-Feb-06 4:52 
Questioncheck box in CButtonST Pin
Member 200639819-Feb-06 3:16
Member 200639819-Feb-06 3:16 
AnswerRe: check box in CButtonST Pin
Owner drawn19-Feb-06 18:18
Owner drawn19-Feb-06 18:18 
QuestionRight-Aligned Tree Control Pin
Hadi Rezaee19-Feb-06 1:58
Hadi Rezaee19-Feb-06 1:58 
QuestionChanging a System Tray Icon Menu? Pin
-273C18-Feb-06 23:49
-273C18-Feb-06 23:49 
I have a dialog/tree based application (VC++ 6.0 MFC) and have implemented a System Tray icon with a context menu. The main application gets all the correct notifications and does all the right things.

Now I want to change the context menu depending what the user does within the main dialog application e.g. when they select an entry from the tree displayed in the dialog, I want to add details of that entry to a popup menu off of the system tray context menu.

e.g. if the system tray menu looks something like:
Lock
Recent Entries -> Clear Entries
Minimize
Restore
Exit

when they click on "entry1", the next time they get the contect menu from the system tray, it would look like:
Lock
Recent Entries -> Clear Entries
                  entry1
Minimize
Restore
Exit

and so on for every item selected in the tree up to a predefined maximum.

Similarly, I want to be able to clear all these entries from the main application (just as if the user had selected the "Clear Entries" memu item above using the actual context menu).

My problem:

I can't get to this menu from the main dialog application to be able to use AppendMenu and RemoveMenu calls!

GetMenu only gets the menu associated with the main dialog application.

All help gratefully received.
AnswerRe: Changing a System Tray Icon Menu? Pin
Gary R. Wheeler19-Feb-06 4:05
Gary R. Wheeler19-Feb-06 4:05 
GeneralRe: Changing a System Tray Icon Menu? Pin
-273C19-Feb-06 5:12
-273C19-Feb-06 5:12 
GeneralRe: Changing a System Tray Icon Menu? Pin
Gary R. Wheeler19-Feb-06 5:50
Gary R. Wheeler19-Feb-06 5:50 
GeneralRe: Changing a System Tray Icon Menu? Pin
-273C19-Feb-06 12:16
-273C19-Feb-06 12:16 
GeneralRe: Changing a System Tray Icon Menu? Pin
Owner drawn19-Feb-06 18:23
Owner drawn19-Feb-06 18:23 
Questionhow to explore file? Pin
nm_11418-Feb-06 21:13
nm_11418-Feb-06 21:13 
AnswerRe: how to explore file? Pin
David Crow19-Feb-06 9:59
David Crow19-Feb-06 9:59 
Questionocx replace1 Pin
mahmoodi18-Feb-06 20:35
mahmoodi18-Feb-06 20:35 
Questionocx replace Pin
mahmoodi18-Feb-06 20:34
mahmoodi18-Feb-06 20:34 
QuestionQuestion Pin
Hamid_RT18-Feb-06 20:28
Hamid_RT18-Feb-06 20:28 
AnswerRe: Question Pin
mbue18-Feb-06 20:56
mbue18-Feb-06 20:56 
AnswerRe: Question Pin
Divyang Mithaiwala18-Feb-06 21:19
Divyang Mithaiwala18-Feb-06 21:19 
Questionfind pixel colour on screen Pin
OnTilt18-Feb-06 18:51
OnTilt18-Feb-06 18:51 
AnswerRe: find pixel colour on screen Pin
Divyang Mithaiwala18-Feb-06 20:57
Divyang Mithaiwala18-Feb-06 20:57 
GeneralRe: find pixel colour on screen Pin
Gavin Taylor19-Feb-06 2:17
professionalGavin Taylor19-Feb-06 2:17 
GeneralRe: find pixel colour on screen Pin
Divyang Mithaiwala19-Feb-06 17:26
Divyang Mithaiwala19-Feb-06 17:26 
AnswerRe: find pixel colour on screen Pin
Gavin Taylor19-Feb-06 2:19
professionalGavin Taylor19-Feb-06 2:19 

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.