Click here to Skip to main content
15,894,720 members
Articles / Desktop Programming / MFC

Splitter in an MFC dialog based application

Rate me:
Please Sign up or sign in to vote.
4.63/5 (5 votes)
25 Jul 2011CPOL2 min read 60.3K   4.3K   11  
Using a button as splitter in MFC dialog based applications.
// SplitterDlg.h : �w�b�_�[ �t�@�C��
//

#if !defined(AFX_SPLITTERDLG_H__4EEC3C5F_57EC_4FDD_B7DE_7161B9445A7B__INCLUDED_)
#define AFX_SPLITTERDLG_H__4EEC3C5F_57EC_4FDD_B7DE_7161B9445A7B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ControlSplitter.h"
/////////////////////////////////////////////////////////////////////////////
// CSplitterDlg �_�C�A���O

class CSplitterDlg : public CDialog
{
// �\�z
public:
	CSplitterDlg(CWnd* pParent = NULL);	// �W���̃R���X�g���N�^

// �_�C�A���O �f�[�^
	//{{AFX_DATA(CSplitterDlg)
	enum { IDD = IDD_SPLITTER_DIALOG };
	CControlSplitter	m_splitter3;
	CControlSplitter	m_splitter2;
	CControlSplitter	m_splitter;
	//}}AFX_DATA

	// ClassWizard �͉��z�֐��̃I�[�o�[���C�h�𐶐����܂��B
	//{{AFX_VIRTUAL(CSplitterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV �̃T�|�[�g
	//}}AFX_VIRTUAL

// �C���v�������e�[�V����
protected:
	HICON m_hIcon;

	// �������ꂽ���b�Z�[�W �}�b�v�֐�
	//{{AFX_MSG(CSplitterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ �͑O�s�̒��O�ɒlj��̐錾��}�����܂��B

#endif // !defined(AFX_SPLITTERDLG_H__4EEC3C5F_57EC_4FDD_B7DE_7161B9445A7B__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer NCR Cebu Development Center
Philippines Philippines
Focused in Leading Business Development while working as a Software Developer. His specialty is C++ and PHP. Been developing MS Windows application since 2007.

Comments and Discussions