Jump to content

How do I make Icons Transparent using C++?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Hello

How do I make icon labels transparent using C++?

More info: Make XP Desktop Icon Label Transparent

Please tell me if this is possible to do via C++.

Thanks in advance,

Panarchy

PS: I would like whichever method you suggest to me to be able to run without launching of a command-prompt window.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I helped a project that did this in C++ almost 5 or 6 years ago. It was called cximage and is still around. There is probably better now, though.

#3
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Thanks, however I don't think that's what I'm looking for.

I'm trying to make the icon and the label for the icon transparent.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Does the Icon file you are using have any transparency in it to start with? C++ doesn't, in and of itself, deal with Icons. The OS reads a resource that is included in the compiled file and interprets it as the icon.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Hello

I don't think you're understanding.

The icon itself has transparency (and works perfectly on all the non-server OS's I've tried it on) however, on Server 2003 the option isn't selected, and since I will be installing this on many Server 2003 machines, I don't have the time (also it's best not to do this manually) to do it manually.

So please tell me how to change the system settings to include the drop shadow.

Thanks in advance,

Panarchy

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I don't work with Server 2003. It sounds like the issue is with the OS, not C++ or the icon, however.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Yeah, I wouldn't be surprised.

Anyways, I've worked it out (with a little help from usenet).

Add the following to your NSIS script to achieve transparency on your icon text labels;
Section "Icon Text Label"

WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer
\Advanced" "ListviewShadow" 1
SendMessage ${HWND_BROADCAST} ${WM_SETTINGCHANGE} 0 "STR:Environment" 

SectionEnd

Enjoy ;)

Panarchy

Edited by Panarchy, 26 April 2009 - 02:19 AM.