Click here to Skip to main content
16,018,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating Process Pin
Programm3r1-Mar-07 3:28
Programm3r1-Mar-07 3:28 
GeneralRe: Creating Process Pin
toxcct1-Mar-07 3:31
toxcct1-Mar-07 3:31 
GeneralRe: Creating Process Pin
Eytukan1-Mar-07 3:39
Eytukan1-Mar-07 3:39 
GeneralRe: Creating Process Pin
David Crow1-Mar-07 3:42
David Crow1-Mar-07 3:42 
GeneralRe: Creating Process Pin
Eytukan1-Mar-07 3:51
Eytukan1-Mar-07 3:51 
GeneralRe: Creating Process Pin
toxcct1-Mar-07 3:44
toxcct1-Mar-07 3:44 
GeneralRe: Creating Process Pin
Eytukan1-Mar-07 3:55
Eytukan1-Mar-07 3:55 
QuestionTransparency - please help, nothing works... Pin
PatrykDabrowski1-Mar-07 1:22
PatrykDabrowski1-Mar-07 1:22 
Hello! For couple of weeks I still have a problem with transparent buttons on toolbar. Toolbar background is 24bit image, buttons are also 24bit, VS2003, WinXP.

What I do (background):
1) Load standard 24bit BMP to CBitmap object
2) Create pattern brush based on bitmap from 1)
3) Use FillRect() inside OnEraseBkgnd().
Background is ok, drawing works fine.

Now the buttons:
Solution A:
1) Load 24bit BMP to CBitmap
2) Create CImageList based on 1) using ILC_COLOR32|ILC_MASK
3) Create mask by Add() function with proper RGB() transparent color
4) Use SetImageList() in toolbar control object
RESULT -> NO transparency (round buttons have plain color in the transparent color spots)

Solution B:
1) Load 24bit PNG with transparency to CImage
2) Create CBitmap based on (HBITMAP) operator from 1)
3) Continue steps 2-4 from Solution 1
RESULT -> NO transparency

Solution C:
1) Use CImage like in Solution B but use directly SetBitmap() from CToolbar
RESULT -> again no transparency.

Is there any simple way to get it working?? Basicly I want to have transparent bitmap on buttons. That means, I want to see bankground texture in the 'holes' in buttons (where the button's color == transparent color)

Please, enlighten meSmile | :) I've read many articles and found one solution but it was quite complicated and used many derived classes... ("BitmapToolBarResrch_en" project)

Solution can be Win2k/XP+ for MFC.

Thank a lot!!
AnswerRe: Transparency - please help, nothing works... Pin
Chris Losinger1-Mar-07 3:19
professionalChris Losinger1-Mar-07 3:19 
QuestionRe: Transparency - please help, nothing works... Pin
PatrykDabrowski1-Mar-07 3:46
PatrykDabrowski1-Mar-07 3:46 
AnswerRe: Transparency - please help, nothing works... Pin
Chris Losinger1-Mar-07 3:53
professionalChris Losinger1-Mar-07 3:53 
Questionithgethostbyname() Pin
vibindia1-Mar-07 1:18
vibindia1-Mar-07 1:18 
AnswerRe: ithgethostbyname() Pin
_AnsHUMAN_ 1-Mar-07 1:44
_AnsHUMAN_ 1-Mar-07 1:44 
QuestionHow to use SetFont function to change font of controls? Pin
Atul231-Mar-07 1:09
Atul231-Mar-07 1:09 
AnswerRe: How to use SetFont function to change font of controls? Pin
Hamid Taebi1-Mar-07 1:15
professionalHamid Taebi1-Mar-07 1:15 
AnswerRe: How to use SetFont function to change font of controls? Pin
Hamid Taebi1-Mar-07 1:25
professionalHamid Taebi1-Mar-07 1:25 
QuestionVS 2005 and C++ Pin
MoustafaS1-Mar-07 1:08
MoustafaS1-Mar-07 1:08 
AnswerRe: VS 2005 and C++ Pin
prasad_som1-Mar-07 1:23
prasad_som1-Mar-07 1:23 
GeneralRe: VS 2005 and C++ Pin
MoustafaS1-Mar-07 2:13
MoustafaS1-Mar-07 2:13 
AnswerRe: VS 2005 and C++ [modified] Pin
prasad_som1-Mar-07 2:23
prasad_som1-Mar-07 2:23 
GeneralRe: VS 2005 and C++ Pin
MoustafaS1-Mar-07 4:50
MoustafaS1-Mar-07 4:50 
AnswerRe: VS 2005 and C++ Pin
benjymous1-Mar-07 2:31
benjymous1-Mar-07 2:31 
GeneralRe: VS 2005 and C++ Pin
MoustafaS1-Mar-07 4:50
MoustafaS1-Mar-07 4:50 
QuestionWin32 Console Application Pin
Programm3r1-Mar-07 1:07
Programm3r1-Mar-07 1:07 
AnswerRe: Win32 Console Application Pin
Naveen1-Mar-07 1:15
Naveen1-Mar-07 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.