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

C / C++ / MFC

 
AnswerRe: Morse code in Cpp Pin
David Crow8-Dec-13 16:34
David Crow8-Dec-13 16:34 
AnswerRe: Morse code in Cpp Pin
Alan Balkany11-Dec-13 6:55
Alan Balkany11-Dec-13 6:55 
QuestionHow to prevent deleting files from Browse dialog Pin
tagopi4-Dec-13 22:33
tagopi4-Dec-13 22:33 
AnswerRe: How to prevent deleting files from Browse dialog Pin
CPallini5-Dec-13 0:08
mveCPallini5-Dec-13 0:08 
AnswerRe: How to prevent deleting files from Browse dialog Pin
David Crow5-Dec-13 4:48
David Crow5-Dec-13 4:48 
QuestionHow to repair IME in my application Pin
buaaxiao4-Dec-13 20:17
buaaxiao4-Dec-13 20:17 
AnswerRe: How to repair IME in my application Pin
buaaxiao27-Dec-13 16:13
buaaxiao27-Dec-13 16:13 
QuestionIn MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear4-Dec-13 10:12
professionalrainclear4-Dec-13 10:12 
Hello,

I am learning MFC programming with the book "Programming Windows with MFC (2nd Edition)". I have some questions about the book example from chapter 9.

When I open a file or click new file, the function CSquaresView::OnDraw() is called. I checked the stack, the reason is that CView::OnPaint() calls this function. But I don't understand how CView::OnPaint() is called. Is the message WM_PAINT generated if CSingleDocTemplate::OpenDocumentFile() is called by the default setting? Is it possible to change the behavior?

Thanks,
Brian
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
Richard Andrew x644-Dec-13 16:02
professionalRichard Andrew x644-Dec-13 16:02 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
Richard MacCutchan4-Dec-13 22:07
mveRichard MacCutchan4-Dec-13 22:07 
GeneralRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear5-Dec-13 4:09
professionalrainclear5-Dec-13 4:09 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear5-Dec-13 5:20
professionalrainclear5-Dec-13 5:20 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
xspace_time9-Dec-13 14:42
xspace_time9-Dec-13 14:42 
QuestionEfficient and Faster way to do 2x2 binning of a matrix Pin
Kiran Satish4-Dec-13 7:11
Kiran Satish4-Dec-13 7:11 
AnswerRe: Efficient and Faster way to do 2x2 binning of a matrix Pin
jschell4-Dec-13 11:24
jschell4-Dec-13 11:24 
Questionc++ upd brodcast client Pin
arishri3-Dec-13 2:57
arishri3-Dec-13 2:57 
QuestionRe: c++ upd brodcast client Pin
jeron13-Dec-13 3:34
jeron13-Dec-13 3:34 
AnswerRe: c++ upd brodcast client Pin
arishri3-Dec-13 3:40
arishri3-Dec-13 3:40 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:01
jeron13-Dec-13 4:01 
GeneralRe: c++ upd brodcast client Pin
arishri3-Dec-13 4:11
arishri3-Dec-13 4:11 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:21
jeron13-Dec-13 4:21 
GeneralRe: c++ upd brodcast client Pin
arishri3-Dec-13 4:13
arishri3-Dec-13 4:13 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:29
jeron13-Dec-13 4:29 
AnswerRe: c++ upd brodcast client Pin
Member 104421753-Dec-13 21:25
professionalMember 104421753-Dec-13 21:25 
Questionpointer to pointer Pin
messages2-Dec-13 7:13
messages2-Dec-13 7:13 

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.