Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: controlling multiple views Pin
Sakhalean22-Jun-10 20:43
Sakhalean22-Jun-10 20:43 
GeneralRe: controlling multiple views [OT] Pin
David Crow23-Jun-10 4:01
David Crow23-Jun-10 4:01 
QuestionHow can change formview in SDI application? Pin
Le@rner22-Jun-10 19:03
Le@rner22-Jun-10 19:03 
AnswerRe: How can change formview in SDI application? Pin
«_Superman_»22-Jun-10 19:35
professional«_Superman_»22-Jun-10 19:35 
GeneralRe: How can change formview in SDI application? Pin
Le@rner22-Jun-10 20:04
Le@rner22-Jun-10 20:04 
GeneralRe: How can change formview in SDI application? Pin
«_Superman_»22-Jun-10 20:27
professional«_Superman_»22-Jun-10 20:27 
GeneralRe: How can change formview in SDI application? Pin
Le@rner22-Jun-10 20:34
Le@rner22-Jun-10 20:34 
AnswerRe: How can change formview in SDI application? Pin
Sakhalean22-Jun-10 20:03
Sakhalean22-Jun-10 20:03 
U have to take createcontext structure.




CView* pView = NULL;

//Create the new view:
CCreateContext context;
context.m_pNewViewClass = pNewViewRTClass;
context.m_pCurrentDoc = pDoc;

pView = STATIC_DOWNCAST(CView, pFrame->CreateView(&context));
if(pView != NULL)
{
//destroy the old view:
if ( !pWndToDelete->DestroyWindow() )
{
return;
}

pView->OnInitialUpdate();

//Show and activate view:
pView->ShowWindow(SW_SHOW);
pFrame->SetActiveView(pView);
pFrame->RecalcLayout();
}
GeneralRe: How can change formview in SDI application? Pin
Le@rner22-Jun-10 20:44
Le@rner22-Jun-10 20:44 
GeneralRe: How can change formview in SDI application? Pin
Sakhalean22-Jun-10 20:46
Sakhalean22-Jun-10 20:46 
GeneralRe: How can change formview in SDI application? Pin
Le@rner22-Jun-10 21:10
Le@rner22-Jun-10 21:10 
AnswerRe: How can change formview in SDI application? Pin
SandipG 22-Jun-10 21:21
SandipG 22-Jun-10 21:21 
QuestionAccelerator key Pin
Pryabu22-Jun-10 17:42
Pryabu22-Jun-10 17:42 
AnswerRe: Accelerator key Pin
«_Superman_»22-Jun-10 18:56
professional«_Superman_»22-Jun-10 18:56 
GeneralRe: Accelerator key Pin
Pryabu22-Jun-10 19:05
Pryabu22-Jun-10 19:05 
QuestionCreating an executable from hexcode ( c++ ) Pin
ALLERSLIT22-Jun-10 14:23
ALLERSLIT22-Jun-10 14:23 
AnswerRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:29
professionalRichard Andrew x6422-Jun-10 14:29 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
ALLERSLIT22-Jun-10 14:34
ALLERSLIT22-Jun-10 14:34 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:39
professionalRichard Andrew x6422-Jun-10 14:39 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
ALLERSLIT22-Jun-10 14:44
ALLERSLIT22-Jun-10 14:44 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:53
professionalRichard Andrew x6422-Jun-10 14:53 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
David Crow22-Jun-10 16:04
David Crow22-Jun-10 16:04 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Stephen Hewitt22-Jun-10 18:07
Stephen Hewitt22-Jun-10 18:07 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
MrWhiteboard23-Jun-10 5:58
MrWhiteboard23-Jun-10 5:58 
AnswerRe: Creating an executable from hexcode ( c++ ) Pin
Aescleal22-Jun-10 22:03
Aescleal22-Jun-10 22:03 

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.