Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Joaquín M López Muñoz28-Feb-02 10:41
Joaquín M López Muñoz28-Feb-02 10:41 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Christian Graus28-Feb-02 10:52
protectorChristian Graus28-Feb-02 10:52 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Tim Smith28-Feb-02 11:10
Tim Smith28-Feb-02 11:10 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 12:22
alex.barylski28-Feb-02 12:22 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Christian Graus28-Feb-02 12:24
protectorChristian Graus28-Feb-02 12:24 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Jon Hulatt28-Feb-02 23:23
Jon Hulatt28-Feb-02 23:23 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 10:59
mentorPaul M Watt28-Feb-02 10:59 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 12:15
alex.barylski28-Feb-02 12:15 
Ok...so i'm not the only one that found OnErase un-nessecary. What bothers me is that my control (while painted in OnPaint to avoid flicker) will be painted over possibly by the derived versions OnDraw (It's actually a view not a CWnd). Unless the derived class does

void CNewView::OnDraw(CDC* pDC)
{
  //Custom drawing
  pDC->LineTo(100, 100);

  //Call to draw control over top of current contents
  COldView::OnDraw(pDC);
}


Would the above implementation avoid the problem..??

Hope you don't mind me asking...I realize i'm only one step away from trying it and figuring it out myself, but I always like to hear a second opinion on the subject before I ever try anything.

Cheers


"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 14:23
mentorPaul M Watt28-Feb-02 14:23 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 16:26
alex.barylski28-Feb-02 16:26 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 19:52
mentorPaul M Watt28-Feb-02 19:52 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 10:53
mentorPaul M Watt28-Feb-02 10:53 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 12:29
alex.barylski28-Feb-02 12:29 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 14:26
mentorPaul M Watt28-Feb-02 14:26 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 16:35
alex.barylski28-Feb-02 16:35 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
alex.barylski28-Feb-02 17:17
alex.barylski28-Feb-02 17:17 
GeneralRe: OnEraseBkgnd VS OnPaint Pin
Paul M Watt28-Feb-02 19:46
mentorPaul M Watt28-Feb-02 19:46 
GeneralSick and tired of VC++ IDE's $#!T Pin
Jason Hooper28-Feb-02 8:59
Jason Hooper28-Feb-02 8:59 
GeneralRe: Sick and tired of VC++ IDE's $#!T Pin
Carlos Antollini28-Feb-02 9:11
Carlos Antollini28-Feb-02 9:11 
GeneralFirst-chance exception error Pin
ed128-Feb-02 8:31
ed128-Feb-02 8:31 
GeneralRe: First-chance exception error Pin
Paul M Watt28-Feb-02 8:34
mentorPaul M Watt28-Feb-02 8:34 
GeneralRe: First-chance exception error Pin
Steen Krogsgaard28-Feb-02 9:44
Steen Krogsgaard28-Feb-02 9:44 
GeneralRestaurant Project Pin
28-Feb-02 8:21
suss28-Feb-02 8:21 
GeneralRe: Restaurant Project Pin
Carlos Antollini28-Feb-02 8:30
Carlos Antollini28-Feb-02 8:30 
GeneralRe: Restaurant Project Pin
Nemanja Trifunovic28-Feb-02 8:41
Nemanja Trifunovic28-Feb-02 8:41 

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.