Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cannot access classview. Pin
_AnsHUMAN_ 2-Jun-06 23:22
_AnsHUMAN_ 2-Jun-06 23:22 
Questionconvert unicode? Pin
raghuji.rao2-Jun-06 19:21
raghuji.rao2-Jun-06 19:21 
AnswerRe: convert unicode? Pin
Taka Muraoka2-Jun-06 20:59
Taka Muraoka2-Jun-06 20:59 
AnswerRe: convert unicode? Pin
knoxplusplus8-Jun-06 7:47
knoxplusplus8-Jun-06 7:47 
QuestionDoubt in Splitter window Pin
Member 30398432-Jun-06 19:18
Member 30398432-Jun-06 19:18 
AnswerRe: Doubt in Splitter window Pin
raghuji.rao2-Jun-06 19:24
raghuji.rao2-Jun-06 19:24 
AnswerRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur2-Jun-06 23:51
Sameer_Thakur2-Jun-06 23:51 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398433-Jun-06 1:30
Member 30398433-Jun-06 1:30 
I getting an exception.
This is what i did in my code:
CMainFrame::OnCreateClient(..)
{
m_wndSplitter.CreateStatic( this,1,2);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMyTree),CSize(200,100),pContext);
m_wndSplitter1.CreateStatic(&m_wndSplitter,1,2,WS_CHILD | WS_VISIBLE | WS_BORDER,m_wndSplitter.IdFromRowCol(0,1));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CMyView1),CSize(200,100),pContext);
m_wndSplitter1.CreateView(0,1,RUNTIME_CLASS(CMyView1),CSize(400,200),pContext);
m_wndSplitter2.CreateStatic(&m_wndSplitter1,1,2,WS_CHILD | WS_VISIBLE | WS_BORDER,m_wndSplitter.IdFromRowCol(0,1));
m_wndSplitter2.SetRowInfo(0,1,1);
m_wndSplitter2.SetColumnInfo(0,1,1);
m_wndSplitter2.SetColumnInfo(1,1,1);
pCon=*pContext;
.....
}


In tree control view:

void CMyTree::OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
CMultiSplitWndApp* app=(CMultiSplitWndApp*)AfxGetApp();
HTREEITEM sel=pNMTreeView->itemNew.hItem;
CString str= GetTreeCtrl().GetItemText(sel);
CMainFrame* wnd=(CMainFrame*)app->m_pMainWnd;
wnd->m_wndSplitter1.DeleteView(0,1);
wnd->m_wndSplitter2.SetColumnInfo(0,400,100);
wnd->m_wndSplitter2.SetColumnInfo(1,400,100);
wnd->m_wndSplitter2.SetRowInfo(0,400,100);
wnd->m_wndSplitter2.CreateView(0,1,RUNTIME_CLASSCMyTree),CSize (400,200),&wnd->pCon);
wnd->m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CMyTree),CSize(400,200),&wnd->pCon);

*pResult = 0;
}


Correct me if there is any wrong.

Thanks for ur reply.Smile | :)
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur4-Jun-06 3:26
Sameer_Thakur4-Jun-06 3:26 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398434-Jun-06 18:02
Member 30398434-Jun-06 18:02 
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur4-Jun-06 19:56
Sameer_Thakur4-Jun-06 19:56 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398434-Jun-06 23:41
Member 30398434-Jun-06 23:41 
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur5-Jun-06 4:28
Sameer_Thakur5-Jun-06 4:28 
QuestionHow to set/clear and read status pin of COM port ? Pin
quangpk2-Jun-06 14:00
quangpk2-Jun-06 14:00 
QuestionCWnd::OnRButtonUp( ) Pin
LeeeNN2-Jun-06 13:03
LeeeNN2-Jun-06 13:03 
AnswerRe: CWnd::OnRButtonUp( ) Pin
Michael Dunn2-Jun-06 14:36
sitebuilderMichael Dunn2-Jun-06 14:36 
GeneralRe: CWnd::OnRButtonUp( ) Pin
LeeeNN2-Jun-06 21:20
LeeeNN2-Jun-06 21:20 
QuestionForcing focus to a control.... [modified] Pin
Peter Weyzen2-Jun-06 12:13
Peter Weyzen2-Jun-06 12:13 
AnswerRe: Forcing focus to a control.... [modified] Pin
Wes Aday2-Jun-06 12:20
professionalWes Aday2-Jun-06 12:20 
QuestionAccelerators Questions Pin
Maximilien2-Jun-06 10:31
Maximilien2-Jun-06 10:31 
GeneralRe: Accelerators Questions Pin
Maxwell Chen2-Jun-06 11:12
Maxwell Chen2-Jun-06 11:12 
QuestionWinsock 2 question Pin
SPowers2-Jun-06 10:17
SPowers2-Jun-06 10:17 
AnswerRe: Winsock 2 question Pin
Zac Howland2-Jun-06 10:22
Zac Howland2-Jun-06 10:22 
GeneralRe: Winsock 2 question Pin
SPowers2-Jun-06 10:23
SPowers2-Jun-06 10:23 
GeneralRe: Winsock 2 question Pin
led mike2-Jun-06 11:15
led mike2-Jun-06 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.