Custom Dialog

J

Jonathan Spane

In making an add-on in C++ I am now trying to create a dialog using the
following code.

::DialogBox (instance, MAKEINTRESOURCE (IDD_DIALOG_ABOUT), m_ParentWindow,
(DLGPROC) CustomDialogProc);

This code compiles fine and have definately added to the resource file but
when calling this method I get an error of "resource not found".

Is there a better way one should make custom dialogs in Visio? This dialog
will be more complicated than a MessageBox?

Thanks

JP
 
J

Jonathan Spane

It is working now. It seems the window's method GetInstance was not
returning the correct thing in Visio. However I can get an instance from the
vaddon plugin code the wizard made when setting up the initial plugin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top