Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreate bitmap Pin
Sarath C4-Jul-06 0:17
Sarath C4-Jul-06 0:17 
AnswerRe: Create bitmap Pin
Justin Tay4-Jul-06 0:39
Justin Tay4-Jul-06 0:39 
QuestionReplacing Windows' copy manager (?) Pin
smithjunior3-Jul-06 23:59
smithjunior3-Jul-06 23:59 
QuestionResize SpliterWnd on CFrameWnd Pin
huynhnb3-Jul-06 23:50
huynhnb3-Jul-06 23:50 
QuestionCommunication from Dialog to CFormView Pin
Uday Janaswamy3-Jul-06 23:36
Uday Janaswamy3-Jul-06 23:36 
AnswerRe: Communication from Dialog to CFormView Pin
Weiye Chen3-Jul-06 23:39
Weiye Chen3-Jul-06 23:39 
GeneralRe: Communication from Dialog to CFormView Pin
Uday Janaswamy4-Jul-06 3:17
Uday Janaswamy4-Jul-06 3:17 
AnswerRe: Communication from Dialog to CFormView Pin
huynhnb3-Jul-06 23:55
huynhnb3-Jul-06 23:55 
You can add one frame on dialog and create view with CFormView
same:
pMainFrame = (CFrameWnd*) RUNTIME_CLASS(CFrameWnd)->CreateObject();

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(128,
RUNTIME_CLASS(CDocument),
RUNTIME_CLASS(CFrameWnd),
RUNTIME_CLASS(CFormView));

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

m_pMainFrame ->Create(strCssEditorClass, _T(""), WS_CHILD, CRect(0,0,1,1), this, NULL, 0, &sContext);
pMainFrame ->MoveWindow(0,0,200,200);
pMainFrame ->ShowWindow(SW_SHOW);
// OnInitDialog()


.: Your success is also mine :.
GeneralRe: Communication from Dialog to CFormView [modified] Pin
Uday Janaswamy4-Jul-06 3:07
Uday Janaswamy4-Jul-06 3:07 
GeneralRe: Communication from Dialog to CFormView Pin
huynhnb4-Jul-06 16:32
huynhnb4-Jul-06 16:32 
GeneralRe: Communication from Dialog to CFormView Pin
Uday Janaswamy4-Jul-06 18:36
Uday Janaswamy4-Jul-06 18:36 
GeneralRe: Communication from Dialog to CFormView Pin
Uday Janaswamy5-Jul-06 18:26
Uday Janaswamy5-Jul-06 18:26 
AnswerRe: Communication from Dialog to CFormView Pin
Hamid_RT4-Jul-06 2:03
Hamid_RT4-Jul-06 2:03 
Questiona snapshot Pin
V_shr3-Jul-06 23:35
V_shr3-Jul-06 23:35 
AnswerRe: a snapshot Pin
Justin Tay3-Jul-06 23:49
Justin Tay3-Jul-06 23:49 
QuestionCommunication between Two Dialog Pin
Amit Agarrwal3-Jul-06 23:28
Amit Agarrwal3-Jul-06 23:28 
AnswerRe: Communication between Two Dialog Pin
_AnsHUMAN_ 3-Jul-06 23:36
_AnsHUMAN_ 3-Jul-06 23:36 
GeneralRe: Communication between Two Dialog Pin
Amit Agarrwal3-Jul-06 23:44
Amit Agarrwal3-Jul-06 23:44 
GeneralRe: Communication between Two Dialog Pin
_AnsHUMAN_ 3-Jul-06 23:51
_AnsHUMAN_ 3-Jul-06 23:51 
GeneralRe: Communication between Two Dialog Pin
Amit Agarrwal4-Jul-06 0:12
Amit Agarrwal4-Jul-06 0:12 
GeneralRe: Communication between Two Dialog Pin
Amit Agarrwal4-Jul-06 0:51
Amit Agarrwal4-Jul-06 0:51 
AnswerRe: Communication between Two Dialog Pin
Weiye Chen3-Jul-06 23:45
Weiye Chen3-Jul-06 23:45 
QuestionLoading the correct icons Pin
Remco Hoogenboezem3-Jul-06 23:27
Remco Hoogenboezem3-Jul-06 23:27 
Questionoutput to CSV file Pin
PhilWalker3-Jul-06 23:16
PhilWalker3-Jul-06 23:16 
AnswerRe: output to CSV file Pin
*Dreamz3-Jul-06 23:40
*Dreamz3-Jul-06 23:40 

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.