Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUrgent help needed with MultiMap!!! Pin
Anonymous15-Jul-02 3:21
Anonymous15-Jul-02 3:21 
GeneralRe: Urgent help needed with MultiMap!!! Pin
Christian Graus15-Jul-02 3:29
protectorChristian Graus15-Jul-02 3:29 
GeneralRe: Urgent help needed with MultiMap!!! Pin
Anonymous15-Jul-02 18:45
Anonymous15-Jul-02 18:45 
GeneralUrgent : Help with Visual Studio .NET C++ addin Pin
jp-lacombe15-Jul-02 3:13
sussjp-lacombe15-Jul-02 3:13 
GeneralRe: Urgent : Help with Visual Studio .NET C++ addin Pin
Anonymous15-Jul-02 22:40
Anonymous15-Jul-02 22:40 
GeneralRe: Urgent : Help with Visual Studio .NET C++ addin Pin
Anonymous31-Jul-02 1:52
Anonymous31-Jul-02 1:52 
GeneralMainFrame precreate is ignored!!!!! Pin
ns15-Jul-02 3:09
ns15-Jul-02 3:09 
GeneralHelp! need to modify this "switchview" function Pin
ns15-Jul-02 2:53
ns15-Jul-02 2:53 
I have SwitchView routine presently written as a member of the CMAInFrame class. I need to access this function from a view class. I cannot figure out how to call this function from CMYView:
I tried AfxGetWnd()->SwitchView but thats not right.

If theres no way to get to the function (I dont believe that!), then I'd like to modify it so that it becomes a member of the view class. This step woud really be very instructive for me, since I'm new and just now getting a feel for all these classes in the doc/view architecture.

Here is the function:

BOOL CMainFrame::SwitchView(CMultiDocTemplate *pTemplate, CRuntimeClass *pViewClass)
{
CMDIChildWnd* pChild = (CMDIChildWnd*) MDIGetActive();

if ( pChild == NULL ) return FALSE;

CDocument* pDoc = pChild->GetActiveDocument();

if ( pDoc == NULL ) return FALSE;

CView* pView;


POSITION pos;

pos = pDoc->GetFirstViewPosition();

while( pos != NULL )
{
pView = pDoc->GetNextView( pos );

if( pView->IsKindOf( pViewClass ) )
{
pView->GetParentFrame()->ActivateFrame();

return TRUE;
}
}


pChild = (CMDIChildWnd*) pTemplate->CreateNewFrame(pDoc, NULL ); //error here ERROR: Dialog with IDD 0x0082 must have the child style.

if( pChild == NULL ) return FALSE;

pChild->MDIActivate();


pTemplate->InitialUpdateFrame( pChild, pDoc);

return TRUE;
}

GeneralRe: Help! need to modify this "switchview" function Pin
567890123415-Jul-02 4:48
567890123415-Jul-02 4:48 
GeneralRe: Thanks a million Pin
ns15-Jul-02 8:00
ns15-Jul-02 8:00 
GeneralProperty page and caption Pin
yolf15-Jul-02 2:23
yolf15-Jul-02 2:23 
GeneralRe: Property page and caption Pin
Martin Ziacek15-Jul-02 2:26
Martin Ziacek15-Jul-02 2:26 
GeneralRe: Property page and caption Pin
yolf15-Jul-02 3:20
yolf15-Jul-02 3:20 
GeneralRe: Property page and caption Pin
Martin Ziacek15-Jul-02 3:46
Martin Ziacek15-Jul-02 3:46 
QuestionHow to create a consol window like the output window of VC++ 6.0 ??? Pin
Raphael Kindt15-Jul-02 2:11
Raphael Kindt15-Jul-02 2:11 
AnswerRe: How to create a consol window like the output window of VC++ 6.0 ??? Pin
567890123415-Jul-02 2:43
567890123415-Jul-02 2:43 
Generalhow to add text in the end of the CEdit control ??? Pin
Raphael Kindt15-Jul-02 3:32
Raphael Kindt15-Jul-02 3:32 
QuestionWhere to put my Code? Pin
Shibu.V.Nair15-Jul-02 1:05
Shibu.V.Nair15-Jul-02 1:05 
AnswerRe: Where to put my Code? Pin
Nish Nishant15-Jul-02 1:18
sitebuilderNish Nishant15-Jul-02 1:18 
AnswerRe: Where to put my Code? Pin
Raphael Kindt15-Jul-02 1:20
Raphael Kindt15-Jul-02 1:20 
AnswerRe: Where to put my Code? Pin
Ernest Laurentin15-Jul-02 1:24
Ernest Laurentin15-Jul-02 1:24 
QuestionCatching NM_CUSTOMDRAW ? Pin
Brian van der Beek15-Jul-02 0:55
Brian van der Beek15-Jul-02 0:55 
GeneralCSocket basic question Pin
zecodela14-Jul-02 23:10
zecodela14-Jul-02 23:10 
GeneralRe: CSocket basic question Pin
SAWilde14-Jul-02 23:16
SAWilde14-Jul-02 23:16 
GeneralRe: CSocket basic question Pin
Anonymous15-Jul-02 0:29
Anonymous15-Jul-02 0:29 

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.