Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Singleton class Pin
Member 118395929-Jun-04 20:02
Member 118395929-Jun-04 20:02 
GeneralRe: Singleton class Pin
Henry miller30-Jun-04 3:03
Henry miller30-Jun-04 3:03 
Generalrun 2 exe files at the same time Pin
vietdung29-Jun-04 18:56
vietdung29-Jun-04 18:56 
GeneralRe: run 2 exe files at the same time Pin
parths29-Jun-04 19:27
parths29-Jun-04 19:27 
GeneralRe: run 2 exe files at the same time Pin
yummi29-Jun-04 19:57
yummi29-Jun-04 19:57 
Generalchanging from debug to Release mode Pin
Anonymous29-Jun-04 18:40
Anonymous29-Jun-04 18:40 
GeneralRe: changing from debug to Release mode Pin
Ryan Binns29-Jun-04 18:57
Ryan Binns29-Jun-04 18:57 
GeneralSee this code.. Pin
johnny,Kim29-Jun-04 16:04
johnny,Kim29-Jun-04 16:04 
CDC memDC;
memDC.CreateCompatibleDC(NULL)

I made memory dc with Parameter NULL, which means SYSTEM compatible DC as far as i know..
Because I can't use View's DC in my module that manipulate Bitmap..

And then I made CBitmap..

CBitmap bitmap;
bitmap.CreateCompatibleBitmap(&memDC, 200,200);

But What I noticed here is the bitmap that I've just created is 1bit bitmap,
that is white-black bitmap..

I can not understand why..

I saw some source that manipulate bitmap like rotate.. stretch here..
That used same kind of memDC, which was created by the function CreateCompatibleDC with NULL Parameter..
The bitmap that source created was full color bitmap..

What's wrong with my code?
GeneralRe: See this code.. Pin
Christian Graus29-Jun-04 16:28
protectorChristian Graus29-Jun-04 16:28 
GeneralRe: See this code.. Pin
Ryan Binns29-Jun-04 18:25
Ryan Binns29-Jun-04 18:25 
GeneralRe: See this code.. Pin
johnny,Kim29-Jun-04 20:13
johnny,Kim29-Jun-04 20:13 
GeneralInitialization of a CWnd derived custom control Pin
kfaday29-Jun-04 15:38
kfaday29-Jun-04 15:38 
GeneralRe: Initialization of a CWnd derived custom control Pin
User 58385229-Jun-04 16:47
User 58385229-Jun-04 16:47 
QuestionASCII programming ?? Pin
Spank me!!29-Jun-04 10:51
Spank me!!29-Jun-04 10:51 
AnswerRe: ASCII programming ?? Pin
l a u r e n29-Jun-04 11:53
l a u r e n29-Jun-04 11:53 
GeneralRe: ASCII programming ?? Pin
Christian Graus29-Jun-04 16:35
protectorChristian Graus29-Jun-04 16:35 
AnswerRe: ASCII programming ?? Pin
Johnny ²29-Jun-04 11:53
Johnny ²29-Jun-04 11:53 
GeneralProper usage of #pragma once Pin
digwizfox29-Jun-04 9:36
digwizfox29-Jun-04 9:36 
GeneralRe: Proper usage of #pragma once Pin
Maximilien29-Jun-04 9:50
Maximilien29-Jun-04 9:50 
GeneralRe: Proper usage of #pragma once Pin
cmk29-Jun-04 9:56
cmk29-Jun-04 9:56 
GeneralRe: Proper usage of #pragma once Pin
Jeremy Falcon29-Jun-04 10:49
professionalJeremy Falcon29-Jun-04 10:49 
GeneralRe: Proper usage of #pragma once Pin
PJ Arends29-Jun-04 11:07
professionalPJ Arends29-Jun-04 11:07 
GeneralRe: Proper usage of #pragma once Pin
Maximilien30-Jun-04 3:25
Maximilien30-Jun-04 3:25 
GeneralRe: Proper usage of #pragma once Pin
Michael Dunn29-Jun-04 12:09
sitebuilderMichael Dunn29-Jun-04 12:09 
QuestionHow do I keep Menu from covering Property page tabs Pin
Bob_The_Programmer29-Jun-04 8:58
Bob_The_Programmer29-Jun-04 8:58 

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.