65.9K
CodeProject is changing. Read more.
Home

WTL message map wizard add-in

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.50/5 (4 votes)

Nov 6, 2004

CPOL

1 min read

viewsIcon

32900

downloadIcon

466

Ease the work with the WTL message map.

Introduction

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.

Usage

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.

History

  • V1.0 - First release!