I am trying to learn MFC doc-view application. I've started with creating a simple image viewer application. For this I've derived my view class from CScrollView class and overridden the draw() function.
I wanted to know when to use OnPaint() function and how it is related with draw() function.