Click here to Skip to main content
15,391,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: USB eject notification Pin
Daniel Pfeffer8-Aug-17 5:15
professionalDaniel Pfeffer8-Aug-17 5:15 
GeneralRe: USB eject notification Pin
Munchies_Matt8-Aug-17 6:57
MemberMunchies_Matt8-Aug-17 6:57 
GeneralRe: USB eject notification Pin
john56328-Aug-17 22:29
Memberjohn56328-Aug-17 22:29 
GeneralRe: USB eject notification Pin
Jochen Arndt8-Aug-17 23:43
professionalJochen Arndt8-Aug-17 23:43 
GeneralRe: USB eject notification Pin
john56329-Aug-17 2:01
Memberjohn56329-Aug-17 2:01 
GeneralRe: USB eject notification Pin
Jochen Arndt9-Aug-17 2:14
professionalJochen Arndt9-Aug-17 2:14 
AnswerRe: USB eject notification Pin
Randor 9-Aug-17 2:43
professional Randor 9-Aug-17 2:43 
QuestionCSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 3:25
MemberMember 1327791131-Jul-17 3:25 
I create mdi application with splitter in MainFrame with two areas. In first area i suppose to a static control and MDI child windows in second. The CSplitterWnd is created, but i can`t create MDI child window in splitter  panel. I have the following code in OnCreateClient function
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	if (!m_mainSplitter.CreateStatic(this, 1, 2, WS_VISIBLE | WS_CHILD, AFX_IDW_PANE_FIRST))
	{
		//MessageBox( "Error setting up m_mainSplitter", "ERROR", MB_OK | MB_ICONERROR );
		return FALSE;
	}
	if (!m_mainSplitter.CreateView(0, 0, RUNTIME_CLASS(CMDIAppView),
		CSize(140, cr.Height()), pContext))
	{
		//MessageBox( "Error setting up splitter view", "ERROR", MB_OK | MB_ICONERROR );
		return FALSE;
	}

	if (!m_mainSplitter.CreateView(0, 1, RUNTIME_CLASS(CMDIAppView),
		CSize(cr.Width()-140, cr.Height()), pContext))
	{
		//MessageBox( "Error setting up splitter view", "ERROR", MB_OK | MB_ICONERROR );
		return FALSE;
	}
	m_bInitSplitter = true;

	return CreateClient(lpcs, NULL);
}

I try to change CChildFrame::OnCreate 
with CWnd* pView = GetDlgItem(AFX_IDW_PANE_FIRST);
cs.hwndParent =  pView->m_hWnd;
but i have a error.  I think that CMDIAppView is  corresponded  to CMDiChild view area in MDI application and conflicted with created splitter, i tryed to create splitterview in another class but still unsuccessful.  
I found article "SDI Application with MDI Child Windows in Static Splitter Pane" by John Z. Czopowik in codeguru but can not download source code from there. Please can anyone explane me how to create mdi child windows in splitter panel.
Mikle G.
email: mg17110081@gmail.com

QuestionRe: CSplitterWnd with MDI Child Windows Pin
David Crow31-Jul-17 3:49
MemberDavid Crow31-Jul-17 3:49 
AnswerRe: CSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 5:49
MemberMember 1327791131-Jul-17 5:49 
AnswerRe: CSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 19:45
MemberMember 1327791131-Jul-17 19:45 
QuestionGood or Bad Idea: C++ OpenGL Application using PureMVC? Pin
DBPatric29-Jul-17 5:38
MemberDBPatric29-Jul-17 5:38 
AnswerRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
leon de boer30-Jul-17 3:52
Memberleon de boer30-Jul-17 3:52 
GeneralRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
DBPatric9-Aug-17 13:49
MemberDBPatric9-Aug-17 13:49 
GeneralRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
leon de boer11-Aug-17 16:29
Memberleon de boer11-Aug-17 16:29 
QuestionDeclare member variable on stack or heap Pin
_Flaviu24-Jul-17 21:06
Member_Flaviu24-Jul-17 21:06 
AnswerRe: Declare member variable on stack or heap Pin
Richard MacCutchan24-Jul-17 22:22
mveRichard MacCutchan24-Jul-17 22:22 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu24-Jul-17 23:03
Member_Flaviu24-Jul-17 23:03 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan24-Jul-17 23:09
mveRichard MacCutchan24-Jul-17 23:09 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:13
Member_Flaviu25-Jul-17 0:13 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan25-Jul-17 0:31
mveRichard MacCutchan25-Jul-17 0:31 
AnswerRe: Declare member variable on stack or heap Pin
Victor Nijegorodov24-Jul-17 23:15
MemberVictor Nijegorodov24-Jul-17 23:15 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:09
Member_Flaviu25-Jul-17 0:09 
GeneralRe: Declare member variable on stack or heap Pin
Victor Nijegorodov9-Aug-17 1:21
MemberVictor Nijegorodov9-Aug-17 1:21 
QuestionIDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp24-Jul-17 19:42
Member002comp24-Jul-17 19:42 

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.