Advertisement

MFC Error

Started by January 24, 2001 11:09 PM
1 comment, last by InFerN0 24 years ago
when ever I try to split the window I get an assert but the assert contains no info. I get the error when calling m_wndSplit.CreateStatic(this,2,2); Any ideas? Thanks a bunch. InFerN0 Not all who wander are lost...
InFerN0Not all who wander are lost...
Okay, a few questions, since this is a "could be anything" situation:

Is "this" a CFrameWnd or a derivative thereof? It could also be a CMDIChildWnd or derivation thereof.

Are you creating your views at the same point as you create your splitter?

If so, are any of these views CScrollView derivatives? CScrollView must explicitly define limits using SetScrollSizes before the first draw is called or it will assert once but allow you to continue by hitting ignore.

That''s all I can think of off the top of my head right now.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Advertisement
Thanks for replying but I got it working.

InFerN0

Not all who wander are lost...
InFerN0Not all who wander are lost...

This topic is closed to new replies.

Advertisement