Click here to Skip to main content
15,914,452 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: IHTMLLocation, hr = 0x80040154 Pin
User 21559725-Dec-06 0:25
User 21559725-Dec-06 0:25 
GeneralRe: IHTMLLocation, hr = 0x80040154 Pin
Jeffrey Walton18-Dec-06 4:46
Jeffrey Walton18-Dec-06 4:46 
GeneralRe: IHTMLLocation, hr = 0x80040154 Pin
Jeffrey Walton23-Dec-06 19:01
Jeffrey Walton23-Dec-06 19:01 
AnswerRe: IHTMLLocation, hr = 0x80040154 Pin
Jeffrey Walton23-Dec-06 19:03
Jeffrey Walton23-Dec-06 19:03 
GeneralRe: IHTMLLocation, hr = 0x80040154 Pin
Jeffrey Walton24-Dec-06 8:22
Jeffrey Walton24-Dec-06 8:22 
QuestionAdding events in Automation server Pin
User 21559715-Dec-06 1:18
User 21559715-Dec-06 1:18 
QuestionIContextMenu2 and Menu Icon Pin
Jeffrey Walton13-Dec-06 23:22
Jeffrey Walton13-Dec-06 23:22 
QuestionContext Menu Handler and InsertMenu Pin
Jeffrey Walton13-Dec-06 19:02
Jeffrey Walton13-Dec-06 19:02 
Hi All,

I've used Michael Dunn's article[^] to create two Context Menu handlers. They are housed in separate DLLs. They are basically carbon copies of one another (and the sample which Michael provides) except names. Each uses the same insertion code:
InsertMenu( hmenu, uMenuIndex, MF_BYPOSITION, uidFirstCmd, _T("Menu Item Name") );

However, the items are not placed one after the other ('stacked') as I would expect. As a matter of fact, Windows (at times) places a separator bar between them:

Open with WinZip
Print
----------------
Menu Item 1
----------------
Scan for Viruses
Open With...
Menu Item 2
Winzip
----------------
...

Any ideas to get these fellows to stick together?

Jeff

----------------
AnswerRe: Context Menu Handler and InsertMenu Pin
Michael Dunn13-Dec-06 19:51
sitebuilderMichael Dunn13-Dec-06 19:51 
GeneralRe: Context Menu Handler and InsertMenu Pin
Jeffrey Walton13-Dec-06 23:00
Jeffrey Walton13-Dec-06 23:00 
GeneralRe: Context Menu Handler and InsertMenu Pin
Jeffrey Walton13-Dec-06 23:06
Jeffrey Walton13-Dec-06 23:06 
QuestionSimple ATL problem! Pin
alicqin13-Dec-06 14:03
alicqin13-Dec-06 14:03 
AnswerRe: Simple ATL problem! Pin
prasad_som13-Dec-06 18:18
prasad_som13-Dec-06 18:18 
GeneralRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:35
alicqin14-Dec-06 16:35 
AnswerRe: Simple ATL problem! Pin
User 21559714-Dec-06 3:31
User 21559714-Dec-06 3:31 
GeneralRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:36
alicqin14-Dec-06 16:36 
AnswerRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:34
alicqin14-Dec-06 16:34 
QuestionSelect all accelerator for edit controls Pin
blueluna13-Dec-06 2:18
blueluna13-Dec-06 2:18 
AnswerRe: Select all accelerator for edit controls Pin
Steve Echols13-Dec-06 18:54
Steve Echols13-Dec-06 18:54 
QuestionHow to remove horizontal scroll bar in list control? Pin
Pradeep.Reddy12-Dec-06 23:06
Pradeep.Reddy12-Dec-06 23:06 
GeneralRe: How to remove horizontal scroll bar in list control? Pin
Pradeep.Reddy21-Dec-06 1:33
Pradeep.Reddy21-Dec-06 1:33 
QuestionRead the contents of a file Pin
Anil_vvs12-Dec-06 17:41
Anil_vvs12-Dec-06 17:41 
AnswerRe: Read the contents of a file Pin
Stephen Hewitt12-Dec-06 18:26
Stephen Hewitt12-Dec-06 18:26 
GeneralRe: Read the contents of a file Pin
Anil_vvs12-Dec-06 18:35
Anil_vvs12-Dec-06 18:35 
GeneralRe: Read the contents of a file Pin
led mike12-Dec-06 18:40
led mike12-Dec-06 18:40 

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.