NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create child windows in the Sequence Editor?

Good morning,

I'm working on an ActiveX class that manipulates some MFC dialogs and other useful things. I was wondering if anyone has been successful creating windows that have the sequence editor as a parent.

I tried calling the following code with the ActiveX Adapter, and I pass it a copy of Engine.AppMainHwnd:

long CCmdTargetTSDebugWindow::ShowDebugWindow(long parent)
{
// TODO: Add your dispatch handler code here
dialog = new CDialogTSDebugWindow();
dialog->Create(IDD_DIALOG_TSDEBUGWINDOW, CWnd::FromHandle((HWND)parent));
dialog->ShowWindow(SW_SHOW);

return 0;
}

This works for about 20 seconds then TestStand crashes. If anyone knows of a legal way to create a child window, please let
me know!

Thanks,

Chris Norris
Carrier Access Corporation
cnorris@carrieraccess.com
303.218.5826
0 Kudos
Message 1 of 2
(3,039 Views)
Hi,

Maybe this example will help.

http://zone.ni.com/devzone/explprog.nsf/webmain/0284C64CE766E18F862567AF004F06F8?opendocument

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,039 Views)