473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IContextMenu interface problem

HRESULT QueryContextMen u(
HMENU hmenu,
UINT indexMenu,
UINT idCmdFirst,
UINT idCmdLast,
UINT uFlags
);

function gives me to small range of numbers !!!
usually:
idCmdFirst = 31209
idCmdLast = 31226

and I need at least 10 more (I have submenu(popmenu ) ...).

Thx, Rajko.

Nov 17 '05 #1
2 1245
Rajko wrote:
HRESULT QueryContextMen u(
HMENU hmenu,
UINT indexMenu,
UINT idCmdFirst,
UINT idCmdLast,
UINT uFlags
);

function gives me to small range of numbers !!!
usually:
idCmdFirst = 31209
idCmdLast = 31226

and I need at least 10 more (I have submenu(popmenu ) ...).


That's pretty strange. You should ask about this in the newsgroup:

microsoft.publi c.win32.program mer.ui

That's where the shell types hang out.

--
Doug Harrison
Microsoft MVP - Visual C++
Nov 17 '05 #2
Thx Doug.

"Doug Harrison [MVP]" <ds*@mvps.org > wrote in message
news:om******** *************** *********@4ax.c om...
Rajko wrote:
HRESULT QueryContextMen u(
HMENU hmenu,
UINT indexMenu,
UINT idCmdFirst,
UINT idCmdLast,
UINT uFlags
);

function gives me to small range of numbers !!!
usually:
idCmdFirst = 31209
idCmdLast = 31226

and I need at least 10 more (I have submenu(popmenu ) ...).


That's pretty strange. You should ask about this in the newsgroup:

microsoft.publi c.win32.program mer.ui

That's where the shell types hang out.

--
Doug Harrison
Microsoft MVP - Visual C++

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1477
by: miles__ahead | last post by:
Hi. I like to create little utilities for Windows. It's nice to have Shell Integration, such as using the Context Menu. I've googled but haven't seen any Python example code for IContextMenu handlers. Anyone know where I can find some Python examples? Mainly I'm thinking of creating a Python DLL to send messages to running programs when the user selects a command from the Context Menu. TIA
3
2301
by: Pol Bawin | last post by:
A class has a private field of type IWizard (An interface) and a public property to access it. When I try to serialize the Geometry class in XML, i have an error but it works in Binary Can you help me public class Geometry {
7
1447
by: Stephan Rose | last post by:
Ok here is my scenario I have an interface called IScalar which describes a one dimensional number that has a certain unit of measurement. This interface is used to create multiple structures, each structure representing a certain unit of measurement. So I currently end up with 4 structures each implementing the IScalar interface.
4
7876
by: Lars Nielsen | last post by:
I have made a shell extension dll in c# to add a menuitem to the explorer context menu I have implemented these method IShellExtInit.Initializ IContextMenu.QueryContextMen IContextMenu.GetCommandStrin IContextMenu.InvokeComman When I register the dll with regasm and gacutil a menuitem shows in the explorer contextmenu and IShellExtInit.Initialize and IContextMenu.QueryContextMenu gets called. But GetCommandString and
20
4251
by: Ole Hanson | last post by:
I am accessing my database through an interface, to allow future substitution of the physical datastore - hence I would like to declare in my Interface that my DAL-objects implementing the interface and accessing the datastore MUST pass in a UserToken in the constructor of the object. Is this not possible? Am I forced to add the UserToken as a property on the object instead? /Ole
1
5480
by: shafeeque | last post by:
I am building a shell extn. project in .net ide which is converted from vC++ 6.00. During buid i am getting the following error "error C2787: 'IContextMenu' : no GUID has been associated with this object", The same project works fine in VC++6.0. I have included the following files also #include <shlguid.h> #include <shobjidl.h>
15
12777
by: jon | last post by:
How can I call a base interface method? class ThirdPartyClass :IDisposable { //I can not modify this class void IDisposable.Dispose() { Console.WriteLine( "ThirdPartyClass Dispose" ); } } class MyClass :ThirdPartyClass, IDisposable { void IDisposable.Dispose() {
5
10365
by: LS | last post by:
Can a WebMethod return an Interface type? Can we pass an interface parameter ? Example : public interface IEntity { long Id { get; set; } string Name { get; set; } }
12
1298
by: masoud bayan | last post by:
I've come across something in Interface implementation that I am not sure is correct behavior in VB.NET (and maybe C#) or not? Consider following example: Public Interface IShape
2
3364
by: stefan.moser | last post by:
Hi All, I'm having a problem implementing the Separated Interface pattern from Martin Fowler's book Patterns of Enterprise Application Architecture. I'm using C# in Visual Studio 2005. The problem I'm trying to solve is one of validation. Let's say I'm building a book store application and I have a Genre object in my Domain Model. When I'm adding a new genre, I want to validate the new object to make sure that a genre with the same...
0
8347
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8694
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.