Hello
A better way to make a child window is to use LoadPanel in the following manner
if (((*PanelHandle) = LoadPanel (ParentHandle, "test.uir", PanelConst)) < 0)
return -1;
Instead of passing the first parameter of LoadPanel as 0, pass in the panel handle to the parent window. This will load the panel (PanelConst in this case) as a child panel. And then you should not have the problem you mentioned.
Refer to the documentation for LoadPanel for more information, but its better to use the functionality provided by CVI than to use the SDK functions to do the same thing. The different behavior you notive is because initially, CVI was designed to be platform independant, so its UI and other frameworks do not behave the same like normal Win32 fra
meworks. So trying to use Windows SDK function to the CVI panels can cause unexpected results.
I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI