Click here to Skip to main content
12,360,217 members (62,425 online)
Click here to Skip to main content

Stats

372K views
802 downloads
87 bookmarked
Posted

CHM Reader for Pocket PC 2003

, 29 Feb 2004 CPOL
Allows the reading of CHM files on a Pocket PC2003.
#if !defined(AFX_CETITLEBAR_H__5F022C0D_A0A4_4A81_AC60_B74C7D48B566__INCLUDED_)
#define AFX_CETITLEBAR_H__5F022C0D_A0A4_4A81_AC60_B74C7D48B566__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CeTitleBar.h : header file
//


#define IDC_TITLE_BAR	(AFX_IDW_CONTROLBAR_LAST-2)


//---------------------------------------------------------------------------
//
//	CCeTitleBar window
//
//---------------------------------------------------------------------------


class CCeTitleBar : public CControlBar
{
// Construction
public:
	CCeTitleBar();
	virtual ~CCeTitleBar();

// Attributes
public:

// Operations
public:

	virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
	virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
	virtual CSize CalcDynamicLayout(int nLength, DWORD nMode);

	void SetTitle(LPCTSTR pszTitle, BOOL bRepaint = TRUE);
	void SetTitle(UINT nStrID, BOOL bRepaint = TRUE);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCeTitleBar)
	//}}AFX_VIRTUAL

// Implementation
public:

	BOOL Create(CWnd *pParentWnd, UINT nID = IDC_TITLE_BAR);
	BOOL CreateEx(CWnd *pParentWnd, UINT nID = IDC_TITLE_BAR);

	// Generated message map functions
protected:
	CString		m_strTitle;
	CFont		m_fntDefault;
	int			m_nHeight;

	//{{AFX_MSG(CCeTitleBar)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//---------------------------------------------------------------------------

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CETITLEBAR_H__5F022C0D_A0A4_4A81_AC60_B74C7D48B566__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)

Share

About the Author

Peter Tewkesbury
Software Developer (Senior)
United Kingdom United Kingdom
Hi, I am a developer working in Cheshire, England. I started programming on a Vic-20 back in the 80's with only 5K of ram), and I have not looked back since. I currently develop using C#/.NET, SQL, HTML, CSS, JS & ASP.NET. In the past I have developed software using Visual C/C++, MFC, ATL & COM, Crystal Reports.

My favourite language is C# and I am always trying to learn new stuff like LINQ, and mobile development.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 1 Mar 2004
Article Copyright 2004 by Peter Tewkesbury
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid