How to create the user modeless dialog in my SolidWorks add-in?

March 9, 2010
Sometimes you need to create the user modeless dialog in your SolidWorks add-in.

Form::Show method shows the dialog in separate window so it made background on activating new window.

There are two ways to make this dialog as a child Window of SolidWorks:

1) Use the wrapper class that implements IWin32Window and pass it's pointer to Form::Show method.

2) Use Windows API Function: SetParent

To retrieve the handle of SolidWorks Window call IFrame::GetHWnd method.

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

AttachmentSize
amcb_api_tip_06.flv0 bytes