Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: retrieve MSN messenger conversations Pin
ThatsAlok17-Oct-05 18:02
ThatsAlok17-Oct-05 18:02 
Questionservices in xp Pin
Archer28216-Oct-05 13:25
Archer28216-Oct-05 13:25 
AnswerRe: services in xp Pin
GflPower16-Oct-05 17:11
GflPower16-Oct-05 17:11 
GeneralRe: services in xp Pin
Archer28216-Oct-05 17:16
Archer28216-Oct-05 17:16 
GeneralRe: services in xp Pin
l a u r e n16-Oct-05 18:46
l a u r e n16-Oct-05 18:46 
GeneralRe: services in xp Pin
ThatsAlok16-Oct-05 18:57
ThatsAlok16-Oct-05 18:57 
AnswerRe: services in xp Pin
Archer28216-Oct-05 19:36
Archer28216-Oct-05 19:36 
QuestionDrawIconEx & ILD_BLEND50 Pin
ClickHeRe16-Oct-05 11:25
ClickHeRe16-Oct-05 11:25 
Hello,

I'm building owner drawn menus and when using this

ImageList_DrawEx( himl, this->m_nIcon, lpdis->hDC, x, y, 0, 0, CLR_NONE, RGB(128,128,128), ILD_BLEND50 );

The icon color is only dimed, but not blended with the specified RGB color and yes my icon has a mask as I can draw it with ILD_MASK and I see a black icon painted which is the mask.

Piece of MSDN help
---------------------

rgbFg
Foreground color of the image. This parameter can be an application-defined RGB value or one of the following values:

CLR_NONE - No blend color. The image is blended with the color of the destination device context.
CLR_DEFAULT - Default foreground color. The image is drawn using the system highlight color as the foreground color.

fStyle
Drawing style and, optionally, the overlay image. For information about specifying an overlay image index, see the comments section at the end of this topic. This parameter can be a combination of an overlay image index and one or more of the following values:

ILD_BLEND25,
ILD_FOCUS
Draws the image, blending 25 percent with the blend color specified by rgbFg. This value has no effect if the image list does not contain a mask.

ILD_BLEND50,
ILD_SELECTED,
ILD_BLEND
Draws the image, blending 50 percent with the blend color specified by rgbFg. This value has no effect if the image list does not contain a mask.

-------------------

Note: Using Win32 API, no MFC

Thanks

David

-- modified at 17:25 Sunday 16th October, 2005
GeneralRe: DrawIconEx & ILD_BLEND50 Pin
Shog916-Oct-05 19:57
sitebuilderShog916-Oct-05 19:57 
GeneralRe: DrawIconEx & ILD_BLEND50 Pin
ClickHeRe17-Oct-05 0:02
ClickHeRe17-Oct-05 0:02 
GeneralRe: DrawIconEx & ILD_BLEND50 Pin
Shog917-Oct-05 6:32
sitebuilderShog917-Oct-05 6:32 
GeneralRe: DrawIconEx & ILD_BLEND50 Pin
ClickHeRe17-Oct-05 7:09
ClickHeRe17-Oct-05 7:09 
AnswerRe: DrawIconEx & ILD_BLEND50 Pin
Shog917-Oct-05 8:38
sitebuilderShog917-Oct-05 8:38 
QuestionCResourceException Pin
LighthouseJ16-Oct-05 10:44
LighthouseJ16-Oct-05 10:44 
AnswerRe: CResourceException Pin
Anonymous16-Oct-05 15:35
Anonymous16-Oct-05 15:35 
GeneralRe: CResourceException Pin
LighthouseJ16-Oct-05 16:00
LighthouseJ16-Oct-05 16:00 
GeneralRe: CResourceException Pin
LighthouseJ16-Oct-05 16:35
LighthouseJ16-Oct-05 16:35 
Questionto create :exe file Pin
sheshidar16-Oct-05 9:24
sheshidar16-Oct-05 9:24 
AnswerRe: to create :exe file Pin
Christian Graus16-Oct-05 9:46
protectorChristian Graus16-Oct-05 9:46 
AnswerRe: to create :exe file Pin
Bob Stanneveld16-Oct-05 10:43
Bob Stanneveld16-Oct-05 10:43 
QuestionHow to get the right URL before navigating the web page in the CHtmlView? Pin
superhandwolf16-Oct-05 7:11
superhandwolf16-Oct-05 7:11 
QuestionWindows Media Player Plugins (help plz) Pin
Member 236489616-Oct-05 6:54
Member 236489616-Oct-05 6:54 
QuestionHelp me on TAPI Pin
Cao Jianlin16-Oct-05 3:21
Cao Jianlin16-Oct-05 3:21 
AnswerRe: Help me on TAPI Pin
GflPower16-Oct-05 17:18
GflPower16-Oct-05 17:18 
QuestionInvalidateRect() Efficiency Pin
Cliff Hatch16-Oct-05 1:26
Cliff Hatch16-Oct-05 1:26 

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.