CFanatic
>
Programming
>
MFC Programming
Create window
User Name
Save
Password
Register
FAQ
Members List
Search
Today's Posts
Mark Forums Read
Create window
topic posted under
MFC Programming
which is a part of
Programming
category in
CFanatic Forum
Thread Tools
Display Modes
#
1
07-24-2008, 11:53 PM
e_pech
Junior Member
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
|
More
Create window
Hello! I'm kind of new using MFC. I have a Doc/View App (SDI) and I want to (thru a menu) create a new view of the document on a separate window (not like an MDI). How can I do that?
Hope you can help me!
#
2
07-25-2008, 02:09 AM
e_pech
Junior Member
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
|
More
Re: Create window
Hey! Reading a little bit about it on the internet, I came across this code.
CMainFrame* pFrame = new CMainFrame;
CCreateContext contexto;
contexto.m_pCurrentDoc = this;
contexto.m_pCurrentFrame = pFrame;
contexto.m_pLastView = NULL;
contexto.m_pNewDocTemplate = NULL;
contexto.m_pNewViewClass =RUNTIME_CLASS(CFuncionesView);
pFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, &contexto); //AfxGetMainWnd()->GetActiveWindow(),
pFrame->ShowWindow(SW_NORMAL);
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How to create a 3d room outline by MFC Appwizard
dathatreya
MFC Programming
0
04-02-2008
07:22 AM
how do i create the .exe that calls the diffetent c programms and run that in c++
imran2in
C Programming
5
10-08-2007
10:44 PM
how to make a window to always on top of all the other window
vidhya
Win32 Programming
11
06-05-2007
09:25 PM
how to destroy or close the window and create the new window
vidhya
Win32 Programming
3
05-24-2007
11:40 PM
create aspx page in runtime
sanju11
C# Programming
0
01-01-2007
04:45 AM
Advertisement
CFanatic Search
Custom Search
Advertisement
All times are GMT -5. The time now is
03:53 PM
.
Contact Us
-
C, C++, MFC, Managed C++ & C# Programming
-
Internet Marketing Tips
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact
here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board