GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Apr-2005, 07:15
alexrait1 alexrait1 is offline
New Member
 
Join Date: Apr 2005
Posts: 1
alexrait1 is on a distinguished road

Splitters and Views


I have a CSplitterWnd and two views created for it.
That is something like that:

CPP / C++ / C Code:
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(MyTree),CSize(150,200),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(MyList),CSize(300,200),pContext);

Now, suppose I want to add another view for the first column and first row (0,1), in a way I could switch between them whenever I want to.

Currently if I write m_wndSplitter.DeleteView(0,0);
and then
m_wndCreateView(.... Another View....) it works ok,
but when I do it again

CPP / C++ / C Code:
m_wndSplitter.DeleteView(0,0);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(MyTree),CSize(150,200),pContext);

A blank view is created... I mean it is not initialized with the elements I had int the tree...
Last edited by LuciWiz : 27-Apr-2005 at 07:59. Reason: Please insert your C++ code between [c++] & [/c++] tags
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 1) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:21.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.