Click here to Skip to main content
15,883,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
This now works but I have a different but related problem.
In my example above, how can I detect a left and a right mouse click on the menu item "entry1" and process them differently?
Lock
Recent Entries -> Clear Entries
                  entry1
Minimize
Restore
Exit

I can use flags "TPM_LEFTBUTTON | TPM_RIGHTBUTTON" in the call to TrackPopupMenu so that both left and right mouse clicks are accepted and I have used Spy++ to prove that the Windows message for WM_LBUTTONUP and WM_RBUTTONUP are generated - but I need to get the information on which button has been pressed on the menu item to the routine in my dialog application that is notified of a click on that menu item via the:
"ON_COMMAND( id, memberFxn )" and "afx_msg void memberFxn( );" statements.

Again all help gratefully received.
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 
AnswerRe: find pixel colour on screen Pin
OnTilt19-Feb-06 9:47
OnTilt19-Feb-06 9:47 
AnswerRe: find pixel colour on screen Pin
Owner drawn19-Feb-06 18:15
Owner drawn19-Feb-06 18:15 
QuestionTrapping Interrupts in Windows Pin
Rane18-Feb-06 17:40
Rane18-Feb-06 17:40 
AnswerRe: Trapping Interrupts in Windows Pin
Gary R. Wheeler19-Feb-06 4:11
Gary R. Wheeler19-Feb-06 4:11 

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.