MessageBox Visual Studio Add-In
Posted
by Thomas Aust
on September 20th, 2000
Environment: Visual Studio 6
How many times have you had to go through the same gyrations to create a message box? Is it the first argument or the second that's the title as opposed to the text. What are the exact constants again for an OK button and a Cancel button? What are the valid return values? Well no more! This very useful add-in saves you from having to remember that from now on! Using this add-in, you can visually set any of the following:
- Icon type
- Buttons
- Caption (notice the built-in values provided for you!)
- Text message
- Modality
- Default button
- You can even specify the conditional expression!
Example
Using the settings shown in the figure above, the add-in produced the following!
if(MessageBox(_T("This is an Error Message !!!\nReturn ?"),
_T("Error"),
MB_ICONHAND|MB_YESNO|MB_DEFBUTTON1)
== IDNO)
{
}
Installing the Add-In
To install the add-in, follow these steps:- Download the DLL (remember to unzip the file) or download the source and build the DLL
- Copy the DLL to the Visual Studio AddIn folder (the default location is the c:\program files\microsoft visual studio\Common\MSDev98\AddIns' folder).
- Click the Tools->Customize menu option
- Click the Add-ins and Macro Files tab
- Check the "MsgBox Developer Studio Add-In" add-in
- Now you can assign it to a key or place it on a toolbar as you like
Downloads
Download MsgBox Add-In - 17 KbDownload source - 47 Kb

Comments
Can these be used with VS.Net
Posted by Legacy on 09/12/2002 12:00amOriginally posted by: AndyC
This is a great help, but can they be used with VS.Net.
I hope so.
Cheers
ReplyNice Work, I have an improvement
Posted by Legacy on 03/24/2002 12:00amOriginally posted by: Nathan Schultz
ReplyTest Dialog font bug
Posted by Legacy on 10/17/2001 12:00amOriginally posted by: Kestas
Reply