This example shows how to create and display a modeless dialog.  Remeber,
when you add a Dialog resource item, the default value for Visible = FALSE,
make sure to change it to true or call ShowWindow( SW_SHOW ); after creating
the Dialog.  This is an example of what needs to be in the Modeless dialog
box's class.  You must create a Modeless dialog a bit differently than a
normal dialog, here is how you do it:

// ...
#include "Modeless.h"
// ...


// ...

CTest::OnAddDialog( )
{
	// this should be used if you just want to create
	// a new instance of the dialog
	CModeless* ModelessDialog;
	ModelessDialog = new CModeless;
	ModelessDialog->Create();

	// this should be used to create a modells dialog
	// while keeping a reference to it has a class member
	// called 'ModelessDialog'
	// it would also be a good idea in the class constructor
	// to assign 'ModelessDialog' to NULL
	if( !ModelessDialog )
	{
		ModelessDialog = new CModeless;
		ModelessDialog->Create();
	}
	//else
		// the dialog is already being displayed
}

// ...