Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy - Doing something wrong ?? Pin
Mark Salsbery20-Apr-07 7:43
Mark Salsbery20-Apr-07 7:43 
AnswerRe: strcpy - Doing something wrong ?? Pin
Michael Dunn20-Apr-07 7:01
sitebuilderMichael Dunn20-Apr-07 7:01 
AnswerRe: strcpy - Doing something wrong ?? Pin
krmed20-Apr-07 10:10
krmed20-Apr-07 10:10 
GeneralRe: strcpy - Doing something wrong ?? Pin
Mark Salsbery20-Apr-07 10:26
Mark Salsbery20-Apr-07 10:26 
GeneralRe: strcpy - Doing something wrong ?? Pin
krmed20-Apr-07 10:29
krmed20-Apr-07 10:29 
GeneralRe: strcpy - Doing something wrong ?? Pin
Michael Dunn20-Apr-07 16:39
sitebuilderMichael Dunn20-Apr-07 16:39 
GeneralRe: strcpy - Doing something wrong ?? Pin
krmed21-Apr-07 3:47
krmed21-Apr-07 3:47 
QuestionCView::OnNCPaint Pin
bob1697220-Apr-07 3:58
bob1697220-Apr-07 3:58 
When using Visual C++ 6.0 and 7.1 to create a message handler for WM_NCPAINT, the wizard places a comment in there...

void CSomeView::OnNcPaint()
{
// TODO: Add your message handler code here
// Do not call CScrollView::OnNcPaint() for painting messages
}


Because I don't want to draw the scroll bar myself, I call CScrollView::OnNcPaint() but I feel like I'm beaking some major programming rule but I do not know what that rule is. I've not been able to detect any problems with doing this except of course some redundant drawing that might occur elsewhere in the non-client area that causes a teeny tiny amount of flicker where my drawing code differs from that of he default.

Does anyone know why the "Do not call CScrollView::OnNcPaint() for painting messages" warning gets placed in this handler and what is it intended to prevent?
AnswerRe: CView::OnNCPaint Pin
Michael Dunn20-Apr-07 7:05
sitebuilderMichael Dunn20-Apr-07 7:05 
GeneralRe: CView::OnNCPaint Pin
bob1697220-Apr-07 7:29
bob1697220-Apr-07 7:29 
QuestionTerminate Process Question Pin
Programm3r20-Apr-07 2:51
Programm3r20-Apr-07 2:51 
AnswerRe: Terminate Process Question Pin
toxcct20-Apr-07 3:13
toxcct20-Apr-07 3:13 
GeneralRe: Terminate Process Question Pin
Programm3r20-Apr-07 3:17
Programm3r20-Apr-07 3:17 
AnswerRe: Terminate Process Question Pin
Programm3r20-Apr-07 3:24
Programm3r20-Apr-07 3:24 
GeneralRe: Terminate Process Question Pin
toxcct20-Apr-07 3:32
toxcct20-Apr-07 3:32 
AnswerRe: Terminate Process Question Pin
Michael Dunn20-Apr-07 7:06
sitebuilderMichael Dunn20-Apr-07 7:06 
QuestionHow to subclass a Button on a MessageBox ? [modified] Pin
sdhexu20-Apr-07 2:37
sdhexu20-Apr-07 2:37 
AnswerRe: How to subclass a Button on a MessageBox ? Pin
ThatsAlok20-Apr-07 21:32
ThatsAlok20-Apr-07 21:32 
QuestionHow to change font of ToolTip control in VC++ 6.0? Pin
Atul2320-Apr-07 2:00
Atul2320-Apr-07 2:00 
AnswerRe: How to change font of ToolTip control in VC++ 6.0? Pin
Hamid_RT20-Apr-07 19:36
Hamid_RT20-Apr-07 19:36 
QuestionUsing Virtual lists? Pin
bosfan20-Apr-07 1:36
bosfan20-Apr-07 1:36 
QuestionRe: Using Virtual lists? Pin
Maximilien20-Apr-07 3:03
Maximilien20-Apr-07 3:03 
AnswerRe: Using Virtual lists? Pin
bosfan20-Apr-07 3:14
bosfan20-Apr-07 3:14 
AnswerRe: Using Virtual lists? Pin
Hamid_RT20-Apr-07 19:31
Hamid_RT20-Apr-07 19:31 
GeneralRe: Using Virtual lists? Pin
bosfan24-Apr-07 2:42
bosfan24-Apr-07 2:42 

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.