Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with bitmap image copy from Cstatic Pin
ingoogle19-Feb-06 14:53
ingoogle19-Feb-06 14:53 
Question[mfc] system tray icons Pin
Sam 200619-Feb-06 9:47
Sam 200619-Feb-06 9:47 
AnswerRe: [mfc] system tray icons Pin
David Crow19-Feb-06 9:53
David Crow19-Feb-06 9:53 
GeneralRe: [mfc] system tray icons Pin
Sam 200619-Feb-06 10:18
Sam 200619-Feb-06 10:18 
GeneralRe: [mfc] system tray icons Pin
David Crow19-Feb-06 10:34
David Crow19-Feb-06 10:34 
GeneralRe: [mfc] system tray icons Pin
MANISH RASTOGI19-Feb-06 17:31
MANISH RASTOGI19-Feb-06 17:31 
QuestionRe: [mfc] system tray icons Pin
David Crow20-Feb-06 3:09
David Crow20-Feb-06 3:09 
Question[mfc] combobox - disable typing Pin
Sam 200619-Feb-06 8:14
Sam 200619-Feb-06 8:14 
AnswerRe: [mfc] combobox - disable typing Pin
Christian Graus19-Feb-06 8:24
protectorChristian Graus19-Feb-06 8:24 
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 

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.