Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

The Ultimate Toolbox - Updates and User Contributions

, 12 Feb 2013
Updates and User Contributions for the Ultimate Toolbox Libraries
OutlookDemoUpdate.zip
Ultimate Grid
Demos
OutlookStyle
OutlookStyle.aps
OutlookStyle.dsp
OutlookStyle.dsw
OutlookStyle.suo
res
bitmap1.bmp
bmattach.bmp
bmp00001.bmp
bmp00002.bmp
bmp00003.bmp
Flags.bmp
OutlookStyle.ico
OutlookStyleDoc.ico
Toolbar.bmp
toolbar1.bmp
toolbar2.bmp
toolbarf.bmp
UltimateGrid72_Src_Update01.zip
CellTypes
Include
Source
UltimateGrid72_Src_Update02.zip
DataSources
ODBC
OleDB
EditControls
UltimateGrid72_Src_Update03.zip
UltimateGrid72_Src_Update04.zip
UltimateGrid73_src.zip
BuildDLL
Build DLL.dsp
Build DLL.dsw
res
BuildLib
ugmfclib.dsp
ugmfclib.dsw
Lib
Skel
UltimateTCP-IP42_Src_Update01.zip
Ultimate TCP-IP
Include
Security
Include
Source
source
UltimateTCP-IP42_Src_Update02.zip
Examples
Client
Mail
icon1.ico
icon2.ico
MailClientS.suo
test.dsp
test.dsw
UltimateTCP-IP42_Src_Update03.zip
ultimatetoolbox93_src_update01.zip
Ultimate Toolbox
include
source
UltimateToolbox93_Src_Update02.zip
lib
Build DLLs
Build Libs
UltimateToolbox93_Src_Update03.zip
UltimateToolbox93_Src_Update04.zip
UltimateToolbox93_Src_Update05.zip
// OutlookStyleView.h : interface of the COutlookStyleView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_OUTLOOKSTYLEVIEW_H__14EC109A_019A_4613_B2CC_438D1C10EDA6__INCLUDED_)
#define AFX_OUTLOOKSTYLEVIEW_H__14EC109A_019A_4613_B2CC_438D1C10EDA6__INCLUDED_

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

#include  "OutlookStyleDoc.h"
#include "OutlookGrid.h"
#include "OXSkinnedView.h"

enum flagColor { clear = 0, red = 1, blue = 2, yellow = 3, green = 4, orange = 5, purple = 6, check = 7 };

#define BASEVIEW CView
class COutlookStyleView : public COXSkinnedView<BASEVIEW>
{
protected: // create from serialization only
	COutlookStyleView();
	DECLARE_DYNCREATE(COutlookStyleView)

// Attributes
public:
	COutlookStyleDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COutlookStyleView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~COutlookStyleView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	void ChangeReadFlag();
	void SetFlag(flagColor f);
	void SetDefaultFlag(flagColor f);
	
protected:
	COutlookGrid	 m_grid;
	CRichEditCtrl    m_edit;
	int				 m_gridWidth;
	CPoint			 m_oldMousePos;
	bool			 m_isMoving;
	HCURSOR			 m_moveCursor; 
	HCURSOR			 m_defaultCursor; 

	void SetControlPos();

// Generated message map functions
protected:
	//{{AFX_MSG(COutlookStyleView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnRedFlag();
	afx_msg void OnBlueFlag();
	afx_msg void OnYellowFlag();
	afx_msg void OnGreenFlag();
	afx_msg void OnOrangeFlag();
	afx_msg void OnPurpleFlag();
	afx_msg void OnClearFlag();
	afx_msg void OnFlagComplete();
	afx_msg void OnDefRedFlag();
	afx_msg void OnDefBlueFlag();
	afx_msg void OnDefYellowFlag();
	afx_msg void OnDefGreenFlag();
	afx_msg void OnDefOrangeFlag();
	afx_msg void OnDefPurpleFlag();
	afx_msg void OnChangeRead();
	afx_msg void OnChangeShowGroups();
	afx_msg void OnUpdateShowgroups(CCmdUI* pCmdUI);
	afx_msg void OnSortByDate();
	afx_msg void OnUpdateSortByDate(CCmdUI* pCmdUI);
	afx_msg void OnSortByFrom();
	afx_msg void OnUpdateSortByFrom(CCmdUI* pCmdUI);
	afx_msg void OnSortBySize();
	afx_msg void OnUpdateSortBySize(CCmdUI* pCmdUI);
	afx_msg void OnSortBySubject();
	afx_msg void OnUpdateSortBySubject(CCmdUI* pCmdUI);
	afx_msg void OnSortByFlag();
	afx_msg void OnUpdateSortByFlag(CCmdUI* pCmdUI);
	afx_msg void OnSortByAttachments();
	afx_msg void OnUpdateSortByAttachments(CCmdUI* pCmdUI);
	afx_msg void OnExpandAll();
	afx_msg void OnCollapseAll();
	afx_msg void OnMarkReadAll();
	afx_msg void OnMarkUnreadAll();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in OutlookStyleView.cpp
inline COutlookStyleDoc* COutlookStyleView::GetDocument()
   { return (COutlookStyleDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

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

The Ultimate Toolbox
Web Developer
Canada Canada
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
 
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.
Group type: Organisation

387 members


| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 13 Feb 2013
Article Copyright 2008 by The Ultimate Toolbox
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid