Click here to Skip to main content
15,895,142 members
Articles / Desktop Programming / WTL

WTL for MFC Programmers, Part VII - Splitter Windows

Rate me:
Please Sign up or sign in to vote.
4.95/5 (86 votes)
18 Jan 200620 min read 387.6K   5.4K   166  
A tutorial on using WTL splitter windows and pane containers.
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__6ED9276C_6FF2_4366_903E_1F9FEE2CD004__INCLUDED_)
#define AFX_STDAFX_H__6ED9276C_6FF2_4366_903E_1F9FEE2CD004__INCLUDED_

// Change these values to use different versions
#define WIN32_LEAN_AND_MEAN
#define WINVER          0x0500
#define _WIN32_WINNT    0x0500
#define _WIN32_IE       0x0501
#define _RICHEDIT_VER   0x0100

#define _ATL_APARTMENT_THREADED
#define _WTL_USE_CSTRING

#include <atlbase.h>
#include <atlapp.h>
extern CAppModule _Module;
#include <atlcom.h>
#include <atlhost.h>
#include <atlwin.h>
#include <atlctl.h>

#include <atlcrack.h>
#include <atlframe.h>
#include <atlmisc.h>
#include <atldlgs.h>
#include <atlsplit.h>
#include <atlctrls.h>
#include <shellapi.h>
#include <atlctrlx.h>

#include <shlobj.h>
#include <shlguid.h>
#include <wincrypt.h>

#include <vector>
#include <map>

typedef std::map<CLIPFORMAT, CString> CClipFormatNameMap;


#define countof(x) (sizeof(x)/(sizeof(x)[0]))

#if _ATL_VER < 0x0700
#undef BEGIN_MSG_MAP
#define BEGIN_MSG_MAP(x) BEGIN_MSG_MAP_EX(x)
#endif

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

#endif // !defined(AFX_STDAFX_H__6ED9276C_6FF2_4366_903E_1F9FEE2CD004__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 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
Software Developer (Senior) VMware
United States United States
Michael lives in sunny Mountain View, California. He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.

Mike was a VC MVP from 2005 to 2009.

Comments and Discussions