Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
CPallini28-Mar-11 6:02
mveCPallini28-Mar-11 6:02 
AnswerRe: Can we stop and .exe from anthoer .exe Pin
Rolf Kristensen28-Mar-11 7:07
Rolf Kristensen28-Mar-11 7:07 
GeneralRe: Can we stop and .exe from anthoer .exe Pin
pandit8428-Mar-11 7:19
pandit8428-Mar-11 7:19 
QuestionHow to screenshot as a single color bitmap file? Pin
wangningyu27-Mar-11 17:17
wangningyu27-Mar-11 17:17 
AnswerRe: How to screenshot as a single color bitmap file? Pin
Ozer Karaagac28-Mar-11 14:11
professionalOzer Karaagac28-Mar-11 14:11 
GeneralRe: How to screenshot as a single color bitmap file? Pin
wangningyu28-Mar-11 14:18
wangningyu28-Mar-11 14:18 
GeneralRe: How to screenshot as a single color bitmap file? Pin
wangningyu28-Mar-11 17:38
wangningyu28-Mar-11 17:38 
GeneralRe: How to screenshot as a single color bitmap file? Pin
Ozer Karaagac28-Mar-11 18:19
professionalOzer Karaagac28-Mar-11 18:19 
bmiColors member of BITMAPINFO is variable sized array. Its size can be zero or more depending on other attributes such as biClrUsed, biBitCount and last parameter of GetDIBits() which can be DIB_PAL_COLORS or DIB_RGB_COLORS.

BITMAPINFOHEADER[^]

Excerpt from above link.

If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the bitmap has a color table immediatelly following the BITMAPINFOHEADER structure. The color table consists of an array of RGBQUAD values. The size of the array is given by the biClrUsed member. If biClrUsed is zero, the array contains the maximum number of colors for the given bitdepth; that is, 2^biBitCount colors.

In our case, 2 ^ 8 = 256 color table entries exist.

You may also want to look at BITMAPINFO[^].

If bmpInfo.bmiHeader.biBitCount = 0x01; then it is a monochrome bitmap and color table will have two entries (e.g. RGB(0, 0, 0) and RGB(255, 255, 255)).

Color table is array of colors used in the bitmap.
QuestionHow to create a windowless control after implementing all the necessary interfaces? Pin
followait26-Mar-11 22:04
followait26-Mar-11 22:04 
QuestionLetter drawing Pin
transoft25-Mar-11 6:40
transoft25-Mar-11 6:40 
AnswerRe: Letter drawing Pin
Richard MacCutchan25-Mar-11 7:21
mveRichard MacCutchan25-Mar-11 7:21 
AnswerRe: Letter drawing Pin
Code-o-mat25-Mar-11 10:02
Code-o-mat25-Mar-11 10:02 
AnswerRe: Letter drawing Pin
Niklas L26-Mar-11 8:53
Niklas L26-Mar-11 8:53 
QuestionKey Press Event Pin
rjkg25-Mar-11 2:44
rjkg25-Mar-11 2:44 
AnswerRe: Key Press Event Pin
Joan M26-Mar-11 3:46
professionalJoan M26-Mar-11 3:46 
Questionproblem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
gogosai24-Mar-11 22:13
gogosai24-Mar-11 22:13 
AnswerRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Nitheesh George24-Mar-11 22:18
Nitheesh George24-Mar-11 22:18 
AnswerRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Nitheesh George24-Mar-11 22:33
Nitheesh George24-Mar-11 22:33 
GeneralRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
gogosai24-Mar-11 23:10
gogosai24-Mar-11 23:10 
GeneralRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Albert Holguin25-Mar-11 13:34
professionalAlbert Holguin25-Mar-11 13:34 
GeneralRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Nitheesh George27-Mar-11 18:27
Nitheesh George27-Mar-11 18:27 
GeneralRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Albert Holguin28-Mar-11 3:58
professionalAlbert Holguin28-Mar-11 3:58 
QuestionHow can I change background/text color of CComboBox ? Pin
_Flaviu24-Mar-11 8:30
_Flaviu24-Mar-11 8:30 
AnswerRe: How can I change background/text color of CComboBox ? [modified for conversion from Q to A] Pin
Ozer Karaagac24-Mar-11 15:41
professionalOzer Karaagac24-Mar-11 15:41 
GeneralRe: How can I change background/text color of CComboBox ? Pin
Albert Holguin24-Mar-11 15:43
professionalAlbert Holguin24-Mar-11 15:43 

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.