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

C / C++ / MFC

 
GeneralRe: Neural Network Code Pin
conniepooh25-Mar-05 19:08
conniepooh25-Mar-05 19:08 
GeneralRe: Neural Network Code Pin
conniepooh25-Mar-05 19:13
conniepooh25-Mar-05 19:13 
GeneralObtaining List of File Names Pin
bitpusher11-Feb-05 10:19
bitpusher11-Feb-05 10:19 
GeneralRe: Obtaining List of File Names Pin
David Crow11-Feb-05 10:21
David Crow11-Feb-05 10:21 
GeneralRe: Obtaining List of File Names Pin
bitpusher11-Feb-05 10:27
bitpusher11-Feb-05 10:27 
GeneralRe: Obtaining List of File Names Pin
David Crow11-Feb-05 12:16
David Crow11-Feb-05 12:16 
GeneralRe: Obtaining List of File Names Pin
Ravi Bhavnani11-Feb-05 12:51
professionalRavi Bhavnani11-Feb-05 12:51 
QuestionCan I create split windows dynamically? Pin
bilas11-Feb-05 10:06
bilas11-Feb-05 10:06 
Good time of day!
Smile | :) Please, help me to solve my little problem
I created split window with two views.
<br />
<br />
BOOL CMainFrame::CreateSplitters(int nRows, int nCols, int m_actRow, int m_actCol, CCreateContext* pContext)<br />
{<br />
	m_bInitSplitter = FALSE;<br />
	my_RightView = RUNTIME_CLASS( CRightHTMLView );<br />
	my_LeftView = RUNTIME_CLASS( CMyTree );<br />
	CRect cr; <br />
	GetClientRect( &cr);<br />
	<br />
	/*<br />
	Than I create two split windows using <br />
	m_wndSplitter.Create( this, 1, 2, CSize(0,0), pContext ); <br />
        */<br />
..        <br />
//In next line I have "Debug Assertion Failed".<br />
if ( !m_wndSplitter.CreateView( 0, 0, my_LeftView, CSize(width/5, cr.Height()), pContext ) || !m_wndSplitter.CreateView( /*0, 1,*/m_actRow, m_actCol, my_RightView, CSize(4*width/5, cr.Height(), pContext ))<br />
{<br />
...<br />
}        <br />
//But when I create static split window, it works good.<br />
...<br />
}<br />
<br />

But I need two create split window dynamically, 'cos later I'll need to destroy it and create another two views (but with gorizontal locating)

Please, help me.
AnswerRe: Can I create split windows dynamically? Pin
Bob Ciora11-Feb-05 10:34
Bob Ciora11-Feb-05 10:34 
GeneralMessage System Question Pin
Steve Messer11-Feb-05 9:46
Steve Messer11-Feb-05 9:46 
GeneralRe: Message System Question Pin
Maximilien11-Feb-05 10:18
Maximilien11-Feb-05 10:18 
GeneralRe: Message System Question Pin
Steve Messer11-Feb-05 11:36
Steve Messer11-Feb-05 11:36 
GeneralRe: Message System Question Pin
Steve Messer12-Feb-05 10:30
Steve Messer12-Feb-05 10:30 
GeneralWin32 Programming Book Pin
Andy Moore11-Feb-05 9:15
Andy Moore11-Feb-05 9:15 
GeneralRe: Win32 Programming Book Pin
rocky_pulley11-Feb-05 9:32
rocky_pulley11-Feb-05 9:32 
GeneralRe: Win32 Programming Book Pin
Anonymous11-Feb-05 12:06
Anonymous11-Feb-05 12:06 
GeneralRe: Win32 Programming Book Pin
Andy Moore14-Feb-05 2:57
Andy Moore14-Feb-05 2:57 
Generaloleacc link issues Pin
greekgoddj11-Feb-05 7:02
greekgoddj11-Feb-05 7:02 
GeneralRe: oleacc link issues Pin
greekgoddj13-Feb-05 22:31
greekgoddj13-Feb-05 22:31 
GeneralReading Raw DVD-ROM Pin
Sonix11-Feb-05 6:45
Sonix11-Feb-05 6:45 
GeneralShow dialog window in PreCreateWindow(..) failed :( Pin
bilas11-Feb-05 6:39
bilas11-Feb-05 6:39 
GeneralRe: Show dialog window in PreCreateWindow(..) failed :( Pin
Michael Dunn11-Feb-05 16:37
sitebuilderMichael Dunn11-Feb-05 16:37 
GeneralAccess Database Report Pin
Tom Wright11-Feb-05 6:05
Tom Wright11-Feb-05 6:05 
GeneralRe: Access Database Report Pin
Anonymous11-Feb-05 12:07
Anonymous11-Feb-05 12:07 
GeneralRead file, write to array, find min and max Pin
dr.eu11-Feb-05 5:46
dr.eu11-Feb-05 5:46 

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.