Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding button/control to an existing dialog Pin
Identity Undisclosed10-Feb-09 21:25
Identity Undisclosed10-Feb-09 21:25 
AnswerRe: Adding button/control to an existing dialog Pin
shark_1710-Feb-09 21:32
shark_1710-Feb-09 21:32 
AnswerRe: Adding button/control to an existing dialog Pin
Sarath C10-Feb-09 22:45
Sarath C10-Feb-09 22:45 
AnswerRe: Adding button/control to an existing dialog Pin
Stuart Dootson10-Feb-09 23:01
professionalStuart Dootson10-Feb-09 23:01 
QuestionReading data of a monochrome BMP file Pin
Member 211673610-Feb-09 20:08
Member 211673610-Feb-09 20:08 
AnswerRe: Reading data of a monochrome BMP file Pin
Code-o-mat10-Feb-09 21:49
Code-o-mat10-Feb-09 21:49 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673610-Feb-09 22:26
Member 211673610-Feb-09 22:26 
GeneralRe: Reading data of a monochrome BMP file Pin
Code-o-mat10-Feb-09 23:00
Code-o-mat10-Feb-09 23:00 
You can use bitmasks to gain the pixels out of the bytes, so something like (just to explain and give you a starting point):

SetPixel(x    , y, (bmp_byte &   1)?foreColor:backColor);
SetPixel(x + 1, y, (bmp_byte &   2)?foreColor:backColor);
SetPixel(x + 2, y, (bmp_byte &   4)?foreColor:backColor);
SetPixel(x + 3, y, (bmp_byte &   8)?foreColor:backColor);
SetPixel(x + 4, y, (bmp_byte &  16)?foreColor:backColor);
SetPixel(x + 5, y, (bmp_byte &  32)?foreColor:backColor);
SetPixel(x + 6, y, (bmp_byte &  64)?foreColor:backColor);
SetPixel(x + 7, y, (bmp_byte & 128)?foreColor:backColor);


> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 4:33
Member 211673611-Feb-09 4:33 
AnswerRe: Reading data of a monochrome BMP file Pin
CPallini10-Feb-09 22:04
mveCPallini10-Feb-09 22:04 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673610-Feb-09 22:23
Member 211673610-Feb-09 22:23 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini10-Feb-09 22:59
mveCPallini10-Feb-09 22:59 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 4:35
Member 211673611-Feb-09 4:35 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini11-Feb-09 7:51
mveCPallini11-Feb-09 7:51 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 14:57
Member 211673611-Feb-09 14:57 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini11-Feb-09 22:06
mveCPallini11-Feb-09 22:06 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 22:13
Member 211673611-Feb-09 22:13 
QuestionUsing CDialog::OnOK() Pin
Babu@codeproject10-Feb-09 18:51
Babu@codeproject10-Feb-09 18:51 
AnswerRe: Using CDialog::OnOK() Pin
Eytukan10-Feb-09 19:10
Eytukan10-Feb-09 19:10 
AnswerRe: Using CDialog::OnOK() Pin
SandipG 10-Feb-09 19:42
SandipG 10-Feb-09 19:42 
Question[Message Deleted] Pin
Purish Dwivedi10-Feb-09 17:39
Purish Dwivedi10-Feb-09 17:39 
AnswerRe: Sample multilingual application with full steps using vc++ in visual studio 2005 Pin
Sarath C10-Feb-09 18:51
Sarath C10-Feb-09 18:51 
AnswerREPOST Pin
_AnsHUMAN_ 10-Feb-09 19:32
_AnsHUMAN_ 10-Feb-09 19:32 
Answer2nd Repost.. Please Ignore. Pin
SandipG 10-Feb-09 19:49
SandipG 10-Feb-09 19:49 
General[Message Deleted] Pin
Purish Dwivedi10-Feb-09 21:54
Purish Dwivedi10-Feb-09 21:54 

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.