473,378 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Hiding/Removing the Triangle from Parent MenuItem

Hi All,

I am trying to supress the small black triangle that shows up in the
menus meaning the menuitem is parent. The reason for that is I drew my
own 3D looking triangle in DrawItem using GraphicPath glyph. What I
have right now is my 3D triangle and default windows menu triangle on
it.

My question is, is it possible to hide this default triangle or send it
behind mine or some other way of doing this?

Thanks in advance

Nov 17 '05 #1
2 1920
<ja*******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am trying to supress the small black triangle that shows up in the
menus meaning the menuitem is parent. The reason for that is I drew my
own 3D looking triangle in DrawItem using GraphicPath glyph. What I
have right now is my 3D triangle and default windows menu triangle on
it.

My question is, is it possible to hide this default triangle or send it
behind mine or some other way of doing this?


It is possible to take charge for _all_ of the drawing details of a menu by
marking it as "owner-drawn". Follow this link

http://msdn.microsoft.com/library/de...usingmenus.asp

and read the section on owner-drawing.

Please post follow-up in the user interface group

microsoft.public.win32.programmer.ui

Regards,
Will
Nov 17 '05 #2
On Tue, 26 Apr 2005 17:06:49 -0400, "William DePalo [MVP VC++]"
<wi***********@mvps.org> wrote:
<ja*******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googleg roups.com...
I am trying to supress the small black triangle that shows up in the
menus meaning the menuitem is parent. The reason for that is I drew my
own 3D looking triangle in DrawItem using GraphicPath glyph. What I
have right now is my 3D triangle and default windows menu triangle on
it.

My question is, is it possible to hide this default triangle or send it
behind mine or some other way of doing this?


It is possible to take charge for _all_ of the drawing details of a menu by
marking it as "owner-drawn". Follow this link

http://msdn.microsoft.com/library/de...usingmenus.asp

and read the section on owner-drawing.

Please post follow-up in the user interface group

microsoft.public.win32.programmer.ui


The problem is that Windows paints the triangle after you draw the
menu item. (I assume from the OP's description that he's already using
an owner-draw menu item).

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
Nov 17 '05 #3

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

Similar topics

1
by: Giedrius | last post by:
Well, after developing a plugin based architecture, with lots of menuitems, i found that after adding a menuitem, and later removing, results in increased memory. I know all that thing with...
2
by: darrel | last post by:
I am storing my site structure as such: <menuItems> <menuItem> <pageID>1</pageID> </menuItem> <menuItem> <pageID>2</pageID> <menuItem> <pageID>4</pageID>
6
by: Claus Holm | last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather than making the menuitems public, I'd go for a public method in the parent form to do the change, but when I call the...
3
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
3
by: VMI | last post by:
How difficult is it to hide my program in the system tray? It's not something that's required, but it'd look to add it since the program will be writing an ascii file every minute. And it wouldn't...
1
by: Michael | last post by:
Hi Everyone, I seem to be having a problem accessing a menuitem on the MDIParent from a child form. From a login (frmSecurity -child form) screen, I need to hide a menuitem based on the users...
14
by: neerajb | last post by:
Hi, I am having an XML document(input.xml) which is showing the menu heirarchy used in my application.My requirement is to add "submenu" tag to those menuitems who are having the child menuitems...
0
by: jobs | last post by:
On the asp.net 2.0 menu control under vs 2005. Any way to remove that black arrow on menu items that have a submenu? Any way to equally size menu items dispite text site of menu item? Thanks...
0
by: jobs | last post by:
Hi. I have a menu horizontal on the top. I figured out that if I set this property the black arrow on parent items goes away.. StaticEnableDefaultPopOutImage="False" However, the item is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.