
07-08-2002, 05:06 PM
|
|
|
Using IP Address Control !!
|
Hi there. Im a bit of a VB n00b and im having trouble getting hold of the IP Address Control that you see when you access TCP/IP settings in network neighbourhood. I have a little proggie that needs to retrieve an IP address and i would like to use this control.
It seems that it is incorporated in the MS Windows Common Controls (Comctl32.dll) but according to MSDN :
Quote:
Using IP Address Controls
This section describes how to implement an IP address control in your application.
Initializing an IP Address Control
To use an IP address control, call InitCommonControlsEx with the ICC_INTERNET_CLASSES flag set in the dwICC member of the INITCOMMONCONTROLSEX structure.
Creating an IP Address Control
Use theCreateWindow or theCreateWindowEx API to create an IP address control. The class name for the control is WC_IPADDRESS, which is defined in Commctrl.h. No IP address control-specific styles exist; however, because this is a child control, use the WS_CHILD style as a minimum.
|
This to me looks like some C++ API programmin which i am absolutely clueless about. Any help to get me going would be appreciated! Cheers
-Sab-
|
|