Certainly it works!
Perhaps I was blindly following Kruglinski's approach. Should have kept an open mind!
Thank you Jason!
 
warm regards,
- Divya
www.ryze.com/go/divyarathore

Jason Teagle <[EMAIL PROTECTED]> wrote:
Turns out to be easier than I thought. Just have this to replace your main
frame's OnCreateClient() body:

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
BOOL bCreatedOK ;
CSize sizPane ;

bCreatedOK = m_wndSplitter.CreateStatic(this, 2, 2);
if (bCreatedOK)
{
sizPane.cx = 200 ;
sizPane.cy = 200 ;
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(class_name_of_view_class),
sizPane, pContext);
m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(class_name_of_view_class),
sizPane, pContext);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(class_name_of_view_class),
sizPane, pContext);
m_wndSplitter.CreateView(1, 1, RUNTIME_CLASS(class_name_of_view_class),
sizPane, pContext);
}

return bCreatedOK ;
}


And it creates a 2x2 splitter - voila!

No need for any calls to move windows around...
If this is not doing what you need, then please specify more clearly what
you need.

(Please send replies to the list, not me personally, so that we all get to
see the conversation, to learn from it / assist with it).

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.


Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to