Click here to Skip to main content
13,148,549 members (60,279 online)
Click here to Skip to main content


170 bookmarked
Posted 19 Nov 2002

DirectUI Window as in XP system folders

A control to show a list of possible tasks just as in XP.
// todowinView.h : Schnittstelle der Klasse CTodowinView

#if !defined(AFX_TODOWINVIEW_H__F00A0D3B_A3FC_4472_9A7E_20911D87D607__INCLUDED_)
#define AFX_TODOWINVIEW_H__F00A0D3B_A3FC_4472_9A7E_20911D87D607__INCLUDED_

#include "WndDirectUI.h"	// Hinzugef�gt von der Klassenansicht
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CTodowinView : public CView
protected: // Nur aus Serialisierung erzeugen

// Attribute
	CTodowinDoc* GetDocument();

// Operationen

// �berladungen
	// Vom Klassenassistenten generierte �berladungen virtueller Funktionen
	virtual void OnDraw(CDC* pDC);  // �berladen zum Zeichnen dieser Ansicht
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementierung
	virtual ~CTodowinView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;


// Generierte Message-Map-Funktionen
	CWndDirectUI m_wndDirectUI;
	CEdit    m_wndLeft;
	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 OnNumber1();
	afx_msg void OnNumber2();
	afx_msg void OnSetjob1();
	afx_msg void OnSetjob2();
	afx_msg void OnSetjob3();
	afx_msg void OnJobwndManuallist();
	afx_msg void OnJobwndStylexp();
	afx_msg void OnUpdateJobwndStylexp(CCmdUI* pCmdUI);
	afx_msg void OnJobwndStyleoffice();
	afx_msg void OnUpdateJobwndStyleoffice(CCmdUI* pCmdUI);
	afx_msg void OnJobwndStylexpclassic();
	afx_msg void OnUpdateJobwndStylexpclassic(CCmdUI* pCmdUI);
	afx_msg void OnJobwndExpandgroup1();
	afx_msg void OnJobwndCollapsegroup1();
	afx_msg void OnUpdateNumber1(CCmdUI* pCmdUI);
	afx_msg void OnJobwndStylethemed();
	afx_msg void OnUpdateJobwndStylethemed(CCmdUI* pCmdUI);

#ifndef _DEBUG  // Testversion in todowinView.cpp
inline CTodowinDoc* CTodowinView::GetDocument()
   { return (CTodowinDoc*)m_pDocument; }


// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.

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


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


About the Author

Alexander Bischofberger
Web Developer
Germany Germany
Ok, a few words about me:

I started programming on the C64 by the "trial and error" method. Years later my parents got their first PC (Atari PC4, AT 8 MHz) where I started with Turbo Pascal. The next steps led to Turbo Pascal for Windows, Visual C++ 1.52c, and finally Visual C++ 6.

I had several chances to code larger projects, e.g.
* stand-alone disc copy station software (Win 3.1) with automatic reboot, disc encryption, ...
* government-used strategic decision system
* MLM marketing tool (
* maintenance for show planning system and other TV software (

A lot of code, tipps and help came from this site for my later projects. Thanks again to all who helped me, even if they don't know it. I'm trying to share code (which is worth sharing) so others can get the help I got (and still need) for everyday problems.

Well, I think that's enough.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170924.2 | Last Updated 2 Aug 2004
Article Copyright 2002 by Alexander Bischofberger
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid