Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBitmap for dialog background questions Pin
frqftgbdafr27-Feb-17 13:25
frqftgbdafr27-Feb-17 13:25 
I am using a bitmap for a dialog background, which works fine.
I am also doing some GDI drawing on top of the bitmap.
The problem is updating the GDI drawing causes the bitmap to blink. On a slower computer this may be a major annoyance.
The bitmap is loaded in the OnPaint() message handler, where the GDI drawing is also performed and updated.
I have tried loading the bitmap image only once, but when the GDI drawing is updated, the bitmap background is erased and not replaced.
Is it possible to load the bitmap once, and not have it erased in OnPaint() when the GDI drawing is updated?
AnswerRe: Bitmap for dialog background questions Pin
_Flaviu27-Feb-17 20:21
_Flaviu27-Feb-17 20:21 
GeneralRe: Bitmap for dialog background questions Pin
frqftgbdafr28-Feb-17 2:06
frqftgbdafr28-Feb-17 2:06 
QuestionRibbon UI, wrong ordering of ribbon elements ? Pin
Maximilien27-Feb-17 8:02
Maximilien27-Feb-17 8:02 
QuestionVisual c++ android app development Pin
Cwash26-Feb-17 23:37
Cwash26-Feb-17 23:37 
AnswerRe: Visual c++ android app development Pin
Richard MacCutchan27-Feb-17 0:26
mveRichard MacCutchan27-Feb-17 0:26 
QuestionBoost Spirit: Parse an int into a string. Pin
Maximilien21-Feb-17 2:54
Maximilien21-Feb-17 2:54 
QuestionAES 128 block cipher problem running Pin
Member 1300542516-Feb-17 19:27
Member 1300542516-Feb-17 19:27 
AnswerRe: AES 128 block cipher problem running Pin
CPallini16-Feb-17 20:55
mveCPallini16-Feb-17 20:55 
GeneralRe: AES 128 block cipher problem running Pin
Razvan Cristian28-Feb-17 7:25
Razvan Cristian28-Feb-17 7:25 
QuestionBooks on learning wxWidgets and understanding terminology? Pin
Member 1297423513-Feb-17 11:34
Member 1297423513-Feb-17 11:34 
AnswerRe: Books on learning wxWidgets and understanding terminology? Pin
VISWESWARAN199813-Feb-17 19:34
professionalVISWESWARAN199813-Feb-17 19:34 
QuestionASSERT(pState->m_hSocketWindow != NULL); When trying to close in the same thread Socket Was Created Pin
ForNow12-Feb-17 16:02
ForNow12-Feb-17 16:02 
AnswerRe: ASSERT(pState->m_hSocketWindow != NULL); When trying to close in the same thread Socket Was Created Pin
Jochen Arndt13-Feb-17 1:19
professionalJochen Arndt13-Feb-17 1:19 
QuestionI don't quite get this thing I've noticed Pin
Member 1297423512-Feb-17 15:56
Member 1297423512-Feb-17 15:56 
QuestionRe: I don't quite get this thing I've noticed Pin
David Crow12-Feb-17 16:31
David Crow12-Feb-17 16:31 
AnswerRe: I don't quite get this thing I've noticed Pin
Richard MacCutchan12-Feb-17 23:20
mveRichard MacCutchan12-Feb-17 23:20 
GeneralRe: I don't quite get this thing I've noticed Pin
Member 1297423513-Feb-17 11:28
Member 1297423513-Feb-17 11:28 
GeneralRe: I don't quite get this thing I've noticed Pin
Richard MacCutchan13-Feb-17 21:49
mveRichard MacCutchan13-Feb-17 21:49 
GeneralRe: I don't quite get this thing I've noticed Pin
leon de boer15-Feb-17 17:31
leon de boer15-Feb-17 17:31 
QuestionUDP Server vs Client Pin
bkelly1311-Feb-17 13:40
bkelly1311-Feb-17 13:40 
AnswerRe: UDP Server vs Client Pin
Richard MacCutchan11-Feb-17 20:40
mveRichard MacCutchan11-Feb-17 20:40 
GeneralRe: UDP Server vs Client Pin
bkelly1312-Feb-17 3:38
bkelly1312-Feb-17 3:38 
GeneralRe: UDP Server vs Client Pin
Richard MacCutchan12-Feb-17 6:07
mveRichard MacCutchan12-Feb-17 6:07 
AnswerRe: UDP Server vs Client Pin
leon de boer12-Feb-17 6:59
leon de boer12-Feb-17 6:59 

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.