about CScrollView

Hi!
To inherit from CWnd and to do my own scroll Wnd it's a lot of job to do and I got stuck with it a bit.
  I tried to use CScrollView, by making constructor, destructor public , and in
overriden PostNcDestroy I commented
CScrollView::PostNcDestroy() and seems like it works nicely without document and frame. Still I am afraid to use it so,since it might be dangerous(inside CScrollView there might be something connected with Doc or Frame)
So, how safely to use CScrollView in this way ?
kishoriAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mikeblasCommented:
It's safe.

CScrollView is quite independent of having a document.

..B ekiM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kishoriAuthor Commented:
Does it mean that I can use CScrollView-derivative safely to put it on my CWnd, by calling Create of CScrollView(rather of its CWnd-base)and using it the way CScrollView derivative is used in Doc-View app.?
             Thanks.
0
mikeblasCommented:
Yes.  You have to do some things for yourself: call OnInitialUpdate(), most notably. And you probably want to make your dialog class a friend of your view class. But it can be made to work just fine without much effort.

Obviously, you're not going to use it the way you use it in a doc-view app because there's no document!

..B ekiM
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.