I have learned a new approach to alter Doc/View architecture from your application. I just realized that how the so called template classes can customize our application to the very best. But when I tried to add GetDocument() support to the view classes, other than the main view class, I am getting errors like base class undeclared, GetDocument() base class unidentified, insert ; before * in the line C3View* GetDocument(). I don't know why is it so. Also when I try to save some text it gives me an assertion failure message. Please can anyone shed light on this......
Thank you once again Mr. Invincible.
Every time a system value change tha application crashes. If you try to change the screen saver (with tha application running) the program crashes. Someone knows the solution for this problem? Thanks in advance, Nik
This job is great but there is a critical error when resizing the taskbar...
To avoid this problem, go in the section code :
>>BOOL CSDIFrameWnd::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
>> CCreateContext* pContext)
>>// create the splitter and the views in the
>>// disable view ID to use for next splitter
And add this lines :
>>m_SplitInfo[nID].m_wndSplitter.SetDlgCtrlID(0); >>m_SplitInfo[nID].m_wndSplitter.ShowWindow(SW_HIDE); // this one
It works better.
The application what i have developed is MDI having 2 views in single document. my intention is to swap between these 2 views. For example if there are 2 views A and B. and these options must be placed on menubar. While running i must open both the views. if i select optioon A from menubar, then A view must highlighted, and similarly with the case of option B. There should not be any hiding in the views, both the views must be either cascaded or tiled.
In my app(a SDI app),I splitted a view into two,the view derived from CRichEditView.And when I try to Drag and drop a file into one of the two views,I can't catch the EN_DROPFILES message, so I can't execute my operation.who can help me.thanks.