Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTopmost dialog :o) Pin
MemLeak16-May-03 2:54
MemLeak16-May-03 2:54 
GeneralRe: Topmost dialog :o) Pin
Rage16-May-03 3:22
professionalRage16-May-03 3:22 
GeneralExtended controls Pin
Xakep16-May-03 2:30
Xakep16-May-03 2:30 
GeneralRe: Extended controls Pin
Dominik Reichl16-May-03 2:45
Dominik Reichl16-May-03 2:45 
GeneralRe: Extended controls Pin
Xakep16-May-03 7:42
Xakep16-May-03 7:42 
GeneralMaximising CMDIChildWnd Pin
Jawache16-May-03 2:13
Jawache16-May-03 2:13 
GeneralRe: Maximising CMDIChildWnd Pin
Joseph Dempsey16-May-03 2:50
Joseph Dempsey16-May-03 2:50 
GeneralRe: Maximising CMDIChildWnd Pin
Jawache16-May-03 3:37
Jawache16-May-03 3:37 
Cheers, but that doesn't work either.

The only other code I have in the class is the OnCreateClient function. Its displaying a splitter window as bellow:

BOOL CSegmentationFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	//calculate client size 
	CRect cr; 
	GetClientRect( &cr);
	// Window Styles
	DWORD dwStyle = WS_BORDER | WS_CHILD | WS_VISIBLE;

	// Main splitter wnd, two rows 1 columns
	if ( !m_mainSplitterWnd.CreateStatic( this, 2, 1 ) ) 
	{ 
		MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR ); 
		return FALSE; 
	}
	
	// Top splitter win, 2 rows 4 columns (To hold the slice views)
	if ( !m_topSplitterWnd.CreateStatic( &m_mainSplitterWnd, 2, 4, dwStyle ,m_mainSplitterWnd.IdFromRowCol(0,0) ) )
	{ 
		MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR ); 
		return FALSE; 
	}

	// Bottom Splitter window, 1 row 2 columns ( to hold the form and histogram view )
	if ( !m_botSplitterWnd.CreateStatic( &m_mainSplitterWnd, 1, 2, dwStyle ,m_mainSplitterWnd.IdFromRowCol(1,0) ) ) 
	{ 
		MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR ); 
		return FALSE; 
	}
	// Top Slice Views
	for (int row = 0; row < 2; row ++)
	{
		for (int col = 0; col < 4; col ++)
		{
			if ( !m_topSplitterWnd.CreateView( row, col, RUNTIME_CLASS(CSliceView), CSize(cr.Width()/4, cr.Height()/3), pContext ) ) 
			{ 
				MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR );
				return FALSE; 
			}

		}
	}
	// Bottom Slice Views
	if ( !m_botSplitterWnd.CreateView( 0, 0, RUNTIME_CLASS(CSegmentationForm), CSize(cr.Width()/2, cr.Height()/3), pContext ) ) 
	{ 
		MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR );
		return FALSE; 
	}

	if ( !m_botSplitterWnd.CreateView( 0, 1, RUNTIME_CLASS(CHistogramView), CSize(cr.Width()/2, cr.Height()/3), pContext ) ) 
	{ 
		MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR );
		return FALSE; 
	}

	return true; //CMDIChildWnd::OnCreateClient(lpcs, pContext);


Asim Hussain
e: asim@jawache.net
w: www.jawache.net
General[CLOSED] Re: Maximising CMDIChildWnd Pin
Jawache16-May-03 3:45
Jawache16-May-03 3:45 
GeneralRe: [CLOSED] Re: Maximising CMDIChildWnd Pin
basementman16-May-03 4:36
basementman16-May-03 4:36 
Generalnetwork data security Pin
_Theo_16-May-03 1:48
_Theo_16-May-03 1:48 
GeneralRe: network data security Pin
Joseph Dempsey16-May-03 2:16
Joseph Dempsey16-May-03 2:16 
GeneralProperty page font change Pin
Arungs16-May-03 0:50
Arungs16-May-03 0:50 
General_beginthread( GetIPAddress), 0, NULL); Pin
Bonnie215-May-03 23:43
Bonnie215-May-03 23:43 
GeneralRe: _beginthread( GetIPAddress), 0, NULL); Pin
geo_m15-May-03 23:57
geo_m15-May-03 23:57 
GeneralRe: _beginthread( GetIPAddress), 0, NULL); Pin
Raphael Kindt16-May-03 0:20
Raphael Kindt16-May-03 0:20 
GeneralRe: _beginthread( GetIPAddress), 0, NULL); Pin
geo_m16-May-03 0:33
geo_m16-May-03 0:33 
Generalencoding data Pin
vancuver15-May-03 22:30
vancuver15-May-03 22:30 
GeneralRe: encoding data Pin
Trollslayer15-May-03 23:00
mentorTrollslayer15-May-03 23:00 
QuestionMACRO which give me the line number of a cpp file?!? Pin
Raphael Kindt15-May-03 22:27
Raphael Kindt15-May-03 22:27 
AnswerRe: MACRO which give me the line number of a cpp file?!? Pin
Martyn Pearson15-May-03 22:40
Martyn Pearson15-May-03 22:40 
GeneralRe: MACRO which give me the line number of a cpp file?!? Pin
Raphael Kindt15-May-03 23:40
Raphael Kindt15-May-03 23:40 
Generaldownloading file by URL Pin
Ares215-May-03 22:18
Ares215-May-03 22:18 
GeneralRe: downloading file by URL Pin
Ares216-May-03 1:11
Ares216-May-03 1:11 
Generaltab control help!!!! Pin
summo15-May-03 20:40
summo15-May-03 20:40 

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.