Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question__LINE__ doesn't work in Visual Studio 2005 Pin
User 2155976-Jun-06 16:43
User 2155976-Jun-06 16:43 
AnswerRe: __LINE__ doesn't work in Visual Studio 2005 Pin
User 2155976-Jun-06 17:01
User 2155976-Jun-06 17:01 
QuestionDifferent CSplitterWnd behaviour needed Pin
Vladimir Svrkota6-Jun-06 14:00
professionalVladimir Svrkota6-Jun-06 14:00 
AnswerRe: Different CSplitterWnd behaviour needed Pin
LeeeNN6-Jun-06 14:37
LeeeNN6-Jun-06 14:37 
GeneralRe: Different CSplitterWnd behaviour needed Pin
Vladimir Svrkota7-Jun-06 16:06
professionalVladimir Svrkota7-Jun-06 16:06 
QuestionOverlapped sockets and completion routines. Pin
luke7276-Jun-06 13:43
luke7276-Jun-06 13:43 
QuestionDrawing a bitmap Pin
Pugman8126-Jun-06 12:12
Pugman8126-Jun-06 12:12 
AnswerRe: Drawing a bitmap Pin
Chris Losinger6-Jun-06 15:46
professionalChris Losinger6-Jun-06 15:46 
to do this, you need to make a copy of the image underneath the bitmap before you draw it. something like this:

1. find out where you want to draw the bitmap
2. make a copy of the background where the bitmap will go to a new bitmap, before you draw there. (create a new bitmap, use BitBlt to copy)
3. when you need to move the bitmap, draw the background copy from step 2 at the place you copied it from. then go to step 1.

to do this smoothly, you'll need to use a double-buffering technique, where you place replace the background and draw the new bitmap in one BitBlt to the main screen. otherwise, you could get a flicker effect.

i think there are articles on CP that discuss how to do double buffering.


Cleek | Image Toolkits | Thumbnail maker

GeneralRe: Drawing a bitmap Pin
Pugman8126-Jun-06 23:07
Pugman8126-Jun-06 23:07 
GeneralRe: Drawing a bitmap [modified] Pin
Chris Losinger7-Jun-06 1:13
professionalChris Losinger7-Jun-06 1:13 
Questionwhich function gets color setting of PC? Pin
includeh106-Jun-06 10:27
includeh106-Jun-06 10:27 
AnswerRe: which function gets color setting of PC? Pin
Ryan Binns6-Jun-06 18:25
Ryan Binns6-Jun-06 18:25 
QuestionSocket Connection Pin
SPowers6-Jun-06 8:43
SPowers6-Jun-06 8:43 
QuestionCreateDIBSection Pin
includeh106-Jun-06 8:36
includeh106-Jun-06 8:36 
AnswerRe: CreateDIBSection Pin
valikac6-Jun-06 9:20
valikac6-Jun-06 9:20 
GeneralRe: CreateDIBSection Pin
includeh106-Jun-06 9:30
includeh106-Jun-06 9:30 
AnswerRe: CreateDIBSection Pin
Chris Losinger6-Jun-06 9:53
professionalChris Losinger6-Jun-06 9:53 
GeneralRe: CreateDIBSection Pin
includeh106-Jun-06 10:15
includeh106-Jun-06 10:15 
GeneralRe: CreateDIBSection Pin
Chris Losinger6-Jun-06 11:25
professionalChris Losinger6-Jun-06 11:25 
GeneralRe: CreateDIBSection Pin
includeh106-Jun-06 11:55
includeh106-Jun-06 11:55 
GeneralRe: CreateDIBSection Pin
Chris Losinger6-Jun-06 15:30
professionalChris Losinger6-Jun-06 15:30 
Questionquestion about HBITMAP Pin
includeh106-Jun-06 8:24
includeh106-Jun-06 8:24 
AnswerRe: question about HBITMAP Pin
Chris Losinger6-Jun-06 8:30
professionalChris Losinger6-Jun-06 8:30 
GeneralRe: question about HBITMAP Pin
includeh106-Jun-06 8:44
includeh106-Jun-06 8:44 
GeneralRe: question about HBITMAP Pin
Chris Losinger6-Jun-06 9:46
professionalChris Losinger6-Jun-06 9:46 

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.