LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

MSComCtl2_IDTPickerGet_Value()

Hi,

I have been trying to implement Wendy's Date & Time Picker example in
thread;

http://forums.ni.com/ni/board/message?board.id=180&message.id=17239

I'm unclear regarding the use of the functions;

MSComCtl2_*();

Which library are these in and what setting-up is required?

--
Regards,

John Cameron.
Type softly, read gently.
0 Kudos
Message 1 of 3
(3,284 Views)
Hello John,

The functions used in my previous post were generated when I created an instrument driver for a Data Time Picker ActiveX control on my UIR.

If you right click on your UIR and select ActiveX, you will have the option to create an ActiveX control on your UIR.  If you navigate down the list, you should see an entry for Microsoft Data Time Picker, version 6.0, if you have that registered on your machine.  The OCX file should be located in System32 under MSCOMCT2.ocx.  Once you place this control on your UIR, you can right click on the control and select Create ActiveX Control Driver.  CVI will create a wrapper around the various ActiveX VB function calls that Microsoft provides for this control.  All the functions start with MSComCtl2 because that was the default name CVI chooses (this happens to map to the name of the OCX file).  You can change it to be more descriptive.  In particular, when you right click on the Date Time Picker and choose to create a instrument driver for it, you have the option to change the Instrument Prefix. 

Documentation for these particular functions can be found on the function panel help, but mainly on Microsoft's website.

Hope that helps
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(3,260 Views)
In message <1140415859341-327106@exchange.ni.com>, Wendy L <x@no.email>
writes
>Hello John,
>
>The functions used in my previous post were generated when I created an
>instrument driver for a Data Time Picker ActiveX control on my UIR.
>
>If you right click on your UIR and select ActiveX, you will have the
>option to create an ActiveX control on your UIR.&nbsp; If you navigate
>down the list, you should see an entry for Microsoft Data Time Picker,
>version 6.0, if you have that registered on your machine.&nbsp; The OCX
>file should be located in System32 under MSCOMCT2.ocx.&nbsp; Once you
>place this control on your UIR, you can right click on the control and
>select Create ActiveX Control Driver.&nbsp; CVI will create a wrapper
>around the various ActiveX VB function calls that Microsoft provides
>for this control.&nbsp; All the functions start with
>MSComCtl2 because that was the default name CVI chooses (this happens
>to map to the name of the OCX file).&nbsp; You can change it to be more
>descriptive.&nbsp; In particular, when you right click on the Date Time
>Picker and choose to create a instrument driver for it, you have the
>option to change the Instrument Prefix.&nbsp;
>
>Documentation for these particular functions can be found on the
>function panel help, but mainly on <a
>href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/s
>hellcc/platform/commctls/datetime/reflist.asp"
>target="_blank">Microsoft's website</a>.
>
>Hope that helps

Thanks Wendy,

You've filled in the missing link for me.
--
Regards,

John Cameron.
Type softly, read gently.
0 Kudos
Message 3 of 3
(3,257 Views)