Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Find an open source powerful math library Pin
Nemanja Trifunovic6-Dec-10 8:55
Nemanja Trifunovic6-Dec-10 8:55 
Questionerror C4430: missing type specidier - int assumed Pin
AmbiguousName4-Dec-10 21:52
AmbiguousName4-Dec-10 21:52 
AnswerRe: error C4430: missing type specidier - int assumed Pin
Cedric Moonen4-Dec-10 22:38
Cedric Moonen4-Dec-10 22:38 
AnswerRe: error C4430: missing type specidier - int assumed Pin
Luc Pattyn4-Dec-10 23:11
sitebuilderLuc Pattyn4-Dec-10 23:11 
GeneralRe: error C4430: missing type specidier - int assumed Pin
AmbiguousName5-Dec-10 0:23
AmbiguousName5-Dec-10 0:23 
AnswerRe: error C4430: missing type specidier - int assumed Pin
Emilio Garavaglia5-Dec-10 5:38
Emilio Garavaglia5-Dec-10 5:38 
AnswerRe: error C4430: missing type specidier - int assumed Pin
ShilpiP5-Dec-10 7:03
ShilpiP5-Dec-10 7:03 
QuestionWhy the controls do not show? Pin
yu-jian3-Dec-10 23:21
yu-jian3-Dec-10 23:21 
pre>
<br />
// CMainFrame 消息处理程序<br />
<br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)<br />
{<br />
	m_wndSplitter.CreateStatic(this, 1, 2);<br />
<br />
	m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftPanel), CSize(400, 400),  pContext);<br />
	m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightPanel), CSize(400, 400),  pContext);<br />
	m_wndSplitter.SetActivePane(0, 0);<br />
<br />
	return TRUE;<br />
}<br />


#pragma once


// CLeftPanel 对话框

class CLeftPanel : public CDialog
{
	//DECLARE_DYNAMIC(CLeftPanel)
	DECLARE_DYNCREATE(CLeftPanel)

public:
	CLeftPanel(CWnd* pParent = NULL);   // 标准构造函数
	virtual ~CLeftPanel();

// 对话框数据
	enum { IDD = IDD_FORMVIEW_LEFT };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
};


#include "stdafx.h"
#include "SplitForm.h"
#include "LeftPanel.h"


// CLeftPanel 对话框

//IMPLEMENT_DYNAMIC(CLeftPanel, CDialog)
IMPLEMENT_DYNCREATE(CLeftPanel, CDialog)

CLeftPanel::CLeftPanel(CWnd* pParent /*=NULL*/)
	: CDialog(CLeftPanel::IDD, pParent)
{

}

CLeftPanel::~CLeftPanel()
{
}

void CLeftPanel::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CLeftPanel, CDialog)
	ON_WM_ERASEBKGND()
	ON_WM_LBUTTONDBLCLK()
END_MESSAGE_MAP()


// CLeftPanel 消息处理程序

BOOL CLeftPanel::OnEraseBkgnd(CDC* pDC)
{
	// TODO: 在此添加消息处理程序代码和/或调用默认值
	
	return CDialog::OnEraseBkgnd(pDC);
}

void CLeftPanel::OnLButtonDblClk(UINT nFlags, CPoint point)
{
	// TODO: 在此添加消息处理程序代码和/或调用默认值

	CDialog::OnLButtonDblClk(nFlags, point);
	this->MessageBox((LPCTSTR)_T("Test"), NULL);
}


Both the LeftPanel and RightPanel and blank. Why the controls on LeftPanel and Right Panel donot display?
AnswerRe: Why the controls do not show? Pin
Eugen Podsypalnikov4-Dec-10 1:08
Eugen Podsypalnikov4-Dec-10 1:08 
QuestionRe: Why the controls do not show? Pin
David Crow4-Dec-10 17:42
David Crow4-Dec-10 17:42 
AnswerRe: Why the controls do not show? Pin
yu-jian8-Dec-10 2:22
yu-jian8-Dec-10 2:22 
QuestionRe: Why the controls do not show? Pin
David Crow8-Dec-10 4:14
David Crow8-Dec-10 4:14 
AnswerRe: Why the controls do not show? Pin
yu-jian9-Dec-10 0:52
yu-jian9-Dec-10 0:52 
QuestionHow can identify click on hashbutton or item label in Tree Ctrel? Pin
Le@rner3-Dec-10 23:00
Le@rner3-Dec-10 23:00 
AnswerRe: How can identify click on hashbutton or item label in Tree Ctrel? Pin
User 74293383-Dec-10 23:38
professionalUser 74293383-Dec-10 23:38 
Questionhow to input into array from keyboard Pin
atoivan3-Dec-10 16:20
atoivan3-Dec-10 16:20 
AnswerRe: how to input into array from keyboard Pin
Dr.Walt Fair, PE3-Dec-10 16:36
professionalDr.Walt Fair, PE3-Dec-10 16:36 
AnswerRe: how to input into array from keyboard Pin
Luc Pattyn3-Dec-10 17:20
sitebuilderLuc Pattyn3-Dec-10 17:20 
AnswerRe: how to input into array from keyboard [modified] Pin
Alain Rist3-Dec-10 23:55
Alain Rist3-Dec-10 23:55 
QuestionC++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 15:00
Cachel3-Dec-10 15:00 
AnswerRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Dr.Walt Fair, PE3-Dec-10 16:26
professionalDr.Walt Fair, PE3-Dec-10 16:26 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 19:34
Cachel3-Dec-10 19:34 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? [modified] Pin
User 74293383-Dec-10 22:24
professionalUser 74293383-Dec-10 22:24 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Maximilien4-Dec-10 7:22
Maximilien4-Dec-10 7:22 
QuestionRead data using assembly Pin
MKC0023-Dec-10 2:39
MKC0023-Dec-10 2:39 

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.