Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPlease help with Screen Capture Wallpaper with PaintDesktop(HDC hdc) API Pin
JavaTony8-Jun-01 20:06
JavaTony8-Jun-01 20:06 
GeneralRe: Please help with Screen Capture Wallpaper with PaintDesktop(HDC hdc) API Pin
Christian Graus8-Jun-01 20:32
protectorChristian Graus8-Jun-01 20:32 
GeneralRe: Please help with Screen Capture Wallpaper with PaintDesktop(HDC hdc) API Pin
Tomasz Sowinski9-Jun-01 2:48
Tomasz Sowinski9-Jun-01 2:48 
GeneralCDialogBar Pin
8-Jun-01 12:01
suss8-Jun-01 12:01 
QuestionHow do you create a "Hidden" view in MDI apps? Pin
Paul Steven McLeish8-Jun-01 10:13
Paul Steven McLeish8-Jun-01 10:13 
AnswerRe: How do you create a Pin
#realJSOP9-Jun-01 2:24
professional#realJSOP9-Jun-01 2:24 
Generalpop up menu Pin
mr20038-Jun-01 8:43
mr20038-Jun-01 8:43 
GeneralRe: pop up menu Pin
Oliver Daniel8-Jun-01 14:24
Oliver Daniel8-Jun-01 14:24 
First, I generally add a message handler for WM_CONTEXTMENU (OnContextMenu) with the necessary code for the popup menu.

Next, I believe that the popup menu is a sub menu of a menu resource not the menu resource itself.

In other words you need to call GetSubMenu with the handle of the menu resource and position of the sub menu that will appear as the popup. The position will be zero if there is only one menu in the resource. GetSubMenu will return the handle of the popup menu which you then pass to TrackPopupMenu.

Hope that helps.

- Oliver Daniel

GeneralRe: pop up menu Pin
mr20039-Jun-01 13:52
mr20039-Jun-01 13:52 
GeneralDynamic control over treelist view Pin
hearties8-Jun-01 8:37
hearties8-Jun-01 8:37 
Generalautomation server register error Pin
ernst.maurer8-Jun-01 8:34
ernst.maurer8-Jun-01 8:34 
GeneralApplication and file name Pin
mr20038-Jun-01 7:42
mr20038-Jun-01 7:42 
GeneralRe: Application and file name Pin
Paul Steven McLeish8-Jun-01 10:23
Paul Steven McLeish8-Jun-01 10:23 
GeneralRe: Application and file name Pin
mr20039-Jun-01 13:53
mr20039-Jun-01 13:53 
GeneralRe: Application and file name Pin
Paul Steven McLeish11-Jun-01 8:16
Paul Steven McLeish11-Jun-01 8:16 
QuestionClose view from OnUpdate? Pin
Marc Tompkins8-Jun-01 7:10
Marc Tompkins8-Jun-01 7:10 
AnswerRe: Close view from OnUpdate? Pin
Michael Dunn8-Jun-01 10:28
sitebuilderMichael Dunn8-Jun-01 10:28 
Generalpointer question.... Pin
hearties8-Jun-01 6:48
hearties8-Jun-01 6:48 
GeneralRe: pointer question.... Pin
Stan Shannon8-Jun-01 7:01
Stan Shannon8-Jun-01 7:01 
GeneralEmail sniffer Pin
Erik Yuzwa8-Jun-01 6:34
Erik Yuzwa8-Jun-01 6:34 
GeneralRe: Email sniffer Pin
Erik Yuzwa8-Jun-01 6:48
Erik Yuzwa8-Jun-01 6:48 
GeneralQuestions on the TCP/IP Stack of Win9x Pin
skfnmuislædmufaæoi8-Jun-01 6:18
skfnmuislædmufaæoi8-Jun-01 6:18 
GeneralRe: Questions on the TCP/IP Stack of Win9x Pin
Anders Molin8-Jun-01 6:23
professionalAnders Molin8-Jun-01 6:23 
GeneralMessage queue overload Pin
8-Jun-01 6:12
suss8-Jun-01 6:12 
GeneralRe: Message queue overload Pin
skfnmuislædmufaæoi8-Jun-01 6:24
skfnmuislædmufaæoi8-Jun-01 6:24 

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.