|
Ah, using Excel in as an ActiveX object is an interesting idea, so yes please, I'd love to see a little demo. Thanks!
|
|
|
|
|
Please send me an email ...
|
|
|
|
|
Following is the code which i wrote to implement a splitter view to join together 5 dialog. Problem is the split window at the bottom screen occupies the whole form area please help me to remove the error.
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
m_wndSplitter.CreateStatic(this, 2, 1);
m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0));
m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CFormLeft), CSize(200,100), pContext);
m_wndSplitter1.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter.IdFromRowCol (1, 0));
m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CFormBottomLeft), CSize(200,100), pContext);
m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CFormBottomRight), CSize(200,100), pContext);
m_wndSplitter3.CreateStatic(&m_wndSplitter2, 2, 1, WS_CHILD | WS_VISIBLE, m_wndSplitter2.IdFromRowCol (0, 1));
m_wndSplitter3.CreateView(0, 0, RUNTIME_CLASS(CFormRightUp), CSize(200,100), pContext);
m_wndSplitter3.CreateView(1, 0, RUNTIME_CLASS(CFormRightBottom), CSize(200,100), pContext);
return TRUE;
}
|
|
|
|
|
I believe you need to create views for all the panes that you create.
So after you create a splitter with m_wndSplitter having 2 rows, you need to create 2 views in these 2 rows before creating the next splitter with m_wndSplitter2 .
|
|
|
|
|
Does [this] article help?
|
|
|
|
|
Yup it helped.
But actually what i did was to resize the dialog boxes after all the splitter controls were created.
|
|
|
|
|
Hi all,
i want to know how can i save my CTreeCtrl Structure in a file ,and again load same a previous from reading the save file.
thanks.
|
|
|
|
|
See my answer to your other question. Alternatively you could learn about the CFile class and roll your own.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Again, once you have grasped the MFC serialization fundamentals (please see the link to the documentation I provided in the below thread), you'll find yourself how to serialize the CTreeCtrl object.
Veni, vidi, vici.
|
|
|
|
|
Why file? Thats so Windows 3.11's win.ini
Do it in the registry.
But here you go.
|
|
|
|
|
Actually serialization has (almost) nothing to do with .ini files and it still a well-alive technique (one may argue that .ini files too are still used).
Veni, vidi, vici.
|
|
|
|
|
Again you are always right.
The Wiki page states:
Serialization is the process of converting a data structure or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and "resurrected" later in the same or another computer environment.
http://en.wikipedia.org/wiki/Serialization[^]
The INI file format is an informal standard for configuration files for some platforms or software. INI files are simple text files with a basic structure composed of "sections" and "properties".
http://en.wikipedia.org/wiki/INI_file[^]
|
|
|
|
|
TopCoder23 wrote: Again you are always right.
May I forward your sentence to Mrs 'The Wife'?
Veni, vidi, vici.
|
|
|
|
|
thanks its done from ur help...
|
|
|
|
|
Hi all,
please guide me or help me to use serialization in my dialog based application.
thanks.
|
|
|
|
|
You have been a member here long enough to know that questions like this can be researched quite easily by using Google and/or MSDN. For MSDN you can go directly to the CArchive class and learn how to use that.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
There is nothing special in using serialization in a dialog based appication. You might start reading the documentation[^] in order to implement it.
Veni, vidi, vici.
|
|
|
|
|
Hi,
I have a Worker thread started in my main thread CWinAPP
and I am trying to do a SendMessage to a CDIalog
seems I can only do a Send/PostMessage to the CMainFrame Main Window
can someone corrabrate or dispute this
and if so is there a way to get a Message to the CDialog
thanks
|
|
|
|
|
What kind of communication you want to make with the dialog?
Is that dialog is alive when you send the message?
Note that the Post message will not block your thread, and sendmessage will.
|
|
|
|
|
The Thread is Created in the CWinApp::Initinstance
seems like either Send/PostMessage always references the MainWinow CMainFrame
I keep on getting CInvalidArg exception because my WIndow Handle is the CDialog
|
|
|
|
|
Before trying to use threads to communicate with the GUI I strongly suggest you reading some Newcomer's articles about. You may start, for instance with "Using Worker Threads"[^].
Veni, vidi, vici.
|
|
|
|