Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.CalculateStringDim Method

Calculates the size of a string and return Width and Height

Syntax
Public Sub CalculateStringDim (ByVal lHdc As Long, _
ByVal sPartString As String, _
ByVal bUseFlag_NoPrefix As Boolean, _
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 bUseFlag_NoPrefix As Boolean Uses the CTL_DT_NOPREFIX flag ([eCtlDrawTextFormat] enum)
ByRef wDim As Long Resulting Width in pixels
ByRef hMax As Long Resulting Height in pixels
Remarks