Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2007, 01:23 AM
Authorized User
 
Join Date: Jun 2005
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aldwinenriquez
Default Shell Context Menu icons

I have implemented shell context menu icons when you right click a file. I am using transparent icons but when it appears on the window they have blue background.

Eventhough my icons are already transparent I still coded it to explicitly make the background transparent using this line of code.

Color backColor = btMap.GetPixel(1, 2);
btMap.MakeTransparent(backColor);
IntPtr intp = btMap.GetHbitmap();

and I am setting the icons using a COM Interop
Helpers.SetMenuItemBitmaps(hMenu, (uint)iMenu, (int)hMenu, intp, intp);

Still the icons have blue background.What could be the problem here?



"Dont you ever give up!"
__________________
\"Dont you ever give up!\"
 
Old March 3rd, 2011, 01:43 AM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Aldwin,

Did you ever resolve this issue?

I am experiencing the same exact problem.

Thank you!





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
Context Menu Shell Extension problem aldwinenriquez .NET Framework 2.0 1 December 18th, 2007 07:35 AM
Creating Menu Icons sureshkumarct Beginning VB 6 2 January 23rd, 2006 04:28 AM
Icons in Menu ashu_from_india Pro VB 6 2 June 3rd, 2005 10:58 PM
Menu Icons snowy0 VB.NET 2002/2003 Basics 2 September 28th, 2004 08:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.