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

WTL for MFC Programmers, Part X - Implementing a Drag and Drop Source

Rate me:
Please Sign up or sign in to vote.
4.95/5 (40 votes)
16 Jun 200618 min read 197.4K   2.8K   107  
A tutorial on using drag and drop in your WTL application.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by WTLCabView.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDS_MSGBOX_TITLE                129
#define IDS_OPENFILE_FILTER             130
#define IDI_PREV_CAB                    201
#define IDI_NEXT_CAB                    202
#define IDS_FDICREATE_FAILED            256
#define IDS_FILE_NOT_FOUND              257
#define IDS_OPEN_CAB_ERROR              258
#define IDS_INVALID_CAB_ERROR           259
#define IDS_FDICOPY_FAILED              260
#define IDS_COLHDR_NAME                 261
#define IDS_COLHDR_TYPE                 262
#define IDS_COLHDR_SIZE                 263
#define IDS_COLHDR_DATE                 264
#define IDS_COLHDR_ATTRS                265
#define IDS_COLHDR_SPLIT                266
#define IDS_FROM_PREV_CAB               267
#define IDS_TO_NEXT_CAB                 268
#define IDC_VIEW_ICONS                  32772
#define IDC_VIEW_SMALL_ICONS            32774
#define IDC_VIEW_LIST                   32775
#define IDC_VIEW_DETAILS                32776
#define IDC_VIEW_TILES                  32777

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        205
#define _APS_NEXT_COMMAND_VALUE         32779
#define _APS_NEXT_CONTROL_VALUE         1000
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

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