LInet::CreateWnd

#include "ltwrappr.h"

L_INT LInet::CreateWnd(hParentWnd, pOptions, nID, uStyles=WS_VISIBLE, nX=0, nY=0, nCx=320, nCy=200)

HWND hParentWnd;

/* handle of the parent window */

pCONLISTOPTIONS pOptions;

/* options for the window control */

L_INT nID;

/* the controls ID */

L_UINT32 uStyles;

/* controls style */

L_INT nX;

/* x coordinate for the window */

L_INT nY;

/* y coordinate for the window */

L_INT nCx;

/* width of the window */

L_INT nCy;

/* height of the window */

Creates the connection window control using the specified parameters.

Parameter

Description

hParentWnd

Handle of the parent window.

pOptions

Options of the connection list window control.

nID

The controls ID.

uStyles

The style of the window control. Apply any combination of window styles and tree view styles. For more information on Windows styles, refer to your compilers help file. For more information window styles, refer to MICROSOFT WINDOWS styles.

nX

X coordinate for the origin of the connection window.

nY

Y coordinate for the origin of the connection window.

nCx

The width of the connection window.

nCy

The height of the connection window.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function causes the class object to create the control window using the specified parameters.

If the control window has been created, it will have a tree view appearance with two branches, one for the server that my computer connected to them, and the other for clients were connected to my computer.

If the user passed pOptions->hServerIcon or pOptions->hClientIcon as NULL, then the function will load the default icons.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LInet::ExpandWnd, Class Members

Example

L_INT LInet__CreateWndExample()
{
   L_INT    nRet;
   LInet    Inet;
   HWND     hParentWnd = NULL;
   // other operations
   nRet = Inet.CreateWnd(hParentWnd, NULL);
   if(nRet != SUCCESS)
      return nRet;
   nRet = Inet.ExpandWnd();
   if(nRet != SUCCESS)
      return nRet;
   return SUCCESS;
}