Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 6:49
dr.eu11-Feb-05 6:49 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:52
rocky_pulley11-Feb-05 6:52 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 7:16
dr.eu11-Feb-05 7:16 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 8:12
David Crow11-Feb-05 8:12 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:30
dr.eu11-Feb-05 9:30 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 9:32
rocky_pulley11-Feb-05 9:32 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:44
dr.eu11-Feb-05 9:44 
QuestionHow to switch from vertical to gorizontal split windows? Pin
bilas11-Feb-05 5:33
bilas11-Feb-05 5:33 
I want to switch dynamically from vertical to gorizontal split windows.
It's very easy (IMHO). But have little problem.
When my program started, I have two vertical split windows:
<br />
<br />
//In this function I have pointer to CCreateContext structure <br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,<br />
	CCreateContext* pContext)<br />
{<br />
	CreateSplitters(m_nRows, m_nCols, m_actRow, m_actCol, pContext);<br />
	return TRUE;<br />
}<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 />
<br />
<br />
<br />
	//here is standart procedure of creating<br />
	//--------Create 2 splitter views-------------<br />
	CRect cr; <br />
	GetClientRect( &cr);<br />
	//if ( !m_wndSplitter.CreateStatic( this, 1, 2 ) ) <br />
	if ( !m_wndSplitter.CreateStatic( this, nRows, nCols ) ) <br />
	{ <br />
	    MessageBox( "Error setting up splitter frames!", <br />
			"Init Error!", MB_OK | MB_ICONERROR ); <br />
		return FALSE; <br />
	}<br />
	int width = cr.Width();<br />
<br />
	<br />
	if ( !m_wndSplitter.CreateView( 0, 0, my_LeftView, <br />
		CSize(width/5, cr.Height()), pContext ) || <br />
		!m_wndSplitter.CreateView( /*0, 1,*/m_actRow, m_actCol, my_RightView, <br />
			CSize(4*width/5, cr.Height()), pContext )) <br />
	{ <br />
	    MessageBox( "Error setting up splitter frames!", <br />
					"Init Error!", MB_OK | MB_ICONERROR );<br />
		return FALSE; <br />
	}<br />
	m_bInitSplitter = TRUE;<br />
<br />
	return TRUE;<br />
<br />
}<br />
<br />


In in other functions I do not have pointer to CCreateContext structure, that is needed to create splitters.
Have can I retrive this pointer in any place of my object? This is very easy but I couldn't do it.
GeneralDetection of code pages Pin
Mattias G11-Feb-05 5:24
Mattias G11-Feb-05 5:24 
GeneralConnecting database Pin
joy00711-Feb-05 5:01
joy00711-Feb-05 5:01 
GeneralRe: Connecting database Pin
Nemanja Trifunovic11-Feb-05 5:17
Nemanja Trifunovic11-Feb-05 5:17 
Questionhow display full text in a list control Pin
steph00711-Feb-05 4:58
steph00711-Feb-05 4:58 
AnswerRe: how display full text in a list control Pin
rocky_pulley11-Feb-05 7:20
rocky_pulley11-Feb-05 7:20 
AnswerRe: how display full text in a list control Pin
Shog911-Feb-05 13:11
sitebuilderShog911-Feb-05 13:11 
GeneralRe: how display full text in a list control Pin
steph00714-Feb-05 3:16
steph00714-Feb-05 3:16 
QuestionHow to get &quot;private bytes&quot; count pogrammaticaly in C++ Win API? Pin
CherezZaboro11-Feb-05 4:52
CherezZaboro11-Feb-05 4:52 
AnswerRe: How to get &quot;private bytes&quot; count pogrammaticaly in C++ Win API? Pin
jjnet22-Oct-09 23:11
jjnet22-Oct-09 23:11 
Generalerror in xml (code included) Pin
cj_rahul11-Feb-05 3:21
cj_rahul11-Feb-05 3:21 
Generalerror in xml creation (code included) Pin
cj_rahul11-Feb-05 3:20
cj_rahul11-Feb-05 3:20 
GeneralRe: error in xml creation (code included) Pin
ThatsAlok11-Feb-05 18:41
ThatsAlok11-Feb-05 18:41 
GeneralSNTP server Pin
Anonymous11-Feb-05 2:44
Anonymous11-Feb-05 2:44 
GeneralRe: SNTP server Pin
rocky_pulley11-Feb-05 3:24
rocky_pulley11-Feb-05 3:24 
GeneralRe: SNTP server Pin
markkuk11-Feb-05 4:15
markkuk11-Feb-05 4:15 
GeneralDialog box getting COver the entire Screen Pin
Ranjish11-Feb-05 2:26
Ranjish11-Feb-05 2:26 
GeneralRe: Dialog box getting COver the entire Screen Pin
ThatsAlok11-Feb-05 2:50
ThatsAlok11-Feb-05 2:50 

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.