Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
QuestionDNS Entry Pin
AB777124-Jan-07 19:41
AB777124-Jan-07 19:41 
QuestionDNS Entry Pin
AB777124-Jan-07 19:38
AB777124-Jan-07 19:38 
Questioninstall error:cabinet not found Pin
rooh57200124-Jan-07 19:27
rooh57200124-Jan-07 19:27 
Questionxml Pin
justintimberlake24-Jan-07 18:41
justintimberlake24-Jan-07 18:41 
AnswerRe: xml Pin
Shajeel24-Jan-07 19:13
Shajeel24-Jan-07 19:13 
Questionxml Pin
justintimberlake24-Jan-07 18:41
justintimberlake24-Jan-07 18:41 
QuestionLocalization and Internationalization Help needed Pin
ind_coder24-Jan-07 18:35
ind_coder24-Jan-07 18:35 
QuestionContext Menu for VS Template Pin
Sohail_Alig24-Jan-07 18:31
Sohail_Alig24-Jan-07 18:31 
Hi this mail is regarding the addition of context menu in Visual Studio IDE. We want to add a menu item in the context menu after right clicking on VS Template, the approach is to open an another window after clicking the context menu item which would allow us to add some files in solution explorer.



We have tried it through VSIP(Visual Studio Integration Package) but were not able to add the context menu item. As we found, we can add item in Context Menu for Code window, Tool Box Item, Solution Explorer, Toolbar etc. which where very generic. But here we are looking for specific context menu item and that’s with VS Template only.



After study for VSIP we found that for each context menu there is Context Menu Identifiers and these Identifiers are used with GUID Identifiers. Both the Context Menu identifiers and GUID identifiers use hexadecimal numbers and all are different from each other. So if we want to define our own context menu for a particular scenario(Let say right click on VS Template) then



How we should pick this hexadecimal number for GUID and Context Menu Identifier.
Where to write the event binding code for the user defined context menu.




Following are few examples of GUID and Context Menu identifiers available in Visual studio Shell which we have taken from vsshlids.h files found in <drive:>\ \Program Files\Visual Studio 2005 SDK\2006.09\VisualStudioIntegration\Common\Inc folder.











// Guid for Shell's group and menu ids

DEFINE_GUID (guidSHLMainMenu,

0xd309f791, 0x903f, 0x11d0, 0x9e, 0xfc, 0x00, 0xa0, 0xc9, 0x11, 0x00, 0x4f);



// Guid for Shell's group and menu ids

#define guidSHLMainMenu { 0xd309f791, 0x903f, 0x11d0, { 0x9e, 0xfc, 0x00, 0xa0, 0xc9, 0x11, 0x00, 0x4f } }



//////////////////////////////////////////////////////////////////////////////

//

// Context Menu Identifiers, created by Visual Studio Shell

//

//////////////////////////////////////////////////////////////////////////////

#define IDM_VS_CTXT_PROJNODE 0x0402

#define IDM_VS_CTXT_PROJWIN 0x0403

#define IDM_VS_CTXT_PROJWINBREAK 0x0404

#define IDM_VS_CTXT_ERRORLIST 0x0405

#define IDM_VS_CTXT_DOCKEDWINDOW 0x0406

#define IDM_VS_CTXT_MENUDES 0x0407

#define IDM_VS_CTXT_PROPBRS 0x0408

#define IDM_VS_CTXT_TOOLBOX 0x0409

// UNUSED: 0x040A - 0x040C

#define IDM_VS_CTXT_CODEWIN 0x040D

#define IDM_VS_CTXT_TASKLIST 0x040E

#define IDM_VS_CTXT_RESULTSLIST 0x0411

#define IDM_VS_CTXT_STUBPROJECT 0x0412

#define IDM_VS_CTXT_SOLNNODE 0x0413

#define IDM_VS_CTXT_SOLNFOLDER 0x0414
QuestionAxMSChart20Lib.AxMSChart Pin
GunaChinna24-Jan-07 17:10
GunaChinna24-Jan-07 17:10 
QuestionReflection question Pin
Jamie Nordmeyer24-Jan-07 16:54
Jamie Nordmeyer24-Jan-07 16:54 
AnswerRe: Reflection question Pin
Luc Pattyn24-Jan-07 18:48
sitebuilderLuc Pattyn24-Jan-07 18:48 
AnswerRe: Reflection question Pin
Shajeel24-Jan-07 19:00
Shajeel24-Jan-07 19:00 
GeneralRe: Reflection question Pin
Jamie Nordmeyer25-Jan-07 4:15
Jamie Nordmeyer25-Jan-07 4:15 
GeneralRe: Reflection question Pin
Jamie Nordmeyer25-Jan-07 4:36
Jamie Nordmeyer25-Jan-07 4:36 
GeneralRe: Reflection question Pin
Jamie Nordmeyer25-Jan-07 5:00
Jamie Nordmeyer25-Jan-07 5:00 
AnswerRe: Reflection question Pin
Seishin#24-Jan-07 21:46
Seishin#24-Jan-07 21:46 
GeneralRe: Reflection question Pin
Jamie Nordmeyer25-Jan-07 4:14
Jamie Nordmeyer25-Jan-07 4:14 
Questionnewbie: DataGridView doesnt Respond for MouseClicks Pin
Monika Dotnet Newbie24-Jan-07 16:38
Monika Dotnet Newbie24-Jan-07 16:38 
AnswerRe: newbie: DataGridView doesnt Respond for MouseClicks Pin
tigreder24-Jan-07 21:56
tigreder24-Jan-07 21:56 
QuestionCommand Prompt Showing [modified] Pin
dsl/fahk24-Jan-07 16:20
dsl/fahk24-Jan-07 16:20 
AnswerRe: Command Prompt Showing Pin
ShermansLagoon24-Jan-07 20:32
ShermansLagoon24-Jan-07 20:32 
GeneralRe: Command Prompt Showing Pin
dsl/fahk25-Jan-07 0:54
dsl/fahk25-Jan-07 0:54 
QuestionInvokeRequired question Pin
JoeRip24-Jan-07 15:11
JoeRip24-Jan-07 15:11 
AnswerRe: InvokeRequired question Pin
Luc Pattyn24-Jan-07 15:17
sitebuilderLuc Pattyn24-Jan-07 15:17 
GeneralRe: InvokeRequired question Pin
JoeRip24-Jan-07 15:30
JoeRip24-Jan-07 15:30 

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.