Click here to Skip to main content
15,916,042 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: isValidDoubleValue(double *) Pin
Tibor Blazko12-May-04 4:40
Tibor Blazko12-May-04 4:40 
GeneralRe: isValidDoubleValue(double *) Pin
Chris Meech12-May-04 6:50
Chris Meech12-May-04 6:50 
GeneralRe: isValidDoubleValue(double *) Pin
Tibor Blazko12-May-04 22:36
Tibor Blazko12-May-04 22:36 
GeneralRe: isValidDoubleValue(double *) Pin
Tim Smith12-May-04 11:05
Tim Smith12-May-04 11:05 
Generalcatching events that are outside my program Pin
caykahve12-May-04 3:19
caykahve12-May-04 3:19 
GeneralRe: catching events that are outside my program Pin
jmkhael12-May-04 3:27
jmkhael12-May-04 3:27 
Questionwhy splitter window fail? Pin
vividtang12-May-04 2:55
vividtang12-May-04 2:55 
AnswerRe: why splitter window fail? Pin
RobJones12-May-04 4:00
RobJones12-May-04 4:00 
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
	// Create a splitter for two columns (left and right)
	if(!m_wndSplitVert.CreateStatic(this, 1, 2))
		return FALSE;
	
	// Create the Tree View in left column
	if (!m_wndSplitVert.CreateView(0,0,RUNTIME_CLASS(CTreeView),CSize(125,100),pContext))
	{
		m_wndSplitVert.DestroyWindow();
		return FALSE;
	}
	
	// Create another splitter wnd in right column
	if(!m_wndSplitHorz.CreateStatic(&m_wndSplitVert, 2, 1, WS_CHILD | WS_VISIBLE, m_wndSplitVert.IdFromRowCol(0, 1)))
	{
		m_wndSplitVert.DestroyWindow();
		return FALSE;
	}

	CRect rect;
	GetClientRect(rect);
	
	// Create List Views in right column (top and bottom)
	if( !m_wndSplitHorz.CreateView(0,0,RUNTIME_CLASS(CTopView), CSize(100,rect.Height() / 2 - 64),pContext) ||
		!m_wndSplitHorz.CreateView(1,0,RUNTIME_CLASS(CBottomView), CSize(100,100),pContext))
	{
		m_wndSplitVert.DestroyWindow();
		m_wndSplitHorz.DestroyWindow();
		return FALSE;
	}

	return TRUE;
}


Whoever said nothing's impossible never tried slamming a revolving door!
GeneralPREPROC_HEADERS Pin
SuzannaS12-May-04 2:33
SuzannaS12-May-04 2:33 
GeneralRe: PREPROC_HEADERS Pin
David Crow12-May-04 3:09
David Crow12-May-04 3:09 
GeneralRe: PREPROC_HEADERS Pin
SuzannaS17-May-04 2:26
SuzannaS17-May-04 2:26 
GeneralTimers Pin
cberam12-May-04 2:25
cberam12-May-04 2:25 
GeneralRe: Timers Pin
toxcct12-May-04 2:33
toxcct12-May-04 2:33 
GeneralRe: Timers Pin
cberam12-May-04 2:44
cberam12-May-04 2:44 
GeneralRe: Timers Pin
toxcct12-May-04 2:45
toxcct12-May-04 2:45 
GeneralRe: Timers Pin
cberam12-May-04 2:50
cberam12-May-04 2:50 
GeneralRe: Timers Pin
toxcct12-May-04 2:54
toxcct12-May-04 2:54 
GeneralRe: Timers Pin
cberam14-May-04 19:27
cberam14-May-04 19:27 
GeneralRe: Timers Pin
David Crow12-May-04 3:06
David Crow12-May-04 3:06 
GeneralRe: Timers Pin
jmkhael12-May-04 2:49
jmkhael12-May-04 2:49 
GeneralRe: Timers Pin
cberam12-May-04 2:53
cberam12-May-04 2:53 
GeneralRe: Timers Pin
jmkhael12-May-04 2:55
jmkhael12-May-04 2:55 
GeneralRe: Timers Pin
Jens Doose12-May-04 3:01
Jens Doose12-May-04 3:01 
GeneralRe: Timers Pin
David Crow12-May-04 3:05
David Crow12-May-04 3:05 
GeneralSESSION Pin
SuzannaS12-May-04 2:21
SuzannaS12-May-04 2:21 

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.