Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionabout static libraries Pin
mt_samiei5-Aug-07 4:01
mt_samiei5-Aug-07 4:01 
QuestionRe: about static libraries Pin
Mark Salsbery5-Aug-07 7:40
Mark Salsbery5-Aug-07 7:40 
QuestionHighlight text in static control Pin
Legolas655-Aug-07 1:55
Legolas655-Aug-07 1:55 
AnswerRe: Highlight text in static control Pin
Hamid_RT5-Aug-07 3:49
Hamid_RT5-Aug-07 3:49 
GeneralRe: Highlight text in static control Pin
Legolas655-Aug-07 6:31
Legolas655-Aug-07 6:31 
GeneralRe: Highlight text in static control Pin
Hamid_RT5-Aug-07 19:02
Hamid_RT5-Aug-07 19:02 
AnswerRe: Highlight text in static control Pin
henky@online-resource.org5-Aug-07 23:10
henky@online-resource.org5-Aug-07 23:10 
QuestionSplitter in MDI Frame Pin
sawerr5-Aug-07 1:10
sawerr5-Aug-07 1:10 
Hi I am trying to split the MDI client window(not child).Like this GUI:
http://www.smidgeonsoft.com/images/PEBrowsePro945x689.jpg
In the left side there is a treeview and the right side there are MDI windows.

I can use splittter in SDI application wtih this code and it can split:
<br />
class CMainFrame : public CFrameWnd<br />
{<br />
  ...<br />
protected:<br />
  CSplitterWnd m_wndSplitter;<br />
  ...<br />
};<br />
  <br />
// SAMPLES\CH03\splitter<br />
// MainFrm.cpp : implementation of the CMainFrame class<br />
<br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, <br />
	CCreateContext* pContext) <br />
{<br />
 CSize minWindow(10, 10);<br />
 <br />
  // These variables must both be 1 or 2 for dynamic splitters.<br />
  int nRows = 2, nColumns = 1;<br />
	  <br />
  return m_wndSplitter.Create(this, nRows, nColumns,<br />
	minWindow, pContext);<br />
// <br />
}<br />

But this doent work with MDI application.
I can't divide MDI client window. I tried this:
<br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)<br />
{<br />
	CSize minWindow(10, 10);<br />
 <br />
  // These variables must both be 1 or 2 for dynamic splitters.<br />
  int nRows = 2, nColumns = 1;<br />
	  <br />
  m_wndSplitter.Create(this, nRows, nColumns,<br />
	minWindow, pContext);<br />
<br />
	return CMDIFrameWnd::OnCreateClient(lpcs, pContext);<br />
}<br />

But it gives run time error about ASSERT(pContext != NULL);

How can i divide MDI client window with splitter so i can insert left side a treeview(static/locked) and in the left side i can show view windows..

I couldnt find the solution.
I am looking for your answers.
Thanks...
AnswerRe: Splitter in MDI Frame Pin
sawerr5-Aug-07 6:43
sawerr5-Aug-07 6:43 
AnswerRe: Splitter in MDI Frame Pin
Mark Salsbery5-Aug-07 12:47
Mark Salsbery5-Aug-07 12:47 
GeneralRe: Splitter in MDI Frame [modified] Pin
sawerr5-Aug-07 19:08
sawerr5-Aug-07 19:08 
JokeRe: Splitter in MDI Frame Pin
Hamid_RT5-Aug-07 19:16
Hamid_RT5-Aug-07 19:16 
GeneralRe: Splitter in MDI Frame Pin
Mark Salsbery5-Aug-07 19:37
Mark Salsbery5-Aug-07 19:37 
AnswerRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
Hamid_RT5-Aug-07 3:47
Hamid_RT5-Aug-07 3:47 
Question860514 - why Windows CE Device ID's are the same? Pin
ilostmyid24-Aug-07 23:17
professionalilostmyid24-Aug-07 23:17 
QuestionHow can i control the size of Dialog Pin
ifqf4-Aug-07 22:37
ifqf4-Aug-07 22:37 
AnswerRe: How can i control the size of Dialog Pin
Hamid_RT5-Aug-07 3:46
Hamid_RT5-Aug-07 3:46 
AnswerRe: How can i control the size of Dialog [modified] Pin
Sam_c5-Aug-07 5:57
Sam_c5-Aug-07 5:57 
AnswerRe: How can i control the size of Dialog Pin
ThatsAlok5-Aug-07 19:52
ThatsAlok5-Aug-07 19:52 
Questionreturn value CoCreateInstance not documented in MSDN Pin
George_George4-Aug-07 20:00
George_George4-Aug-07 20:00 
AnswerRe: return value CoCreateInstance not documented in MSDN [modified] Pin
Mark Salsbery4-Aug-07 20:48
Mark Salsbery4-Aug-07 20:48 
GeneralRe: return value CoCreateInstance not documented in MSDN Pin
George_George4-Aug-07 21:02
George_George4-Aug-07 21:02 
AnswerRe: return value CoCreateInstance not documented in MSDN Pin
bob169725-Aug-07 17:19
bob169725-Aug-07 17:19 
GeneralRe: return value CoCreateInstance not documented in MSDN Pin
George_George5-Aug-07 18:05
George_George5-Aug-07 18:05 
QuestionRe: return value CoCreateInstance not documented in MSDN Pin
bob169725-Aug-07 21:06
bob169725-Aug-07 21:06 

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.