Navigation:  Classes > bBrowser >

bBrowser:InitDC()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Initialize a DeviceContext for drawing in the browser.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:InitDC(<hDC>) Æ lSuccess

Arguments

<hDC>The DeviceContext which is to be initialized.
Data type:Pointer

Return Value

lSuccessA logical value that indicates whether the DeviceContext was initialized.
TRUEThe DeviceContext was initialized.
FALSEThe DeviceContext could not be initialized.
Data type:Logic

Description

All methods those draw in the browser need a DeviceContext in which one draws. The method bBrowser:InitDC() initialize the specified DeviceContext with

1.the background mode (see also Windows SDK function SetBkMode() )
2.the font of the column values (see also bBrowser:DataView) and
3.the foreground color of the column values (see also bBrowser:DataView)

 

The DeviceContext is not created by the method but must already exist.

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_initdc.htm