MCPcopy Create free account
hub / github.com/agraef/pure-lang / OnCreateClient

Method OnCreateClient

purepad/MainFrm.cpp:546–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
547 CCreateContext* pContext)
548{
549 // create splitter window
550 m_nPaneSplit = AfxGetApp()->GetProfileInt(szSettings,
551 szPaneSplit, 230);
552 if (!m_wndSplitter.CreateStatic(this, 2, 1))
553 return FALSE;
554
555 if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CQpadView), CSize(100, m_nPaneSplit), pContext) ||
556 !m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CEvalView), CSize(100, 100), pContext))
557 {
558 m_wndSplitter.DestroyWindow();
559 return FALSE;
560 }
561
562 return TRUE;
563}
564
565LRESULT CMainFrame::OnInput(WPARAM, LPARAM)
566{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected