10-22-2011 04:25 AM
When my CVI application is running and I run Microsoft Spy++, it shows the Window Class Name is "CVIRTLVDChild00400000".
It looks like this is a typical name and if I run different software made with CVI runtime all windows have this class name.
I use another software that may communicate with other running application using their Windows Class Name.
So the question is: Is there a way to modify the Windows Class Name for main window for a particular CVI project?
10-24-2011 05:49 PM
No, the window class name is actually hardcoded in the CVI Run-Time Engine. I don't believe there is a way to change the name of an existing class name either. You can programmatically get the class name in CVI:
intptr_t wnd; int status = 0; char className[256]; wnd = GetCVIWindowHandle (); status = GetClassName((HWND)wnd, className, 256);
10-24-2011 06:04 PM
Thank you for your reply, D Biel.
I expected that it is not possible since it is too "internal" thing. So I was forced to switch to another solution.
P.S. I hope some day a status bar and "decoration" button will appear in the CVI control list 😉
10-25-2011 12:25 AM
10-25-2011 12:25 PM
I would like to support it but did not find how.
For myself I use the Windows Status bar control and it looks and works fine except a callback and control sequence. Screen is attached.
10-26-2011 10:05 AM
ZVS,
You can just click the up arrow to give the idea kudos. The highest kudo ideas draw the most attention from our R&D department.
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments