Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Modal DialogBox Pin
toxcct9-Oct-06 2:24
toxcct9-Oct-06 2:24 
Questionzipping files in C++ Pin
m.dietz9-Oct-06 1:38
m.dietz9-Oct-06 1:38 
AnswerRe: zipping files in C++ Pin
Galatei9-Oct-06 1:58
Galatei9-Oct-06 1:58 
GeneralRe: zipping files in C++ Pin
m.dietz9-Oct-06 2:14
m.dietz9-Oct-06 2:14 
AnswerRe: zipping files in C++ Pin
kakan9-Oct-06 2:19
professionalkakan9-Oct-06 2:19 
AnswerRe: zipping files in C++ Pin
jhwurmbach9-Oct-06 2:21
jhwurmbach9-Oct-06 2:21 
AnswerRe: zipping files in C++ Pin
Hamid_RT9-Oct-06 18:58
Hamid_RT9-Oct-06 18:58 
QuestionHICON problem Pin
HakunaMatada9-Oct-06 1:33
HakunaMatada9-Oct-06 1:33 
I use the following code to draw an icon on the Window.

HICON hIcon = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDI_HELP), IMAGE_ICON, m_nButtonWidth, m_nButtonHeight , LR_DEFAULTCOLOR);
::DrawIconEx(hDC, 2, 2, hIcon, m_nButtonWidth, m_nButtonHeight, 0, NULL, DI_NORMAL);

This draws the icon on the Window. But my problem is that my window has a gradient background and my icon has a white background so when I draw the icon, the square shape of the icon with the white background is visible. I want to make the white portion of the icon transparent so that my Window background is visible. How do I do it?

---
Beer | [beer] Hakuna-Matada Beer | [beer]
It means no worries for the rest of your days...
It's our problem free, Philosophy

Jig | [Dance]

AnswerRe: HICON problem Pin
Hamid_RT9-Oct-06 1:48
Hamid_RT9-Oct-06 1:48 
GeneralRe: HICON problem Pin
HakunaMatada9-Oct-06 1:56
HakunaMatada9-Oct-06 1:56 
GeneralRe: HICON problem Pin
Hamid_RT9-Oct-06 2:18
Hamid_RT9-Oct-06 2:18 
AnswerRe: HICON problem Pin
Galatei9-Oct-06 2:11
Galatei9-Oct-06 2:11 
Questionpassing param to the thread function Pin
singersinger9-Oct-06 1:29
singersinger9-Oct-06 1:29 
AnswerRe: passing param to the thread function Pin
Nibu babu thomas9-Oct-06 1:38
Nibu babu thomas9-Oct-06 1:38 
GeneralRe: passing param to the thread function Pin
singersinger9-Oct-06 2:17
singersinger9-Oct-06 2:17 
GeneralRe: passing param to the thread function Pin
Galatei9-Oct-06 2:44
Galatei9-Oct-06 2:44 
GeneralRe: passing param to the thread function Pin
singersinger9-Oct-06 2:29
singersinger9-Oct-06 2:29 
AnswerRe: passing param to the thread function Pin
David Crow9-Oct-06 4:09
David Crow9-Oct-06 4:09 
AnswerRe: passing param to the thread function Pin
Zac Howland9-Oct-06 5:14
Zac Howland9-Oct-06 5:14 
NewsRe: passing param to the thread function Pin
singersinger10-Oct-06 1:56
singersinger10-Oct-06 1:56 
Questiondialog box color Pin
zon_cpp9-Oct-06 0:06
zon_cpp9-Oct-06 0:06 
AnswerRe: dialog box color Pin
Hamid_RT9-Oct-06 1:24
Hamid_RT9-Oct-06 1:24 
QuestionBoolean statments Pin
Learn2LikeIt9-Oct-06 0:04
Learn2LikeIt9-Oct-06 0:04 
AnswerRe: Boolean statments Pin
benjymous9-Oct-06 0:09
benjymous9-Oct-06 0:09 
AnswerRe: Boolean statments Pin
toxcct9-Oct-06 0:11
toxcct9-Oct-06 0:11 

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.