Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / C++

Customized Visual Studio .NET package: your fully integrated document window inside the IDE

Rate me:
Please Sign up or sign in to vote.
4.72/5 (20 votes)
20 Dec 200313 min read 63.7K   1.1K   39  
Create a fully integrated document window inside the Visual Studio IDE.
/**********************************************************************
- File Name: FileInfo.h
- Date: 12/10/2003 4:24:09 PM
- Author: Michael Sheinin
- Description : 
	Declaration of CFileInfo class. The class enables for storing
	and graphical presentation of data releted to the open file.
- Notes: 

**********************************************************************/
#pragma once

#include "graphicobject.h"
#include "dataobject.h"

#ifndef _MAX_PATH
#define _MAX_PATH 260
#endif



class CFileInfo :
	public CGraphicObject, public CDataObject
{
public:
	CFileInfo(void);
	~CFileInfo(void);
	void Draw(HDC);
	BOOL UserAction(UINT uMsg, LPVOID pParams);

	void SetSignature(LPCWSTR szSignature);
	void SetLength( int iLen );
	void SetName(LPCWSTR szName);
protected:
	void DrawText( HDC, int iXOfs, int iYOfs, COLORREF clrText );
	WCHAR m_szSignature[_MAX_PATH];
	WCHAR m_szName[_MAX_PATH];
	WCHAR m_szLength[32];
	WCHAR m_szLastCmd[128];
	HFONT m_hFont;
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.

Comments and Discussions