Exemple #1
0
BOOL CContainer::Create(DWORD dwStyle, const RECT& rect, CWin* pParentWnd, UINT nID) 
{
	// TODO: Add your specialized code here and/or call the base class
	pParent= pParentWnd;
	m_DOCKSITE=nID;
	LPCTSTR lpclassname=RegisterDefaultClass(NULL,WS_CHILD|WS_VISIBLE);
	return CWin::Create(lpclassname, _T(""), dwStyle, rect, pParentWnd->GetSafeHwnd(), nID);
}
Exemple #2
0
BOOL CMiniFrame::Create(CWin* pParentWnd, UINT nID, CRect& rc, CWin* pControls, DWORD dwStyle)
	{

		pParent=pParentWnd;
		m_ClientView=pControls;
		if (!m_ClientView) 
		{
			delete this;
			return false;
		}
	
		LPCTSTR lpclassname=RegisterDefaultClass();
		dwStyle|=WS_THICKFRAME;
		BOOL rb;
		CPoint pt (rc.left, rc.bottom);
		rb=CWin::Create(lpclassname,NULL,dwStyle,rc, pParentWnd->GetSafeHwnd(), nID);
		m_ClientView->SetWindowPos (NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOSIZE|SWP_SHOWWINDOW);
		m_ClientView->SetParent (this);
		m_ClientView->ShowWindow(SW_SHOW);
		ShowWindow (SW_HIDE);
		return rb;
	}
Exemple #3
0
BOOL CSplitter::Create(CWin* pParentWnd)
{
	// TODO: Add your specialized code here and/or call the base class
	LPTSTR lpclassname=RegisterDefaultClass(NULL,WS_CHILD|WS_VISIBLE);
	return CWin::Create(lpclassname,NULL, WS_VISIBLE|WS_CHILD, CRect(0,0,0,0), pParentWnd->GetSafeHwnd(), 0xffff);
}
Exemple #4
0
BOOL COutLook::Create(DWORD dwStyle,  CRect& rect, CWin* pParentWnd, UINT nID) 
{
	mnID=nID;
	LPCTSTR lpclassname=RegisterDefaultClass(NULL,WS_CHILD|WS_VISIBLE|CS_HREDRAW|CS_VREDRAW);
	return CWin::Create(lpclassname,NULL, dwStyle|WS_VISIBLE|WS_CHILD, CRect(0,0,0,0), pParentWnd->GetSafeHwnd(), nID);
}