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
NiCoder
Posts: 49
0 Kudos

How to get control button handle (HWND)

How do I get control button handle on labWindow panel?
Trusted Enthusiast
RobertoBozzolo
Posts: 4,525

Rif.: How to get control button handle (HWND)

You can't: CVI controls are not standard Windows controls and do not have a window handle (they actually aren't "windows").




Using LW/CVI from 3.1 on.

My contributions to the Developer Zone Community
________________________________________
If I have helped you, why not giving a kudos?
Member
David_Lee
Posts: 150
0 Kudos

Rif.: How to get control button handle (HWND)

Hi Roberto,

 

Proceed the question, I want to use the canvas control to display video via the VLC sdk, there is a function, "ibvlc_media_player_set_hwnd(m_plibvlc_media_player, (void*)hwnd, &m_libvlc_ex);", where the parameter hwnd should be set as the control handle, is there any to map a windows handle?

 

 

David

 

Member
David_Lee
Posts: 150
0 Kudos

Rif.: How to get control button handle (HWND)

The full function is "libvlc_media_player_set_hwnd(m_plibvlc_media_player, (void*)hwnd, &m_libvlc_ex);"

Trusted Enthusiast
RobertoBozzolo
Posts: 4,525
0 Kudos

Rif.: How to get control button handle (HWND)

Based on what O wrote earlier in this thread, I tend to say that you can't do that but I have no direct experience on this matter. Let's see if somebody has some solution  to suggest.




Using LW/CVI from 3.1 on.

My contributions to the Developer Zone Community
________________________________________
If I have helped you, why not giving a kudos?
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