NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member ZVS
Member
ZVS
Posts: 26
0 Kudos

CVI Application Windows Class Name question

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?

Active Participant
D_Biel
Posts: 640
0 Kudos

Re: CVI Application Windows Class Name question

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);

 

National Instruments
Product Support Engineer
Member ZVS
Member
ZVS
Posts: 26
0 Kudos

Re: CVI Application Windows Class Name question

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 ;-)

Active Participant
Wolfgang
Posts: 1,936
0 Kudos

Re: CVI Application Windows Class Name question

Hi ZVS,

 

a status bar has been suggested here and you are welcome to support it :smileywink:

Member ZVS
Member
ZVS
Posts: 26
0 Kudos

Re: CVI Application Windows Class Name question

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.

Member
Kyle_M
Posts: 197
0 Kudos

Re: CVI Application Windows Class Name question

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

Regards,

Kyle M.
Applications Engineering
National Instruments
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page