Click here to Skip to main content
15,896,111 members
Articles / Containers / Virtual Machine

An extendable report editor

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
3 Sep 2008CPOL3 min read 41.2K   2K   35  
An extendable report editor. You can simply add your own controls without recompiling the program or writing annoying plug-ins.
// WndSplit.h: interface for the CWndSplit class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WNDSPLIT_H__0145C759_317F_49C8_9016_A07CA5FFAC9D__INCLUDED_)
#define AFX_WNDSPLIT_H__0145C759_317F_49C8_9016_A07CA5FFAC9D__INCLUDED_

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

#include "Wnd.h"

class CWndSplit : public CWnd{
public:
	HBRUSH m_hbrDithered; // Brush for the splitter bar
	HBITMAP	m_hbm;		// Used to create m_hbrDithered
	int m_nWidth;		// Width of the splitter bar
	int m_nBarPos;		// X or Y position of the splitter bar
	int m_nOldBarPos;	// Previous bar position, updated during move
	int m_nBarpreMove;	// Previous bar position, not updated during move
	BOOL m_bCapture;	// Mouse capture flag
	BOOL m_bVertical;   // Vertical or horizontal spliter bar
	HWND pane0;
	HWND pane1;
	RECT border_rect;
public:
	int GetPos();
	int SetBarPos(int pos);
	int RecalcLayout();
	int RecalcLayout(RECT r);
	int DrawBar(int Pos);
	int Registe();
    CWndSplit();
    virtual ~CWndSplit();
    int Init();
    int Destroy();
    int InitBasic();
	int OnLButtonDown(WPARAM wparam,LPARAM lparam);
	int OnLButtonUp(WPARAM wparam,LPARAM lparam);
	int OnMouseMove(WPARAM wparam,LPARAM lparam);
	int OnPaint(WPARAM wparam,LPARAM lparam);
};

#endif // !defined(AFX_WNDSPLIT_H__0145C759_317F_49C8_9016_A07CA5FFAC9D__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
China China
26 years old, 2 years work experience.

Comments and Discussions