mfc >> Is it possible to make CButtons transparent ?
by Scott McPhillips [MVP] » Wed, 26 Nov 2003 21:09:52 GMT
hamid wrote:
> hi,
> Is it possible to make CButtons transparent ? I tryed the transparent flag,
> and OnCtlColor, but it seems they do not do this. The buttons were still
> opaque.
>
> thanks,
>
>
Easy with the owner-draw style. With owner-draw style you paint your
own button. If you don't paint any background there won't be any
background.
--
Scott McPhillips [VC++ MVP]
mfc >> Is it possible to make CButtons transparent ?
by hamid » Thu, 27 Nov 2003 02:12:03 GMT
hi,
Is it possible to make CButtons transparent ? I tryed the transparent flag,
and OnCtlColor, but it seems they do not do this. The buttons were still
opaque.
thanks,
Similar Threads
1. Making a control transparent using C# in VS2005
2. Making only part of the panel transparent ?
Hi all, I'm writting an application in C#, and I need that part of my
panel will be transparent (like a small "hole") so that the user will
be able to see another application (which displays a video) which is
opened beneath my application's panel.
Is it possible?
Thanks.
3. Making image colors transparent - CSharp/C#
4. Making a UserControl Background Transparent
I went thru the walkthough:"Walktrough: Authoring a User Control with Visual
c#".
All is fine except that when I add this control to my form that has a map as
a background, I can't see through the control. The control's BackColor won't
accept Transparent. How do I do this so that the background map shows through?
5. Making systray icon color transparent! - CSharp/C#
6. Making panels transparent?
7. problem making background of static text transparent
8. problem in making perticuler color transparent on an imaged dialog
HI frnds,
I used below 3 line code to make perticuler color transparent on an
imaged dialog in OnInitDiaolog().
its working fine but it makes not to work "C" file, which is been added
to the project.
if i remove these 3line code C file works
if i keep these 3line code it makes my C file nowork.
///////////////////////////////////////
HWND hWnd=GetSafeHwnd();
SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) |
WS_EX_LAYERED);
SetLayeredWindowAttributes(hWnd,RGB(255,0,255),0,LWA_COLORKEY);//I have
make pink color as transparent
///////////////////////////
any ideas ?? plz help
thnx in adv
Neel