Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
Nish Nishant4-Jun-02 17:18
sitebuilderNish Nishant4-Jun-02 17:18 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
lucy4-Jun-02 17:26
lucy4-Jun-02 17:26 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
Nish Nishant4-Jun-02 17:25
sitebuilderNish Nishant4-Jun-02 17:25 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
lucy4-Jun-02 17:39
lucy4-Jun-02 17:39 
GeneralTrackPopupMenu Pin
Steve L.4-Jun-02 15:53
Steve L.4-Jun-02 15:53 
GeneralRe: TrackPopupMenu Pin
Shog94-Jun-02 16:11
sitebuilderShog94-Jun-02 16:11 
GeneralRe: TrackPopupMenu Pin
Steve L.4-Jun-02 16:09
Steve L.4-Jun-02 16:09 
GeneralRe: TrackPopupMenu Pin
Shog94-Jun-02 16:20
sitebuilderShog94-Jun-02 16:20 
Raffi wrote:
I have, it has no affect.

Odd...

I just checked MSDN, it gives this little tidbit:

To display a context menu for a notification icon, the current window must be the foreground window before the application calls TrackPopupMenu or TrackPopupMenuEx. Otherwise, the menu will not disappear when the user clicks outside of the menu or the window that created the menu (if it is visible). However, when the current window is the foreground window, the second time this menu is displayed, it displays and then immediately disappears. To correct this, you must force a task switch to the application that called TrackPopupMenu at some time in the near future. This is done by posting a benign message to the window or thread, as shown in the following code sample:
SetForegroundWindow(hDlg);

// Display the menu
TrackPopupMenu(   hSubMenu,
                  TPM_RIGHTBUTTON,
                  pt.x,
                  pt.y,
                  0,
                  hDlg,
                  NULL);

PostMessage(hDlg, WM_NULL, 0, 0);



Have you tried that?

--------

Life is fraught with opportunities to keep your mouth shut.

--Shog9 --


GeneralRe: TrackPopupMenu Pin
Steve L.4-Jun-02 16:17
Steve L.4-Jun-02 16:17 
GeneralRe: TrackPopupMenu Pin
Michael Dunn4-Jun-02 16:17
sitebuilderMichael Dunn4-Jun-02 16:17 
GeneralRe: TrackPopupMenu Pin
Nish Nishant4-Jun-02 17:22
sitebuilderNish Nishant4-Jun-02 17:22 
GeneralFile Associations Pin
Dor4-Jun-02 15:46
Dor4-Jun-02 15:46 
GeneralRe: File Associations Pin
Rama Krishna Vavilala4-Jun-02 16:04
Rama Krishna Vavilala4-Jun-02 16:04 
GeneralRe: File Associations Pin
Rama Krishna Vavilala4-Jun-02 16:06
Rama Krishna Vavilala4-Jun-02 16:06 
GeneralRe: File Associations Pin
Dor4-Jun-02 16:11
Dor4-Jun-02 16:11 
GeneralRe: File Associations Pin
Alexandru Savescu4-Jun-02 21:35
Alexandru Savescu4-Jun-02 21:35 
GeneralAccelerator Keys Pin
Anthony98874-Jun-02 14:23
Anthony98874-Jun-02 14:23 
GeneralRe: Accelerator Keys Pin
dazinith4-Jun-02 15:56
dazinith4-Jun-02 15:56 
GeneralRe: Accelerator Keys Pin
Anthony98875-Jun-02 3:14
Anthony98875-Jun-02 3:14 
QuestionCenter text in a list box? Pin
4-Jun-02 13:17
suss4-Jun-02 13:17 
AnswerRe: Center text in a list box? Pin
Rickard Andersson204-Jun-02 21:05
Rickard Andersson204-Jun-02 21:05 
GeneralASCII Code Pin
Frank Deo4-Jun-02 12:18
Frank Deo4-Jun-02 12:18 
GeneralRe: ASCII Code Pin
redeemer4-Jun-02 12:47
redeemer4-Jun-02 12:47 
GeneralRe: ASCII Code Pin
Frank Deo4-Jun-02 13:52
Frank Deo4-Jun-02 13:52 
GeneralVC project common folder Pin
4-Jun-02 11:47
suss4-Jun-02 11:47 

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.