Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionONCREAECLIENT Pin
ashish dogra3-Jul-06 23:09
ashish dogra3-Jul-06 23:09 
AnswerRe: ONCREAECLIENT Pin
_AnsHUMAN_ 3-Jul-06 23:15
_AnsHUMAN_ 3-Jul-06 23:15 
GeneralRe: ONCREAECLIENT Pin
ashish dogra3-Jul-06 23:24
ashish dogra3-Jul-06 23:24 
GeneralRe: ONCREAECLIENT [modified] Pin
_AnsHUMAN_ 3-Jul-06 23:32
_AnsHUMAN_ 3-Jul-06 23:32 
GeneralRe: ONCREAECLIENT Pin
ashish dogra3-Jul-06 23:45
ashish dogra3-Jul-06 23:45 
GeneralRe: ONCREAECLIENT Pin
_AnsHUMAN_ 4-Jul-06 0:01
_AnsHUMAN_ 4-Jul-06 0:01 
GeneralRe: ONCREAECLIENT Pin
ashish dogra4-Jul-06 0:09
ashish dogra4-Jul-06 0:09 
GeneralRe: ONCREAECLIENT Pin
huynhnb4-Jul-06 0:22
huynhnb4-Jul-06 0:22 
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
int n_id = AFX_IDW_PANE_FIRST;
if (!m_splitwnd.CreateStatic(this, 1, 2, WS_CHILD|WS_VISIBLE|WS_BORDER, n_id))
{
return FALSE;
}


if (!m_splitwnd.CreateView(0, 0, RUNTIME_CLASS(CView1),CSize(0, 0), pContext) ||
!m_splitwnd.CreateView(0, 1, RUNTIME_CLASS(CView2), CSize(0, 0), pContext))
{
m_splitwnd.DestroyWindow();
return FALSE;
}
m_splitwnd.SetColumnInfo(0, 300, 50);
return TRUE;
}
My Code is runing. You can try.
// with CView1/2 your View
If one of view is CFormView, you check setting Dialog of FormView, Style is Child.

.: Your success is also mine :.
GeneralRe: ONCREAECLIENT Pin
ashish dogra4-Jul-06 0:37
ashish dogra4-Jul-06 0:37 
QuestionCopyFile Pin
hafz3-Jul-06 23:08
hafz3-Jul-06 23:08 
AnswerRe: CopyFile Pin
Weiye Chen3-Jul-06 23:10
Weiye Chen3-Jul-06 23:10 
AnswerRe: CopyFile Pin
Hamid_RT4-Jul-06 2:21
Hamid_RT4-Jul-06 2:21 
QuestionHow to create ActiveX like SDI application? Pin
safety_ruk3-Jul-06 23:05
safety_ruk3-Jul-06 23:05 
Questionabout circular button(owner draw) Pin
HOW WHAT3-Jul-06 23:00
HOW WHAT3-Jul-06 23:00 
AnswerRe: about circular button(owner draw) Pin
Sarath C4-Jul-06 0:30
Sarath C4-Jul-06 0:30 
QuestionFinding the Ordinal of an imported function Pin
capricious_0013-Jul-06 22:36
capricious_0013-Jul-06 22:36 
AnswerRe: Finding the Ordinal of an imported function Pin
Viorel.3-Jul-06 23:53
Viorel.3-Jul-06 23:53 
GeneralRe: Finding the Ordinal of an imported function Pin
capricious_0014-Jul-06 0:09
capricious_0014-Jul-06 0:09 
QuestionProblems with LaserJet driver Pin
quique3-Jul-06 21:55
quique3-Jul-06 21:55 
AnswerRe: Problems with LaserJet driver Pin
Hamid_RT3-Jul-06 22:08
Hamid_RT3-Jul-06 22:08 
GeneralRe: Problems with LaserJet driver Pin
quique4-Jul-06 0:46
quique4-Jul-06 0:46 
GeneralRe: Problems with LaserJet driver Pin
Hamid_RT4-Jul-06 2:20
Hamid_RT4-Jul-06 2:20 
GeneralRe: Problems with LaserJet driver Pin
quique4-Jul-06 4:53
quique4-Jul-06 4:53 
GeneralRe: Problems with LaserJet driver Pin
Hamid_RT4-Jul-06 5:52
Hamid_RT4-Jul-06 5:52 
GeneralRe: Problems with LaserJet driver Pin
quique4-Jul-06 21:29
quique4-Jul-06 21: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.