But trying to get the view class' pointer is a bit harder.
AliR.
nexolite wrote:
Please tell me how to create splitter window in a mfc application
and also is it necessary to create them in sdi or it can be created in a
normal window(derived from CFrameWnd)?
if yes then how to create them in a normal window?
Hi, That's the work I have just done for several weeks, in my project, I
use the SDI MFC application without Document-View architecture Supported.
The First step, I use CSplitterWnd, But it only support doc-view
architecture, and I'm not familiar with some MACRO about
RUNTIME_CLASS,when creating them, so, I failed to do that. Luckily, I
found some good stuff in CodeProject.com. Here is their links:
Simple splitter with CWnd-derived panes
http://www.codeproject.com/KB/splitter/kaldysimplesplitter.aspx
CSSplitter: a splitter with the ability to save/restore its position
http://www.codeproject.com/KB/splitter/SSplitter.aspx
Only this two article describe the topics I mentioned before, and the
others are all derived from CSplitterWnd,and not fit my demand. But there
are still some problems using them. How dos the pane sub window
communicate with CMainFrame window? In a traditional SDI App, a CChildWnd
was created to cover the whole Client area, But,when I split the Client
into two sub windows, how can I send message or notification or do
repaint? Anyone can give me some advice? Thanks.