Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxBeginThread problem (with member function) Pin
BlackDice1-Jun-04 6:06
BlackDice1-Jun-04 6:06 
Generalvector problem Pin
BlackDice1-Jun-04 5:19
BlackDice1-Jun-04 5:19 
GeneralRe: vector problem Pin
Diddy1-Jun-04 5:34
Diddy1-Jun-04 5:34 
GeneralRe: vector problem Pin
BlackDice1-Jun-04 5:42
BlackDice1-Jun-04 5:42 
GeneralM.S.Chart Problem Pin
Member 3287141-Jun-04 4:59
Member 3287141-Jun-04 4:59 
GeneralMemory device context help Pin
JHAKAS1-Jun-04 4:55
JHAKAS1-Jun-04 4:55 
GeneralRe: Memory device context help Pin
JHAKAS1-Jun-04 5:11
JHAKAS1-Jun-04 5:11 
GeneralRe: Memory device context help Pin
PJ Arends1-Jun-04 22:05
professionalPJ Arends1-Jun-04 22:05 
You having a 1 X 1 pixel bitmap in your memdc tells me that the bitmap selected into it is the original default bitmap that all memdcs have. You have at some point selected your bitmap out of the memdc.

If I were you, I would make the bitmap (CBitmap or HBITMAP) a member of your class. That way you only have to create it once. Select it into a memdc to draw on it, and select it out again when done. You can then pass that bitmap to your save function.

Remember, it is the bitmap that stores your image, not the DC. The DC is just the means that you use to draw onto a bitmap.







Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralIllegal conversion warning Pin
Jim Crafton1-Jun-04 4:15
Jim Crafton1-Jun-04 4:15 
GeneralRe: Illegal conversion warning Pin
Antony M Kancidrowski1-Jun-04 4:39
Antony M Kancidrowski1-Jun-04 4:39 
GeneralRe: Illegal conversion warning Pin
Antony M Kancidrowski1-Jun-04 4:48
Antony M Kancidrowski1-Jun-04 4:48 
GeneralRe: Illegal conversion warning Pin
Michael Dunn1-Jun-04 5:04
sitebuilderMichael Dunn1-Jun-04 5:04 
GeneralRe: Illegal conversion warning Pin
Marcello1-Jun-04 6:16
Marcello1-Jun-04 6:16 
GeneralRe: Illegal conversion warning Pin
Marcello1-Jun-04 6:41
Marcello1-Jun-04 6:41 
GeneralRe: Illegal conversion warning Pin
Anonymous17-Jun-04 9:53
Anonymous17-Jun-04 9:53 
GeneralUsing TRACE macro Pin
Anonymous1-Jun-04 3:24
Anonymous1-Jun-04 3:24 
GeneralRe: Using TRACE macro Pin
David Crow1-Jun-04 3:41
David Crow1-Jun-04 3:41 
GeneralRe: Using TRACE macro Pin
jmkhael1-Jun-04 3:45
jmkhael1-Jun-04 3:45 
GeneralRe: Using TRACE macro Pin
Anonymous1-Jun-04 8:43
Anonymous1-Jun-04 8:43 
GeneralRe: Using TRACE macro Pin
Anonymous1-Jun-04 9:01
Anonymous1-Jun-04 9:01 
GeneralMy Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc Pin
ohadp1-Jun-04 3:24
ohadp1-Jun-04 3:24 
GeneralRe: My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc Pin
Antony M Kancidrowski1-Jun-04 4:11
Antony M Kancidrowski1-Jun-04 4:11 
GeneralRe: My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc Pin
ohadp1-Jun-04 4:27
ohadp1-Jun-04 4:27 
GeneralRe: My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc Pin
Antony M Kancidrowski1-Jun-04 4:52
Antony M Kancidrowski1-Jun-04 4:52 
GeneralRe: My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc Pin
ohadp1-Jun-04 4:57
ohadp1-Jun-04 4:57 

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.