Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
User 742933831-Jan-11 0:38
professionalUser 742933831-Jan-11 0:38 
GeneralRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Niklas L31-Jan-11 1:08
Niklas L31-Jan-11 1:08 
GeneralRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Graham Shanks31-Jan-11 2:24
Graham Shanks31-Jan-11 2:24 
AnswerRe: want to know meaning of line obj = ( struct xyz * ) ( buffer + offset ); Pin
Graham Shanks31-Jan-11 2:40
Graham Shanks31-Jan-11 2:40 
QuestionTransparent Color Pin
john563231-Jan-11 0:06
john563231-Jan-11 0:06 
AnswerRe: Transparent Color Pin
Niklas L31-Jan-11 1:17
Niklas L31-Jan-11 1:17 
GeneralRe: Transparent Color Pin
john563231-Jan-11 2:08
john563231-Jan-11 2:08 
AnswerRe: Transparent Color Pin
Cool_Dev31-Jan-11 2:11
Cool_Dev31-Jan-11 2:11 
You can simply use ImageAttributes::SetColorKey function.

ImageAttributes imageAttrs;
Color transparentClr(0, 0, 0); //Black
imageAttrs.SetColorKey(transparentclr, transparentclr); //All colors in range Black to Black will be transparent.


Use this image attributes in Graphics::DrawImage

graphics.DrawImage(&yourImage,  yourRect, 0, 0, yourImage.GetWidth(), yourImage.GteHeight(),
                     Gdiplus::UnitPixel, &imageAttrs);

GeneralRe: Transparent Color Pin
john563231-Jan-11 4:53
john563231-Jan-11 4:53 
QuestionHow to create multiple opengl view In same window? Pin
GAJERA30-Jan-11 23:03
GAJERA30-Jan-11 23:03 
QuestionExtra large (256x256) icon shortcut to the control panel applet (CPL) ? Pin
Maxwell Chen30-Jan-11 21:43
Maxwell Chen30-Jan-11 21:43 
Answer[Resolved]: Extra large (256x256) icon shortcut to the control panel applet (CPL) ? Pin
Maxwell Chen10-Feb-11 21:59
Maxwell Chen10-Feb-11 21:59 
Questionsave structure in file Pin
MKC00230-Jan-11 19:57
MKC00230-Jan-11 19:57 
AnswerRe: save structure in file [modified] Pin
Aescleal30-Jan-11 20:07
Aescleal30-Jan-11 20:07 
AnswerRe: save structure in file Pin
Cool_Dev30-Jan-11 20:07
Cool_Dev30-Jan-11 20:07 
QuestionImage Flickering Pin
john563230-Jan-11 18:39
john563230-Jan-11 18:39 
AnswerRe: Image Flickering Pin
Cool_Dev30-Jan-11 18:59
Cool_Dev30-Jan-11 18:59 
GeneralRe: Image Flickering Pin
john563230-Jan-11 19:16
john563230-Jan-11 19:16 
GeneralRe: Image Flickering Pin
Cool_Dev30-Jan-11 19:31
Cool_Dev30-Jan-11 19:31 
AnswerRe: Image Flickering Pin
S p k 52130-Jan-11 19:28
S p k 52130-Jan-11 19:28 
AnswerRe: Image Flickering Pin
Andrew Brock30-Jan-11 19:35
Andrew Brock30-Jan-11 19:35 
QuestionLarge JPEG/PNG Image Sequence Looping Pin
Golden Lee30-Jan-11 0:57
Golden Lee30-Jan-11 0:57 
AnswerRe: Large JPEG/PNG Image Sequence Looping Pin
Chris Losinger31-Jan-11 6:04
professionalChris Losinger31-Jan-11 6:04 
QuestionHow to use CTabCtrl::GetCurSel Pin
Tiffanie Jones29-Jan-11 9:48
Tiffanie Jones29-Jan-11 9:48 
AnswerRe: How to use CTabCtrl::GetCurSel Pin
User 742933829-Jan-11 10:46
professionalUser 742933829-Jan-11 10:46 

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.