Click here to Skip to main content
15,882,552 members
Articles / Programming Languages / C++

WTL message map wizard add-in

Rate me:
Please Sign up or sign in to vote.
3.50/5 (4 votes)
5 Nov 2004CPOL1 min read 32.7K   466   11   1
Ease the work with the WTL message map.


This add-in lets you easily insert messages in the WTL message map without looking in the WTL source file to find the exact definition. It's based on the nice Shengqian Ji MsgMapper tool, all I do here is to transform the executable to an add-in.

How to Install this Add-in

Decompress the binaries in some location, and in Visual Studio Add-in dialog box browse for the location where you decompressed it.


You just have to put your cursor between BEGIN_MESSAGEMAP and END_MESSAGEMAP, and click on the Message Wizard button on the toolbar, and you'll get a dialog box where there are four buttons named Paste1 to Paste4. You should fill in the Class edit box with your class name if you are using CPP files. Then select a macro name from the combo box, the code generated will appear in the edit box. The functions of the four buttons are listed below:

  • Copy1: copies the macros like MSG_XXXXX(OnXXXXX).
  • Copy1: copies the definition used in header files when using CPP files.
  • Copy3: copies the implementation used in CPP files.
  • Copy4: copies the code for header files when not using CPP files.

Form more details see the original article from Shengqian Ji.


  • V1.0 - First release!


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

Written By
Software Developer (Senior)
Canada Canada
Begin programming in pascal some 8 years ago, then to assembly and C, after seeing that pascal is out of fashion. play a little with Delphi and C++ Builder, to see that was enough.

A little mess with other technologies, HTML, CGI, DHTML, PHP.

Comments and Discussions

GeneralAsserts in EVC4 Pin
ajhuddy6-Nov-04 7:42
ajhuddy6-Nov-04 7:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.