Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GDI leak in "Tree View" with TVS_CHECKBOXES property Pin
139135068423-Jun-10 0:24
139135068423-Jun-10 0:24 
QuestionCommandLine execution problem Pin
krishna_CP2-Jun-10 21:04
krishna_CP2-Jun-10 21:04 
AnswerRe: CommandLine execution problem Pin
Richard MacCutchan2-Jun-10 21:13
mveRichard MacCutchan2-Jun-10 21:13 
AnswerRe: CommandLine execution problem Pin
KarstenK2-Jun-10 21:32
mveKarstenK2-Jun-10 21:32 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
krishna_CP2-Jun-10 22:39
krishna_CP2-Jun-10 22:39 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
KarstenK2-Jun-10 22:49
mveKarstenK2-Jun-10 22:49 
QuestionLoading bitmap in Dialog in OnPaint() Pin
Anu_Bala2-Jun-10 18:00
Anu_Bala2-Jun-10 18:00 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
Aescleal2-Jun-10 20:34
Aescleal2-Jun-10 20:34 
OnPaint is probably the wrong place to do this - I don't know what control you're using but from my experience with STATIC controls if you send STM_SETIMAGE it invalidates the client area of the control. If your control works the same way then...

- something invalidates the window
 - it loads the bitmap
    - the STM_SETIMAGE invalidates the window
       - it loads the bitmap
          - ... ad nauseum


Actually it's in a loop, not an infinite recursion but I hope you get the idea. A better approach would be to isolate the selection of the bitmaps into the control into another message and send that when the stimulus to change the bitmap occurs. This is essentially the basis of the observer pattern.

Cheers,

Ash
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
Niklas L2-Jun-10 21:03
Niklas L2-Jun-10 21:03 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
KarstenK2-Jun-10 21:35
mveKarstenK2-Jun-10 21:35 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
CPallini2-Jun-10 21:36
mveCPallini2-Jun-10 21:36 
Questionconverting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
ywimmer2-Jun-10 15:46
ywimmer2-Jun-10 15:46 
AnswerRe: converting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
Anthony Mushrow2-Jun-10 17:00
professionalAnthony Mushrow2-Jun-10 17:00 
GeneralRe: converting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
ywimmer2-Jun-10 19:52
ywimmer2-Jun-10 19:52 
QuestionHow to get another process Debug Registers of content Pin
notediy2-Jun-10 11:13
notediy2-Jun-10 11:13 
AnswerRe: How to get another process Debug Registers of content Pin
Garth J Lancaster2-Jun-10 12:46
professionalGarth J Lancaster2-Jun-10 12:46 
AnswerRe: How to get another process Debug Registers of content Pin
Stephen Hewitt2-Jun-10 17:05
Stephen Hewitt2-Jun-10 17:05 
QuestionGDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
vkinra2-Jun-10 10:49
vkinra2-Jun-10 10:49 
AnswerRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
John R. Shaw2-Jun-10 11:34
John R. Shaw2-Jun-10 11:34 
GeneralRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
vkinra2-Jun-10 11:57
vkinra2-Jun-10 11:57 
GeneralRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
John R. Shaw2-Jun-10 13:29
John R. Shaw2-Jun-10 13:29 
QuestionShort Circuit Evaluation Pin
bob169722-Jun-10 6:47
bob169722-Jun-10 6:47 
AnswerRe: Short Circuit Evaluation Pin
Luc Pattyn2-Jun-10 7:39
sitebuilderLuc Pattyn2-Jun-10 7:39 
GeneralRe: Short Circuit Evaluation Pin
bob169722-Jun-10 9:57
bob169722-Jun-10 9:57 
GeneralRe: Short Circuit Evaluation Pin
Luc Pattyn2-Jun-10 10:00
sitebuilderLuc Pattyn2-Jun-10 10:00 

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.