Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLinking Libaray Pin
we3Guy5-Jul-06 23:42
we3Guy5-Jul-06 23:42 
GeneralRe: DLL linking Pin
Viorel.5-Jul-06 23:46
Viorel.5-Jul-06 23:46 
Generalvirol plz yar Pin
ashish dogra6-Jul-06 21:49
ashish dogra6-Jul-06 21:49 
GeneralRe: DLL linking Pin
ashish dogra6-Jul-06 21:26
ashish dogra6-Jul-06 21:26 
Questiondialog back color Pin
locoone5-Jul-06 23:06
locoone5-Jul-06 23:06 
AnswerRe: dialog back color Pin
FarPointer5-Jul-06 23:13
FarPointer5-Jul-06 23:13 
AnswerRe: dialog back color Pin
huynhnb5-Jul-06 23:14
huynhnb5-Jul-06 23:14 
GeneralCommunication from Dialog to CFormView Pin
Uday Janaswamy6-Jul-06 1:07
Uday Janaswamy6-Jul-06 1: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 2:33
huynhnb6-Jul-06 2:33 
GeneralRe: Communication from Dialog to CFormView Pin
Uday Janaswamy6-Jul-06 5:08
Uday Janaswamy6-Jul-06 5:08 
AnswerRe: dialog back color Pin
Hamid_RT6-Jul-06 0:44
Hamid_RT6-Jul-06 0:44 
QuestionSocket communication - An unknown error occured while accessing an unnamed file Pin
steff.k@gmx.net5-Jul-06 22:56
steff.k@gmx.net5-Jul-06 22:56 
QuestionEdit box with color text Pin
Manjunath S5-Jul-06 22:54
Manjunath S5-Jul-06 22:54 
AnswerRe: Edit box with color text Pin
locoone5-Jul-06 23:01
locoone5-Jul-06 23:01 
AnswerRe: Edit box with color text Pin
see me5-Jul-06 23:01
see me5-Jul-06 23:01 
AnswerRe: Edit box with color text Pin
Hamid_RT6-Jul-06 0:47
Hamid_RT6-Jul-06 0:47 
AnswerRe: Edit box with color text Pin
rahul20June766-Jul-06 1:05
rahul20June766-Jul-06 1:05 
QuestionAdding file to a zip archive Pin
Leovinus5-Jul-06 22:53
Leovinus5-Jul-06 22:53 
AnswerRe: Adding file to a zip archive Pin
ThatsAlok6-Jul-06 1:06
ThatsAlok6-Jul-06 1:06 
GeneralRe: Adding file to a zip archive Pin
Leovinus6-Jul-06 1:16
Leovinus6-Jul-06 1:16 
QuestionCPropertyPage Pin
Anu_Bala5-Jul-06 22:51
Anu_Bala5-Jul-06 22:51 
AnswerRe: CPropertyPage Pin
Nishad S5-Jul-06 23:24
Nishad S5-Jul-06 23:24 
GeneralRe: CPropertyPage Pin
Anu_Bala6-Jul-06 0:40
Anu_Bala6-Jul-06 0:40 
GeneralRe: CPropertyPage Pin
Nishad S6-Jul-06 0:55
Nishad S6-Jul-06 0:55 
GeneralRe: CPropertyPage Pin
David Crow6-Jul-06 4:31
David Crow6-Jul-06 4: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.