Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing CreateFontIndirect() With an Edit Box Pin
jerry1211a26-Apr-04 4:21
jerry1211a26-Apr-04 4:21 
GeneralRe: Using CreateFontIndirect() With an Edit Box Pin
David Crow26-Apr-04 4:52
David Crow26-Apr-04 4:52 
GeneralRe: Using CreateFontIndirect() With an Edit Box Pin
Antony M Kancidrowski26-Apr-04 4:54
Antony M Kancidrowski26-Apr-04 4:54 
Questionhow to disable menu options when menu is in a dialogbox ? Pin
JP GOBLET26-Apr-04 3:32
JP GOBLET26-Apr-04 3:32 
AnswerRe: how to disable menu options when menu is in a dialogbox ? Pin
toxcct26-Apr-04 3:51
toxcct26-Apr-04 3:51 
GeneralRe: how to disable menu options when menu is in a dialogbox ? Pin
JP GOBLET26-Apr-04 4:11
JP GOBLET26-Apr-04 4:11 
GeneralRe: how to disable menu options when menu is in a dialogbox ? Pin
JP GOBLET26-Apr-04 22:37
JP GOBLET26-Apr-04 22:37 
QuestionSwitch between views in a SDI with Splitter? Pin
nadin_sam26-Apr-04 2:49
nadin_sam26-Apr-04 2:49 
I have a SDI with splitters that look like this:

________________
| | |
|View| |
|Tree|ViewList | (fig. 1)
| | |
| | |
|____|__________|

and I am trying to make a second View (Frame) with splitters that look like this:

____________________
|*****|*View 2******|
| |_____________|
| | | |
|V1 | | |
| |V3 | View 4 | (fig. 2)
| | | |
| | | |
|_____|____|________|

The 1. question: How can I switch between the frames (Views)?
The 2. question: How can I create the 2. frame with splitter to look as shown (fig. 2).

It is important for the first version, that I can switch between to frames. Maybe it is easier to make the second frame like this (no Splitter in a splitter –fig. 3):
__________________
|V 1 | view2 |
|_____|___________|
|View | | (fig. 3)
| 3 |View 4 |
| | |
| | |
|_____|___________|


//////////////////////////////////////////////////////////////////////////////////////////<br />
// CMainFrame message handlers<br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, <br />
								CCreateContext* pContext) <br />
{<br />
	// Wenn Matrix aktiviert ist, dann ueberpruefe diesen Bereich auf Kommunalitat<br />
	// may want to read Q99562 and Q141334<br />
	if (!m_wndSplitter.CreateStatic(this,1,2))<br />
	{<br />
		return FALSE;<br />
	}<br />
		//m_wndSplitterDyn.Create(&m_wndSplitter, 2, 1, CSize ( 1, 1 ), pContext ) ;<br />
			CRect rect;<br />
			GetClientRect(&rect);<br />
			CSize sizeTree = rect.Size();<br />
<br />
			sizeTree.cx = rect.Width()/4; <br />
<br />
	if (!m_wndSplitter.CreateView(PANE_ROW_ZERO, eTreeWinPane, RUNTIME_CLASS(CViewTree),<br />
										sizeTree, pContext)||  <br />
		(!m_wndSplitter.CreateView(PANE_ROW_ZERO, eListWinPane, RUNTIME_CLASS(CViewList),<br />
										/*CSize(0,0)*/CSize(100,100), pContext)))<br />
		{	<br />
			return FALSE;<br />
		}<br />
	return TRUE;<br />
	//return CFrameWnd::OnCreateClient(lpcs, pContext);<br />
}<br />
///////////////////////////////////////////////////////////////////////////////////////////<br />

Must I use OnCreateClient()function, or there is an alternative?

Thanx in advance,
Nadin_sam
AnswerRe: Switch between views in a SDI with Splitter? Pin
Monty226-Apr-04 3:55
Monty226-Apr-04 3:55 
GeneralDialog under main application Pin
brdavid26-Apr-04 2:01
brdavid26-Apr-04 2:01 
GeneralRe: Dialog under main application Pin
Prakash Nadar26-Apr-04 2:45
Prakash Nadar26-Apr-04 2:45 
GeneralRe: Dialog under main application Pin
Antony M Kancidrowski26-Apr-04 4:00
Antony M Kancidrowski26-Apr-04 4:00 
GeneralRe: Dialog under main application Pin
brdavid26-Apr-04 11:22
brdavid26-Apr-04 11:22 
GeneralRe: Dialog under main application Pin
Antony M Kancidrowski26-Apr-04 11:30
Antony M Kancidrowski26-Apr-04 11:30 
QuestionHow to create a concave ploygon,in v c++ ,using openGL Pin
shliwan26-Apr-04 1:47
shliwan26-Apr-04 1:47 
AnswerRe: How to create a concave ploygon,in v c++ ,using openGL Pin
Navin26-Apr-04 4:36
Navin26-Apr-04 4:36 
GeneralRe: How to create a concave ploygon,in v c++ ,using openGL Pin
Anonymous27-Apr-04 2:41
Anonymous27-Apr-04 2:41 
GeneralJNI Pin
roadragedave26-Apr-04 0:46
roadragedave26-Apr-04 0:46 
GeneralRe: JNI Pin
Mike Dimmick26-Apr-04 1:59
Mike Dimmick26-Apr-04 1:59 
GeneralVC++ application error on WinXP Pin
PrashantJ25-Apr-04 23:51
PrashantJ25-Apr-04 23:51 
GeneralExport Image as EPS File Format Pin
pubududilena25-Apr-04 23:08
pubududilena25-Apr-04 23:08 
GeneralRe: Export Image as EPS File Format Pin
Maarten Kools26-Apr-04 3:52
professionalMaarten Kools26-Apr-04 3:52 
GeneralRe: Export Image as EPS File Format Pin
pubududilena26-Apr-04 18:01
pubududilena26-Apr-04 18:01 
GeneralCString to UTF-8 Pin
Stojan7825-Apr-04 23:00
Stojan7825-Apr-04 23:00 
GeneralRe: CString to UTF-8 Pin
Mike Dimmick26-Apr-04 0:08
Mike Dimmick26-Apr-04 0:08 

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.