Originally posted by: YongChul, Jin
Hello? I am a English begginer... ^_^;
CSDIDocTemplate* pDocTemplate;
pDocTemplate = new CSDIDocTemplate(
IDR_MAINFRAME, <---- (1)
RUNTIME_CLASS(CSdiMultiDoc),
RUNTIME_CLASS(CMainFrame
RUNTIME_CLASS(C1View));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CSDIDocTemplate(
IDR_NEWVIEW, <--- (2)
RUNTIME_CLASS(CSdiMultiDoc),
RUNTIME_CLASS(CMainFrame),
RUNTIME_CLASS(C2View));
AddDocTemplate(pDocTemplate);
: :
"IDR_MAINFRAME" must be use only one...
Have a Nice day! bye...
ICQ# 12506084, BlueWind, BlueWinz, anecia
Originally posted by: Kevin Derhak
I've implemented your sample as per your directions. Everytime I startup my application I get the New dialog box and have too select a document before I can start. What am I doing wrong?
Thanks in advance...
Kevin
Originally posted by: Zdenek Bures
When I'm switching Windows program panel from "hiding" to "not hiding" (or back), this example is breaking down immediately (tested on Win'95 and Win'98).
Reply
Originally posted by: Susan Karpowich
I am having a problem hiding/showing a toolbar when I switch
between views using this framework.
I am using this framework with 4 different views which
I switch between, all of which are displayed inside of
the bottom pane of a splitter window. One of these views
contains another splitter window - so I have a splitter
within a splitter window.
If I switch to the view containing the 2nd splitter window,
and then switch to another view, I will get an exception
when I try to hide/show the toolbar. Is the toolbar id
conflicting with one of the splitter child pane id's?
BTW - Great work!
ReplyOriginally posted by: Jean-Claude Lanz
Hello,
I will build a new sample version with Destroy/Create view instead of Hide/Show in the next weeks.
Thanks for your interess to this sample.
jean-claude lanz
Originally posted by: Zdenek Bures
When I call UpdateAllViews(NULL, HINT_OPERATION),
In a case of using the splitter by the standard way, the calling of B
Can I simply solve this problem anyhow?
The sample :
// displayed View:
void CView1::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if(lHint==HINT_OPERATION)
{
// A
}
}
// nondisplayed View:
void CView2::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if(lHint==HINT_OPERATION)
{
// B
}
}
not only the A operation executes, but also the unrequired B.
does not take place, because CView2 is not read into memory.
How can I in CView2 find out that it is not displayed to block the execution of B ?
(OnShowWindow() does not provide the true information).
Originally posted by: Johannes Gruber
How do I hide/show a row or col in a CSplitterWnd ?
ReplyOriginally posted by: Hurng-Dar Wur
Good work! Just want to report a problem. Looking foward to having the fix and updated source!
Reply