Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.CalculateStringDimEx Method

Calculates the size of a string using custom flags

Syntax
Public Sub CalculateStringDimEx (ByVal lHdc As Long, _
ByVal sPartString As String, _
ByVal lAdditionalFlags As Long, _
ByRef wDim As Long, _
ByRef hMax As Long)
Parameters
Parameter Description
ByVal lHdc As Long The destination Device Context
ByVal sPartString As String The source string to measure
ByVal lAdditionalFlags As Long A combination of [eCtlDrawTextFormat] flags
ByRef wDim As Long Resulting Width in pixels
ByRef hMax As Long Resulting Height in pixels
Remarks