Class that implements the IP Address Input Windows common control.
This class implements routines for creating and manipulating the IP Address control in the Internet Explorer common control library.
This class requires version 4.71 or later of COMCTL32.DLL. Please note that you cannot simply redistribute COMCTL32.DLL with your application.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CIPAddressInput class
|
|
Height
|
Property
|
Gets the height of the ipaddress control
|
|
hwnd
|
Property
|
Gets the handle of the ipaddress control (only valid if the Create function has been called)
|
|
hWndParent
|
Property
|
Gets the handle of the parent window (only valid if the Create function has been called)
|
|
IPAddress
|
Property
|
Sets the IP address in the control. You cannot set this property until after the create method has been called.
|
|
Left
|
Property
|
Sets the left position of the ipaddress control, relative to the parent window
|
|
Top
|
Property
|
Gets the top position of the ipaddress control, relative to the parent window
|
|
Width
|
Property
|
Gets the width of the ipaddress control
|
|
Class_Terminate
|
Terminate
|
Release resources used by the class
|
|
Clear
|
Method
|
Clear the contents of the control
|
|
Create
|
Method
|
Create the ipaddress picker control.
This procedure should only be called after the hWndParent, Left, Top, Width, and Height properties have been set.
|
|
dblToLong
|
Private
|
Performs an unsigned conversion from a Double value to a long Value.
This function correctly handles doubles greater than 2,147,483,647 and less than or equal to 4,294,967,295.
|
|
Destroy
|
Method
|
Destroy the window that we created.
It is not necessary to call this procedure. The Terminate event of this class destroys the window.
|
|
HiByte
|
Private
|
Returns the high byte of the passed Integer
|
|
HiWord
|
Private
|
Returns the high integer of the passed long
|
|
IntToLong
|
Private
|
Converts an Integer value to a Long, treating the integer as unsigned
|
|
IPToLong
|
Method
|
Converts an IP address to a long, treating the integer as though it were unsigned.
For example, performing the following assignment
lngNumber = -1
assigns -1 to the variable lngNumber. However, This assignment
lngNumber = IntToLong(-1)
assigns 65,535 to lngNumber.
|
|
IsBlank
|
Method
|
Returns whether or not the contents of the control are empty
|
|
LoByte
|
Private
|
Returns the low byte of the passed integer
|
|
LongToInt
|
Private
|
Performs an unsigned conversion from a Long value to an Integer
|
|
LongToIP
|
Method
|
Converts a Long value to an IP address string
|
|
LoWord
|
Private
|
Returns the low integer of the passed long
|
|
MakeInt
|
Private
|
Combines two bytes into an integer.
|
|
MakeLong
|
Private
|
Combines two words (integers) into a long. This routine correctly handles negative input Values
|
|
UpdatePosition
|
Method
|
Update the control's left, top, width and height properties.
This is useful if you want to change the size or position of the control after it has been created. The position is determined by the Left, Top, Width, and Height properties.
|