LBitmapWindow::LBitmapWindow

#include "ltwrappr.h"

LBitmapWindow::LBitmapWindow()

LBitmapWindow::LBitmapWindow(hWndParent, nID, dwStyle=WS_VISIBLE|L_BS_CENTER|L_BS_PROCESSKEYBOARD, x=0, y=0, nCx=200, nCy=200)

HWND hWndParent;

/* handle to the parent window */

L_INT nID;

/* controls id */

DWORD dwStyle;

/* the controls style */

L_INT x;

/* x position */

L_INT y;

/* y position */

L_INT nCx;

/* width of the bitmap window */

L_INT nCy;

/* height of the bitmap window */

Constructs and initializes the different member variables of the LBitmapWindow object.

Parameter

Description

hWndParent

Handle of the parent window.

nID

The controls ID.

dwStyle

Specifies the control's style. Apply any combination of Window styles and LEAD window styles. For more information on Windows styles, refer to your compilers help file. For more information on LEAD window styles, refer to Bitmap Window LEAD specific styles.

x

The starting x position.

y

The starting y position.

nCx

The width of the bitmap window.

nCy

The height of the bitmap window.

Returns

None

Comments

LBitmapWindow::LBitmapWindow() is a constructor for the LBitmapWindow object.

LBitmapWindow::LBitmapWindow(hWndParent, nID, dwStyle, x, y, nCX, nCY) creates the bitmap window control using the specified options. This will fill in the m_hWnd data member with the handle to the new window.

Required DLLs and Libraries

LTDIS
LTDLG
LTEFX
LTFIL
LTIMG
LTSCR
LTTWN

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

Platforms

Win32, x64.

See Also

Functions:

LBitmapWindow::~LBitmapWindow, Class Members

Example

This is an example for LBitmapWindow::LBitmapWindow():

L_INT LBitmapWindow__LBitmapWindowFirstExample()
{
  // this will call the default constructor and destructor when it is out of scope
  LBitmapWindow MyLBitmapWindow;
  //…
   return SUCCESS;
}
  //This is an example for LBitmapWindow::LBitmapWindow(hWndParent, nID, dwStyle, x, y, nCX, nCY):
L_INT LBitmapWindow__LBitmapWindowSecondExample(HWND hParentWnd) 
{
  // this will call the constructor and will initialize the bitmap window with the specified parameters.
  /*initialize hParentWnd  with the handle of the parent window*/
  LBitmapWindow MyLBitmapWindow(hParentWnd,15,WS_VISIBLE,0,0,100,100);
  //…
   return SUCCESS;
}