Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change the font size of an Edit control? Pin
Cyrus Dang23-Apr-04 6:06
Cyrus Dang23-Apr-04 6:06 
GeneralSwitch btwn nested and non-nested Splitters Pin
mike-o23-Apr-04 4:56
mike-o23-Apr-04 4:56 
GeneralRe: Switch btwn nested and non-nested Splitters Pin
Gary R. Wheeler23-Apr-04 11:30
Gary R. Wheeler23-Apr-04 11:30 
QuestionHow to convert CBitmap to DIB and backwards Pin
uus9923-Apr-04 4:51
uus9923-Apr-04 4:51 
AnswerRe: How to convert CBitmap to DIB and backwards Pin
Chris Losinger23-Apr-04 7:28
professionalChris Losinger23-Apr-04 7:28 
AnswerRe: How to convert CBitmap to DIB and backwards Pin
John R. Shaw23-Apr-04 17:20
John R. Shaw23-Apr-04 17:20 
GeneralRe: How to convert CBitmap to DIB and backwards Pin
uus9923-Apr-04 21:14
uus9923-Apr-04 21:14 
GeneralRe: How to convert CBitmap to DIB and backwards Pin
John R. Shaw27-Apr-04 5:43
John R. Shaw27-Apr-04 5:43 
Sorry I have be gone for a few days.
It almost sounds like the MemDC and the pDC are incompatible, because the color depth of the bitmap should not be the problem. If you select a bitmap of higher resolution than the screen and then blit it to the screen all you should notice, if any thing, is that the colors appear wrong. The only reason (normaly) for using a DIB, insted of a the normal windows bitmap type, is when you need to access the bits directly (more efficeintly). I do no beleive using a DIB will fix the problem. If you do not have a copy of Programming Windows by Charles Petzold, then I recommend you get one, it provides good information on GDI as well as code for working with DIBs. The bit manipulation code in CDibData was based mosly on information from that book.

Good Luck!

P.S. if you figure out what the problem is, please post it.

INTP
GeneralManaged Pointer Problems Pin
Darkhonor23-Apr-04 4:09
Darkhonor23-Apr-04 4:09 
GeneralRe: Managed Pointer Problems Pin
BlackDice23-Apr-04 9:51
BlackDice23-Apr-04 9:51 
GeneralSimple Question...... Pin
monn23-Apr-04 4:05
monn23-Apr-04 4:05 
GeneralRe: Simple Question...... Pin
David Crow23-Apr-04 4:31
David Crow23-Apr-04 4:31 
GeneralRe: Simple Question...... Pin
Prakash Nadar23-Apr-04 6:30
Prakash Nadar23-Apr-04 6:30 
GeneralRe: Simple Question...... Pin
David Crow23-Apr-04 6:46
David Crow23-Apr-04 6:46 
GeneralRe: Simple Question...... Pin
Prakash Nadar23-Apr-04 16:40
Prakash Nadar23-Apr-04 16:40 
GeneralRe: Simple Question...... Pin
Navin23-Apr-04 5:40
Navin23-Apr-04 5:40 
GeneralRe: Simple Question...... Pin
John R. Shaw23-Apr-04 17:40
John R. Shaw23-Apr-04 17:40 
Questioncoordinates of a child window bug?? Pin
Alton Williams23-Apr-04 4:03
Alton Williams23-Apr-04 4:03 
AnswerRe: coordinates of a child window bug?? Pin
Antony M Kancidrowski23-Apr-04 4:47
Antony M Kancidrowski23-Apr-04 4:47 
AnswerRe: coordinates of a child window bug?? Pin
Ravi Bhavnani23-Apr-04 7:03
professionalRavi Bhavnani23-Apr-04 7:03 
GeneralUgly cast Pin
_Magnus_23-Apr-04 3:42
_Magnus_23-Apr-04 3:42 
GeneralRe: Ugly cast Pin
jmkhael23-Apr-04 3:58
jmkhael23-Apr-04 3:58 
GeneralRe: Ugly cast Pin
toxcct23-Apr-04 4:03
toxcct23-Apr-04 4:03 
GeneralRe: Ugly cast Pin
_Magnus_23-Apr-04 4:09
_Magnus_23-Apr-04 4:09 
GeneralRe: Ugly cast Pin
toxcct23-Apr-04 4:11
toxcct23-Apr-04 4: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.