Click here to Skip to main content
15,397,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxConnectionAdvise retuning false Pin
Prakash Nadar15-Feb-04 20:11
MemberPrakash Nadar15-Feb-04 20:11 
GeneralRe: AfxConnectionAdvise retuning false Pin
Abhi Lahare15-Feb-04 20:42
MemberAbhi Lahare15-Feb-04 20:42 
GeneralRe: AfxConnectionAdvise retuning false Pin
Prakash Nadar15-Feb-04 22:03
MemberPrakash Nadar15-Feb-04 22:03 
GeneralCStatic background color problem Pin
Coremn15-Feb-04 19:32
MemberCoremn15-Feb-04 19:32 
GeneralRe: CStatic background color problem Pin
Prakash Nadar15-Feb-04 19:55
MemberPrakash Nadar15-Feb-04 19:55 
GeneralRe: CStatic background color problem Pin
Coremn16-Feb-04 11:45
MemberCoremn16-Feb-04 11:45 
GeneralRe: CStatic background color problem Pin
Prakash Nadar16-Feb-04 16:40
MemberPrakash Nadar16-Feb-04 16:40 
GeneralSave Bitmap from Device Context to File Pin
Okeno Palmer15-Feb-04 17:14
MemberOkeno Palmer15-Feb-04 17:14 
Greets all,

I have an app that loads a monochrome bitmap and displays it in a Static Control where I later allow the user to resize the bitmap by dragging the edges of a rectangular selection box around the bitmap.

Now what I want to do is to save this newly sized bitmap to file. I have tried and so far when I write the bitmap to file and later view it all I am seeing is a blank image (i.e. all white).

I think the problem lies in my call to the GetDIBits() function. in the MSDN docs, it says that I have to make sure the bitmap is not currently selected into a device context.

So my question is, how do I unselect the Bitmap from a Device Context??

.:. Keno .:.
GeneralRe: Save Bitmap from Device Context to File Pin
Johann Gerell15-Feb-04 20:14
MemberJohann Gerell15-Feb-04 20:14 
GeneralWeird toolbar behaviour Pin
Deian15-Feb-04 16:18
MemberDeian15-Feb-04 16:18 
GeneralHelp...program passes input as 13... Pin
kfresh15-Feb-04 15:47
Memberkfresh15-Feb-04 15:47 
GeneralRe: Help...program passes input as 13... Pin
Andrew Walker15-Feb-04 16:37
MemberAndrew Walker15-Feb-04 16:37 
General.ico corruption and CVS Pin
Jon Sagara15-Feb-04 15:30
MemberJon Sagara15-Feb-04 15:30 
GeneralRe: .ico corruption and CVS Pin
Mike Dimmick16-Feb-04 2:42
MemberMike Dimmick16-Feb-04 2:42 
GeneralRe: .ico corruption and CVS Pin
Jon Sagara16-Feb-04 2:48
MemberJon Sagara16-Feb-04 2:48 
GeneralAddPicture Pin
Member 73893815-Feb-04 15:10
MemberMember 73893815-Feb-04 15:10 
GeneralFree Unix OS download.. Pin
IrishSonic15-Feb-04 14:41
MemberIrishSonic15-Feb-04 14:41 
GeneralRe: Free Unix OS download.. Pin
Maxwell Chen15-Feb-04 15:14
MemberMaxwell Chen15-Feb-04 15:14 
GeneralRe: Free Unix OS download.. Pin
Anonymous15-Feb-04 19:37
MemberAnonymous15-Feb-04 19:37 
GeneralRe: Free Unix OS download.. Pin
Okeno Palmer16-Feb-04 1:23
MemberOkeno Palmer16-Feb-04 1:23 
GeneralRe: Free Unix OS download.. Pin
IrishSonic17-Feb-04 13:22
MemberIrishSonic17-Feb-04 13:22 
GeneralA simple problem Pin
deniz79s15-Feb-04 6:10
Memberdeniz79s15-Feb-04 6:10 
GeneralRe: A simple problem Pin
Mike Dimmick16-Feb-04 2:59
MemberMike Dimmick16-Feb-04 2:59 
GeneralMFC control and value variable conflict Pin
Dev57815-Feb-04 5:31
MemberDev57815-Feb-04 5:31 
GeneralRe: MFC control and value variable conflict Pin
Michael Dunn15-Feb-04 5:35
sitebuilderMichael Dunn15-Feb-04 5:35 

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.