Click here to Skip to main content
15,907,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating objects in a thread. Pin
Neville Franks25-Oct-09 17:14
Neville Franks25-Oct-09 17:14 
AnswerRe: Creating objects in a thread. Pin
Adam Roderick J25-Oct-09 18:36
Adam Roderick J25-Oct-09 18:36 
GeneralRe: Creating objects in a thread. [modified] Pin
Nikz226-Oct-09 5:17
Nikz226-Oct-09 5:17 
QuestionMove a bitmap around a window quickly in C++ [modified] Pin
Neville Franks25-Oct-09 11:19
Neville Franks25-Oct-09 11:19 
AnswerRe: Move a bitmap around a window quickly in C++ Pin
«_Superman_»25-Oct-09 11:42
professional«_Superman_»25-Oct-09 11:42 
GeneralRe: Move a bitmap around a window quickly in C++ Pin
Neville Franks25-Oct-09 12:30
Neville Franks25-Oct-09 12:30 
AnswerRe: Move a bitmap around a window quickly in C++ Pin
Code-o-mat25-Oct-09 12:57
Code-o-mat25-Oct-09 12:57 
AnswerRe: Move a bitmap around a window quickly in C++ Pin
Chris Losinger25-Oct-09 16:25
professionalChris Losinger25-Oct-09 16:25 
if the background is static, you really only need to draw the overlay at its new position and then draw the parts of the background that were uncovered when the overlay moved. there's no need to redraw the whole background.


1. the overlay's previous rect = R1.
2. the overlay's new rect = R2.
3. R3 = the bounding rect of R1 and R2.
4. alloc a bitmap of size R3
5. fill it with the appropriate chunk of background
6. draw the overlay into the temp bitmap
7. draw the temp bitmap to the screen

as long as the overlay is moving only a few pixels at a time, R3 should be just slightly bigger than the overlay size. if R1 and R2 don't instersect, you can split it into two operations: restore the background to one rect, then draw the overlay into the other - don't bother with the temp bitmap.


GeneralRe: Move a bitmap around a window quickly in C++ Pin
Neville Franks25-Oct-09 17:08
Neville Franks25-Oct-09 17:08 
AnswerRe: Move a bitmap around a window quickly in C++ Pin
yzprout25-Oct-09 19:30
yzprout25-Oct-09 19:30 
GeneralRe: Move a bitmap around a window quickly in C++ Pin
Neville Franks25-Oct-09 20:35
Neville Franks25-Oct-09 20:35 
AnswerRe: Move a bitmap around a window quickly in C++ Pin
Stuart Dootson26-Oct-09 1:07
professionalStuart Dootson26-Oct-09 1:07 
GeneralRe: Move a bitmap around a window quickly in C++ Pin
Neville Franks26-Oct-09 10:10
Neville Franks26-Oct-09 10:10 
QuestionEscape Key Pin
MrMcIntyre25-Oct-09 9:27
MrMcIntyre25-Oct-09 9:27 
AnswerRe: Escape Key Pin
Iain Clarke, Warrior Programmer25-Oct-09 9:40
Iain Clarke, Warrior Programmer25-Oct-09 9:40 
GeneralRe: Escape Key Pin
MrMcIntyre25-Oct-09 10:01
MrMcIntyre25-Oct-09 10:01 
GeneralRe: Escape Key Pin
Richard MacCutchan25-Oct-09 12:42
mveRichard MacCutchan25-Oct-09 12:42 
QuestionHello! I urgently need the program code. Help me with!! Pin
vudvpro25-Oct-09 8:48
vudvpro25-Oct-09 8:48 
AnswerRe: Hello! I urgently need the program code. Help me with!! Pin
CPallini25-Oct-09 9:07
mveCPallini25-Oct-09 9:07 
AnswerRe: Hello! I urgently need the program code. Help me with!! Pin
Rajesh R Subramanian25-Oct-09 9:32
professionalRajesh R Subramanian25-Oct-09 9:32 
RantRe: Hello! I urgently need the program code. Help me with!! Pin
Iain Clarke, Warrior Programmer25-Oct-09 10:01
Iain Clarke, Warrior Programmer25-Oct-09 10:01 
GeneralRe: Hello! I urgently need the program code. Help me with!! Pin
vudvpro26-Oct-09 9:57
vudvpro26-Oct-09 9:57 
AnswerRe: Hello! I urgently need the program code. Help me with!! Pin
Richard MacCutchan25-Oct-09 13:20
mveRichard MacCutchan25-Oct-09 13:20 
JokeRe: Hello! I urgently need the program code. Help me with!! Pin
David Crow26-Oct-09 3:46
David Crow26-Oct-09 3:46 
Questionint returned as binary no. from CListCtrl::InsertItem Pin
Manmohan2925-Oct-09 8:29
Manmohan2925-Oct-09 8:29 

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.