Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Assigning a class name to a dialog based app Pin
Cristi26-Mar-03 3:13
Cristi26-Mar-03 3:13 
GeneralRe: Assigning a class name to a dialog based app Pin
jerry0davis26-Mar-03 4:57
jerry0davis26-Mar-03 4:57 
GeneralRe: Assigning a class name to a dialog based app Pin
Cristi26-Mar-03 21:34
Cristi26-Mar-03 21:34 
Generalread the recording volume Pin
Willem B26-Mar-03 0:41
Willem B26-Mar-03 0:41 
GeneralWhy i am getting ASSERT file name: WinCore.cpp linenumber: 312 Pin
Member 10566626-Mar-03 0:29
Member 10566626-Mar-03 0:29 
GeneralRe: Why i am getting ASSERT file name: WinCore.cpp linenumber: 312 Pin
Roger Allen26-Mar-03 2:24
Roger Allen26-Mar-03 2:24 
Questionhas ANYBODY ever written an addin in VS.NET???? Pin
schaereran@gmx.net25-Mar-03 22:53
schaereran@gmx.net25-Mar-03 22:53 
GeneralMultiple Views in a SDI project Pin
Anonymous25-Mar-03 22:37
Anonymous25-Mar-03 22:37 
I need to have more than one view in my application
so I have wrote the following function.

void CMyDoc::CreateAllViews()
{
CCreateContext l_Context;
l_Context.m_pCurrentDoc = this;

CView* l_pActiveView = g_pMainFrame->GetActiveView();

::SetWindowLong(l_pActiveView->m_hWnd, GWL_ID, 0);


l_Context.m_pNewViewClass = RUNTIME_CLASS(CRilevamentoDatiView);
m_pRilevamentoDatiView = (CRilevamentoDatiView*)STATIC_DOWNCAST(CView, g_pMainFrame->CreateView(&l_Context));

l_Context.m_pNewViewClass = RUNTIME_CLASS(CStatisticheView);
m_pStatisticheView = (CStatisticheView*)STATIC_DOWNCAST(CView, g_pMainFrame->CreateView(&l_Context));

l_Context.m_pNewViewClass = RUNTIME_CLASS(CFiltriView);
m_pFiltriView = (CFiltriView*)STATIC_DOWNCAST(CView, g_pMainFrame->CreateView(&l_Context));

l_Context.m_pNewViewClass = RUNTIME_CLASS(CConfigurazioneView);
m_pConfigurazioneView = (CConfigurazioneView*)STATIC_DOWNCAST(CView, g_pMainFrame->CreateView(&l_Context));
}



The problem is the following:
views creation is ok but all of them looks like the last one created
in my function.

Is it possible to have multiple views in a SDI project ??
Does someone knows why my function doesn't works ???
GeneralRe: Multiple Views in a SDI project Pin
DREVET Olivier26-Mar-03 0:53
DREVET Olivier26-Mar-03 0:53 
GeneralMultiple Views in a SDI project Pin
Anonymous25-Mar-03 22:15
Anonymous25-Mar-03 22:15 
QuestionHow To Detect Proxy Settings and Manipulate them Pin
Vikrant Kapoor25-Mar-03 21:49
Vikrant Kapoor25-Mar-03 21:49 
AnswerRe: How To Detect Proxy Settings and Manipulate them Pin
Joaquín M López Muñoz25-Mar-03 22:13
Joaquín M López Muñoz25-Mar-03 22:13 
GeneralRe: How To Detect Proxy Settings and Manipulate them Pin
John-theKing26-Mar-03 2:06
John-theKing26-Mar-03 2:06 
GeneralRe: How To Detect Proxy Settings and Manipulate them Pin
Joaquín M López Muñoz26-Mar-03 2:28
Joaquín M López Muñoz26-Mar-03 2:28 
GeneralRe: How To Detect Proxy Settings and Manipulate them Pin
John-theKing26-Mar-03 20:00
John-theKing26-Mar-03 20:00 
GeneralRe: How To Detect Proxy Settings and Manipulate them Pin
Joaquín M López Muñoz26-Mar-03 20:10
Joaquín M López Muñoz26-Mar-03 20:10 
GeneralRe: How To Detect Proxy Settings and Manipulate them Pin
John-theKing26-Mar-03 20:15
John-theKing26-Mar-03 20:15 
Questionhow to add entry to personnel address book programatically Pin
Alfred25-Mar-03 21:38
Alfred25-Mar-03 21:38 
GeneralProblem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
lob25-Mar-03 21:12
lob25-Mar-03 21:12 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
lob27-Mar-03 0:54
lob27-Mar-03 0:54 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
John R. Shaw28-Mar-03 18:13
John R. Shaw28-Mar-03 18:13 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
lob28-Mar-03 22:48
lob28-Mar-03 22:48 
QuestionDistributed Compiling? Pin
AAntix25-Mar-03 21:09
AAntix25-Mar-03 21:09 
AnswerRe: Distributed Compiling? Pin
Abbas_Riazi25-Mar-03 21:36
professionalAbbas_Riazi25-Mar-03 21:36 
QuestionHow To Turn Off The PC ? Pin
Vikrant Kapoor25-Mar-03 21:09
Vikrant Kapoor25-Mar-03 21:09 

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.