Click here to Skip to main content
15,847,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLinking Libaray Pin
we3Guy6-Jul-06 0:42
we3Guy6-Jul-06 0:42 
GeneralRe: DLL linking Pin
Viorel.6-Jul-06 0:46
Viorel.6-Jul-06 0:46 
Generalvirol plz yar Pin
ashish dogra6-Jul-06 22:49
ashish dogra6-Jul-06 22:49 
GeneralRe: DLL linking Pin
ashish dogra6-Jul-06 22:26
ashish dogra6-Jul-06 22:26 
Questiondialog back color Pin
locoone6-Jul-06 0:06
locoone6-Jul-06 0:06 
AnswerRe: dialog back color Pin
FarPointer6-Jul-06 0:13
FarPointer6-Jul-06 0:13 
AnswerRe: dialog back color Pin
huynhnb6-Jul-06 0:14
huynhnb6-Jul-06 0:14 
GeneralCommunication from Dialog to CFormView Pin
Uday Janaswamy6-Jul-06 2:07
Uday Janaswamy6-Jul-06 2:07 
Dear Huynhng,

I am able to Show the CFormView from CDialog but i am seeing the CFormView with in CDialog. I want to show the CFormView as a Separate Window/Frame.

here is the code as you told.

//==================================================================


CFrameWnd *pMainFrame = (CFrameWnd*)RUNTIME_CLASS(kiranfrm)->CreateObject();

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(IDI_ICON1,
RUNTIME_CLASS(kirandoc),
RUNTIME_CLASS(kiranfrm),
RUNTIME_CLASS(kiran));

CCreateContext sContext;
sContext.m_pCurrentDoc = (CDocument*) RUNTIME_CLASS(kirandoc)->CreateObject();
sContext.m_pCurrentFrame = NULL;
sContext.m_pLastView = NULL;
sContext.m_pNewDocTemplate = pDocTemplate;
sContext.m_pNewViewClass = RUNTIME_CLASS(kiran);

CString strClass= AfxRegisterWndClass(CS_VREDRAW|CS_HREDRAW, ::LoadCursor(NULL, IDC_ARROW), (HBRUSH)::GetStockObject(WHITE_BRUSH), ::LoadIcon(NULL, IDI_APPLICATION));
pMainFrame ->Create(strClass, _T(""), WS_CHILD, CRect(0,0,1,1), this, NULL, 0, &sContext);
pMainFrame ->MoveWindow(200,100,300,300);
pMainFrame ->ShowWindow(SW_SHOW);
//===========================================================================

Please help me Out. It is very Urgent.

uday.
GeneralRe: Communication from Dialog to CFormView Pin
huynhnb6-Jul-06 3:33
huynhnb6-Jul-06 3:33 
GeneralRe: Communication from Dialog to CFormView Pin
Uday Janaswamy6-Jul-06 6:08
Uday Janaswamy6-Jul-06 6:08 
AnswerRe: dialog back color Pin
Hamid_RT6-Jul-06 1:44
Hamid_RT6-Jul-06 1:44 
QuestionSocket communication - An unknown error occured while accessing an unnamed file Pin
steff.k@gmx.net5-Jul-06 23:56
steff.k@gmx.net5-Jul-06 23:56 
QuestionEdit box with color text Pin
Manjunath S5-Jul-06 23:54
Manjunath S5-Jul-06 23:54 
AnswerRe: Edit box with color text Pin
locoone6-Jul-06 0:01
locoone6-Jul-06 0:01 
AnswerRe: Edit box with color text Pin
see me6-Jul-06 0:01
see me6-Jul-06 0:01 
AnswerRe: Edit box with color text Pin
Hamid_RT6-Jul-06 1:47
Hamid_RT6-Jul-06 1:47 
AnswerRe: Edit box with color text Pin
rahul20June766-Jul-06 2:05
rahul20June766-Jul-06 2:05 
QuestionAdding file to a zip archive Pin
Leovinus5-Jul-06 23:53
Leovinus5-Jul-06 23:53 
AnswerRe: Adding file to a zip archive Pin
ThatsAlok6-Jul-06 2:06
ThatsAlok6-Jul-06 2:06 
GeneralRe: Adding file to a zip archive Pin
Leovinus6-Jul-06 2:16
Leovinus6-Jul-06 2:16 
QuestionCPropertyPage Pin
Anu_Bala5-Jul-06 23:51
Anu_Bala5-Jul-06 23:51 
AnswerRe: CPropertyPage Pin
Nishad S6-Jul-06 0:24
Nishad S6-Jul-06 0:24 
GeneralRe: CPropertyPage Pin
Anu_Bala6-Jul-06 1:40
Anu_Bala6-Jul-06 1:40 
GeneralRe: CPropertyPage Pin
Nishad S6-Jul-06 1:55
Nishad S6-Jul-06 1:55 
GeneralRe: CPropertyPage Pin
David Crow6-Jul-06 5:31
David Crow6-Jul-06 5:31 

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.