Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load Bitmap with CreateCompatibleBitmap Pin
leorex12-Mar-11 18:11
leorex12-Mar-11 18:11 
GeneralRe: Load Bitmap with CreateCompatibleBitmap Pin
bob1697212-Mar-11 19:55
bob1697212-Mar-11 19:55 
AnswerRe: Load Bitmap with CreateCompatibleBitmap Pin
Richard MacCutchan12-Mar-11 22:49
mveRichard MacCutchan12-Mar-11 22:49 
AnswerRe: Load Bitmap with CreateCompatibleBitmap Pin
Hans Dietrich13-Mar-11 0:15
mentorHans Dietrich13-Mar-11 0:15 
QuestionGdplus::Color to DWORD Pin
csrss12-Mar-11 8:56
csrss12-Mar-11 8:56 
AnswerRe: Gdplus::Color to DWORD Pin
bob1697212-Mar-11 9:37
bob1697212-Mar-11 9:37 
AnswerRe: Gdplus::Color to DWORD Pin
Luc Pattyn12-Mar-11 10:05
sitebuilderLuc Pattyn12-Mar-11 10:05 
GeneralRe: Gdplus::Color to DWORD Pin
bob1697212-Mar-11 11:06
bob1697212-Mar-11 11:06 
That is basically how MakeARGB is defined (and it provides for a common code base) so I'd still recommend it when they are already using GDI+...

typedef DWORD ARGB;

enum
{
AlphaShift = 24,
RedShift = 16,
GreenShift = 8,
BlueShift = 0
};

// Assemble A, R, G, B values into a 32-bit integer

static ARGB MakeARGB(IN BYTE a,
IN BYTE r,
IN BYTE g,
IN BYTE b)
{
return (((ARGB) (b) << BlueShift) |
((ARGB) (g) << GreenShift) |
((ARGB) (r) << RedShift) |
((ARGB) (a) << AlphaShift));
}
GeneralRe: Gdplus::Color to DWORD Pin
csrss12-Mar-11 19:46
csrss12-Mar-11 19:46 
QuestionDebug Error While Running Program on Other Computer Pin
AmbiguousName12-Mar-11 7:20
AmbiguousName12-Mar-11 7:20 
AnswerRe: Debug Error While Running Program on Other Computer Pin
Code-o-mat12-Mar-11 8:53
Code-o-mat12-Mar-11 8:53 
QuestionUSB devices list [modified] Pin
fasked12-Mar-11 3:12
fasked12-Mar-11 3:12 
AnswerRe: USB devices list Pin
Hans Dietrich12-Mar-11 4:53
mentorHans Dietrich12-Mar-11 4:53 
GeneralRe: USB devices list Pin
fasked12-Mar-11 5:23
fasked12-Mar-11 5:23 
AnswerRe: USB devices list Pin
Luc Pattyn12-Mar-11 6:05
sitebuilderLuc Pattyn12-Mar-11 6:05 
QuestionHow to create a process with a different, really restricted user account? Pin
Member 774798412-Mar-11 1:56
Member 774798412-Mar-11 1:56 
AnswerRe: How to create a process with a different, really restricted user account? Pin
Hans Dietrich12-Mar-11 4:57
mentorHans Dietrich12-Mar-11 4:57 
QuestionMove items in ListControl Pin
rjkg11-Mar-11 19:59
rjkg11-Mar-11 19:59 
AnswerRe: Move items in ListControl Pin
Richard MacCutchan11-Mar-11 22:16
mveRichard MacCutchan11-Mar-11 22:16 
GeneralRe: Move items in ListControl Pin
rjkg11-Mar-11 22:44
rjkg11-Mar-11 22:44 
GeneralRe: Move items in ListControl Pin
Richard MacCutchan11-Mar-11 23:15
mveRichard MacCutchan11-Mar-11 23:15 
AnswerRe: Move items in ListControl Pin
Hans Dietrich12-Mar-11 5:23
mentorHans Dietrich12-Mar-11 5:23 
QuestionCannot change the bitmap Pin
leorex11-Mar-11 15:10
leorex11-Mar-11 15:10 
AnswerRe: Cannot change the bitmap Pin
bob1697211-Mar-11 16:36
bob1697211-Mar-11 16:36 
QuestionWM_LBUTTONDBLCLK not being sent? Pin
softwaremonkey11-Mar-11 12:02
softwaremonkey11-Mar-11 12:02 

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.