Functions | |
void | mdlDialog_diamondDraw (MSDialogP dbP, Point2dCP ptP, int size, bool raised, int colorIndex, bool fat) |
Draws a diamond in the specified Dialog Box. More... | |
void | mdlDialog_diamondDrawCD (MSDialogP dbP, Point2dCP ptP, int size, bool raised, bool fat, BSIRectCP clipRectP, BSIColorDescrCP topShadowP, BSIColorDescrCP bottomShadowP, BSIColorDescrCP fillP, RawItemHdrP riP) |
Draws a diamond using specified colors in the specified Dialog Box. More... | |
void | mdlDialog_ellipseDraw (MSDialogP dbP, DPoint2dCP originP, double primary, double secondary, double rotation, BSIRectCP clipRectP, int colorIndex) |
Draws an ellipse in the specified Dialog Box. More... | |
void | mdlDialog_ellipseDrawCD (MSDialogP dbP, DPoint2dCP originP, double primary, double secondary, double rotation, BSIRectCP clipRectP, BSIColorDescrCP colorP, RawItemHdrP riP) |
Draws an ellipse using a specified color descriptor in the specified Dialog Box. More... | |
void | mdlDialog_ellipseFill (MSDialogP dbP, DPoint2dCP originP, double primary, double secondary, double rotation, int colorIndex) |
Draws a filled ellipse of color colorIndex in the specified Dialog Box. More... | |
void | mdlDialog_ellipseFillCD (MSDialogP dbP, DPoint2dCP originP, double primary, double secondary, double rotation, BSIRectCP clipRectP, BSIColorDescrCP colorP, RawItemHdrP riP) |
Draws a filled ellipse using the specified color descriptor in the specified Dialog Box. More... | |
void | mdlDialog_lineStyleSet (MSDialogP dbP, int pattern, int colorIndex, int mode, int lweight) |
Sets the characteristics of the graphics that are subsequently drawn. More... | |
void | mdlDialog_scrollArrowDraw (MSDialogP dbP, Point2dCP ptP, int size, bool raised, bool fillBlack, bool fat, int type) |
Draws a scroll-bar-item-like arrow in the specified Dialog Box. More... | |
void | mdlDialog_scrollArrowDrawCD (MSDialogP dbP, Point2dCP ptP, int size, bool raised, bool fillBlack, bool fat, int type, BSIRectCP clipRectP, BSIColorDescrCP topShadowP, BSIColorDescrCP bottomShadowP, BSIColorDescrCP fillP, RawItemHdrP riP) |
An extension of mdlDialog_scrollArrowDraw with additional parameters and draws a scroll-bar-item-like arrow in the specified Dialog Box. More... | |
void | mdlDialog_2DArrowDrawCD (MSDialogP dbP, Point2dCP ptP, int size, bool enabled, bool drawShaft, int type, BSIRectCP clipRectP, BSIColorDescrCP fillP, BSIColorDescrCP dimColorP, BSIColorDescrCP topShadowP, RawItemHdrP riP) |
Similar to mdlDialog_scrollArrowDrawCD function but only draws a Windows style 2D arrow. More... | |
void | mdlDialog_textDraw (MSDialogP dbP, Point2dCP ptP, BSIRectCP clipRectP, WCharCP pwString, bool dimText) |
Draws the string into a Dialog Box. More... | |
void | mdlDialog_textDrawN (MSDialogP dbP, Point2dCP ptP, BSIRectCP clipRectP, WCharCP pwString, bool dimText, size_t nChars) |
Draws text in a Dialog Box and may be truncated to a maximum length. More... | |
void | mdlDialog_textDrawCD (MSDialogP dbP, Point2dCP ptP, BSIRectCP clipRectP, WCharCP pwString, bool dimText, BSIColorDescrCP foregroundP, BSIColorDescrCP backgroundP, BSIColorDescrCP dimColorP, RawItemHdrP riP) |
Draws text in a Dialog Box with specific foreground and background colors. More... | |
void | mdlDialog_textDrawNCD (MSDialogP dbP, Point2dCP ptP, BSIRectCP clipRectP, WCharCP pwString, bool dimText, size_t nChars, BSIColorDescrCP foregroundP, BSIColorDescrCP backgroundP, BSIColorDescrCP dimColorP, RawItemHdrP riP) |
Draws text in a Dialog Box with specific foreground and background colors and possibly truncates the text to a maximum length. More... | |
int | mdlDialog_toDCoord (MSDialogP dbP, int pixel) |
Converts a value that is in pixels to the corresponding dialog coordinate units value. More... | |
int | mdlDialog_toPixels (MSDialogP dbP, int dialogCoord) |
Converts a value that is in dialog coordinate units to the corresponding pixel value. More... | |
void | mdlDialog_underlineDraw (MSDialogP dbP, Point2dCP ptP, WCharCP pwString, int charIndex, int fontIndex, bool dimLine) |
Underlines text in a Dialog Box. More... | |
void | mdlDialog_underlineDrawCD (MSDialogP dbP, Point2dCP ptP, WCharCP pwString, int charIndex, int fontIndex, bool dimLine, BSIRectCP clipRectP, BSIColorDescrCP foregroundP, BSIColorDescrCP dimColorP, RawItemHdrP riP) |
Underlines text in a Dialog Box with a particular color. More... | |
void | mdlDialog_drawMoveHandles (MSDialogP dbP, DockPosition docked, BSIRectCP dialogRectP) |
Draws the handles the user grabs to move a docked dialog or toolbox. More... | |
void | mdlDialog_linesDrawBeveled (MSDialogP dbP, BSIRectCP rP, bool raised, bool wide, bool vertical) |
Similar to the mdlDialog_rectDrawBeveled function but does not draw the lines at the specified ends of the rectangle. More... | |
void | mdlDialog_linesDrawBeveledCD (MSDialogP dbP, BSIRectCP rP, bool raised, bool wide, bool vertical, BSIRectCP clipRectP, BSIColorDescrP topShadowP, BSIColorDescrP bottomShadowP, RawItemHdrP riP) |
Similar to mdlDialog_rectDrawBeveledCD function but does not draw the lines at the specified ends of the rectangle. More... | |
void | mdlDialog_rectDrawInnerBorder (MSDialogP dbP, BSIRectCP rectP, bool raised, bool button) |
Draws a rectangle for the inner portion of a GUI item's Windows-style box. More... | |
void | mdlDialog_rectDrawOuterBorder (MSDialog *dbP, BSIRectCP rectP, bool raised, bool button) |
Draws a rectangle for the outer portion of a GUI item's Windows-style box. More... | |
int | mdlDialog_stringWidth (MSDialogP dbP, int fontIndex, WCharCP pwString) |
Returns the width in pixels of the specified string. More... | |
int | mdlDialog_stringnWidth (MSDialogP dbP, int fontIndex, WCharCP pwString, size_t nChars) |
Returns the width in pixels of the first nChars characters of a string. More... | |
void | mdlDialog_fileAbbreviateNameByPixels (WCharP fileName, int maxLength, MSDialogP dbP, int fontIndex) |
Abbreviates a file name to a shortened version based on file abbreviation rules. More... | |
bool | mdlDialog_pathCompact (MSDialogP dbP, WCharP pwNewStr, WCharCP pwString, BSIRectCP clipRectP, int fontIndex) |
Abbreviates a Unicode string to a shortened version based on Microsoft's file abbreviation rules. More... | |
bool | mdlDialog_isGradientAppropriate (MSDialogP dbP) |
Determines whether a gradient background is appropriate for this dialog. More... | |
bool | mdlDialog_isMonoIconAlphaBlending (MSDialogP dbP) |
Determines whether a monochrome icon in this dialog should be drawn using alpha-blending. More... | |
void | mdlDialog_setMonoIconAlphaBlending (MSDialogP dbP, bool bValue) |
Sets whether a monochrome icon in this dialog should be drawn using alpha-blending. More... | |
bool | mdlVisualStyle_isThemeActive () |
Determines whether a Windows visual theme is active. More... | |
StatusInt | mdlVisualStyle_drawToolBarButton (MSDialogP dbP, RawItemHdrP riP, BSIRectCP pRect, bool bChecked, bool bHot, bool bPressed, BSIColorDescrP pBgColor) |
Draws a ToolBar Button using Visual Styles drawing. More... | |
void mdlDialog_2DArrowDrawCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
int | size, | ||
bool | enabled, | ||
bool | drawShaft, | ||
int | type, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | fillP, | ||
BSIColorDescrCP | dimColorP, | ||
BSIColorDescrCP | topShadowP, | ||
RawItemHdrP | riP | ||
) |
Similar to mdlDialog_scrollArrowDrawCD function but only draws a Windows style 2D arrow.
[in] | dbP | MSDialog to draw in |
[in] | ptP | parameter specifies the location (in pixels) of the upper left corner of a square of size size which surrounds where the arrow will be drawn. |
[in] | size | size of arrow base (must be odd) |
[in] | enabled | parameter should be set to true to enable the item, or false |
[in] | drawShaft | indicates whether to draw the shaft of the arrow |
[in] | type | parameter indicates the type of arrow to draw. Its value can be SCROLL_ARROW_UP, SCROLL_ARROW_DOWN, SCROLL_ARROW_LEFT or SCROLL_ARROW_RIGHT. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | fillP | is a BSIColorDescr pointer, usually obtained from a DgnPlatform::BSIColorPalette. |
[in] | dimColorP | specifies the color to use for dim text. Only valid if dimText is true. |
[in] | topShadowP | specifies the Color Descriptor to use when drawing the top shadow |
[in] | riP | is only used if fillP is NULL. In that case, it indicates a dialog item from which to get the value of fillP. The foreground color associated with the item is used. |
void mdlDialog_diamondDraw | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
int | size, | ||
bool | raised, | ||
int | colorIndex, | ||
bool | fat | ||
) |
Draws a diamond in the specified Dialog Box.
[in] | dbP | MSDialog to draw diamond in |
[in] | ptP | specifies the location (in pixels) of the upper left corner of a square of size size which surrounds where the diamond will be drawn. |
[in] | size | WARNG, must be odd |
[in] | raised | if the parameter is true, the diamond appears raised from the surface of the Dialog Box. Otherwise it appears recessed into the Dialog Box surface. |
[in] | colorIndex | fixed color index to use for drawing |
[in] | fat | the diamond will be drawn with a two pixel edge instead of one pixel |
void mdlDialog_diamondDrawCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
int | size, | ||
bool | raised, | ||
bool | fat, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | topShadowP, | ||
BSIColorDescrCP | bottomShadowP, | ||
BSIColorDescrCP | fillP, | ||
RawItemHdrP | riP | ||
) |
Draws a diamond using specified colors in the specified Dialog Box.
[in] | dbP | MSDialog to draw diamond in |
[in] | ptP | specifies the location (in pixels) of the upper left corner of a square of size size which surrounds where the diamond will be drawn. |
[in] | size | WARNG, must be odd |
[in] | raised | if the parameter is true, the diamond appears raised from the surface of the Dialog Box. Otherwise it appears recessed into the Dialog Box surface. |
[in] | fat | the diamond will be drawn with a two pixel edge instead of one pixel |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | topShadowP | specifies the Color Descriptor to use when drawing the top shadow |
[in] | bottomShadowP | specifies the Color Descriptor to use when drawing the bottom shadow |
[in] | fillP | is a BSIColorDescr pointer, usually obtained from a DgnPlatform::BSIColorPalette. |
[in] | riP | is only used if fillP is NULL. In that case, it indicates a dialog item from which to get the value of fillP. The foreground color associated with the item is used. |
void mdlDialog_drawMoveHandles | ( | MSDialogP | dbP, |
DockPosition | docked, | ||
BSIRectCP | dialogRectP | ||
) |
Draws the handles the user grabs to move a docked dialog or toolbox.
[in] | dbP | points to the dialog where the move handles will be drawn. |
[in] | docked | the dock mode of the dialog: DOCK_TOP, BOTTOM, LEFT, RIGHT, NOTDOCKED |
[in] | dialogRectP | the rectangle of the Dialog Box |
void mdlDialog_ellipseDraw | ( | MSDialogP | dbP, |
DPoint2dCP | originP, | ||
double | primary, | ||
double | secondary, | ||
double | rotation, | ||
BSIRectCP | clipRectP, | ||
int | colorIndex | ||
) |
Draws an ellipse in the specified Dialog Box.
The origin of the ellipse is given in a double-precision 2D point, originP. The primary axis (the axis at zero degrees in the arc/ellipse coordinate system) is passed in primary, and the secondary axis (the axis at 90 degrees) is passed in secondary. You can produce a circle or circular arc by setting primary equal to secondary.
[in] | dbP | MSDialog to draw ellipse in |
[in] | originP | center point of ellipse |
[in] | primary | primary axis |
[in] | secondary | secondary axis |
[in] | rotation | rotation of entire ellipse |
[in] | clipRectP | overriding clip rectangle |
[in] | colorIndex | fixed color index to use for drawing |
void mdlDialog_ellipseDrawCD | ( | MSDialogP | dbP, |
DPoint2dCP | originP, | ||
double | primary, | ||
double | secondary, | ||
double | rotation, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | colorP, | ||
RawItemHdrP | riP | ||
) |
Draws an ellipse using a specified color descriptor in the specified Dialog Box.
The origin of the ellipse is given in a double-precision 2D point, originP. The primary axis (the axis at zero degrees in the arc/ellipse coordinate system) is passed in primary, and the secondary axis (the axis at 90 degrees) is passed in secondary. You can produce a circle or circular arc by setting primary equal to secondary.
[in] | dbP | MSDialog to draw ellipse in |
[in] | originP | center point of ellipse |
[in] | primary | primary axis |
[in] | secondary | secondary axis |
[in] | rotation | rotation of entire ellipse |
[in] | clipRectP | overriding clip rectangle |
[in] | colorP | is a BSIColorDescr pointer, usually obtained from a DgnPlatform::BSIColorPalette. |
[in] | riP | is only used if colorP is NULL. In that case, it indicates a dialog item from which to get the value of colorP. The foreground color associated with the item is used. |
void mdlDialog_ellipseFill | ( | MSDialogP | dbP, |
DPoint2dCP | originP, | ||
double | primary, | ||
double | secondary, | ||
double | rotation, | ||
int | colorIndex | ||
) |
Draws a filled ellipse of color colorIndex in the specified Dialog Box.
[in] | dbP | dialog to draw in |
[in] | originP | center pt of ellipse |
[in] | primary | length of primary axis |
[in] | secondary | length of secondary axis |
[in] | rotation | rotation of entire ellipse |
[in] | colorIndex | fixed color index fill color |
void mdlDialog_ellipseFillCD | ( | MSDialogP | dbP, |
DPoint2dCP | originP, | ||
double | primary, | ||
double | secondary, | ||
double | rotation, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | colorP, | ||
RawItemHdrP | riP | ||
) |
Draws a filled ellipse using the specified color descriptor in the specified Dialog Box.
[in] | dbP | dialog to draw in |
[in] | originP | center pt of ellipse |
[in] | primary | length of primary axis |
[in] | secondary | length of secondary axis |
[in] | rotation | rotation of entire ellipse |
[in] | clipRectP | overriding clip rectangle |
[in] | colorP | is a BSIColorDescr pointer, usually obtained from a DgnPlatform::BSIColorPalette. |
[in] | riP | is only used if colorP is NULL. In that case, it indicates a dialog item from which to get the value of colorP. The foreground color associated with the item is used. |
void mdlDialog_fileAbbreviateNameByPixels | ( | WCharP | fileName, |
int | maxLength, | ||
MSDialogP | dbP, | ||
int | fontIndex | ||
) |
Abbreviates a file name to a shortened version based on file abbreviation rules.
[in,out] | fileName | buffer containing the Unicode file name, which is modified in place |
[in] | maxLength | maximum length in pixels of the file name |
[in] | dbP | specifies which Dialog Box the file name is drawn in. |
[in] | fontIndex | specifies which font is used when drawing the file name. |
bool mdlDialog_isGradientAppropriate | ( | MSDialogP | dbP | ) |
Determines whether a gradient background is appropriate for this dialog.
[in] | dbP | a pointer to the MSDialog to query. |
bool mdlDialog_isMonoIconAlphaBlending | ( | MSDialogP | dbP | ) |
Determines whether a monochrome icon in this dialog should be drawn using alpha-blending.
[in] | dbP | a pointer to the MSDialog |
void mdlDialog_linesDrawBeveled | ( | MSDialogP | dbP, |
BSIRectCP | rP, | ||
bool | raised, | ||
bool | wide, | ||
bool | vertical | ||
) |
Similar to the mdlDialog_rectDrawBeveled function but does not draw the lines at the specified ends of the rectangle.
[in] | dbP | MSDialog to draw beveled lines in |
[in] | rP | points to the rectangle outling the lines to draw |
[in] | raised | true indicates raised look; false indicates recessed look |
[in] | wide | true indicates bevel is two pixels wide; false indicates bevel is one pixel wide |
[in] | vertical | indicates whether the rectangle represented by rP is vertical (true) or horizontal (false) |
void mdlDialog_linesDrawBeveledCD | ( | MSDialogP | dbP, |
BSIRectCP | rP, | ||
bool | raised, | ||
bool | wide, | ||
bool | vertical, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrP | topShadowP, | ||
BSIColorDescrP | bottomShadowP, | ||
RawItemHdrP | riP | ||
) |
Similar to mdlDialog_rectDrawBeveledCD function but does not draw the lines at the specified ends of the rectangle.
[in] | dbP | MsDialog to draw beveled lines in |
[in] | rP | beveled rectangle |
[in] | raised | true indicates raised look; false indicates recessed look |
[in] | wide | true indicates bevel is two pixels wide; false indicates bevel is one pixel wide |
[in] | vertical | indicates whether the rectangle represented by rP is vertical (true) or horizontal (false) |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | topShadowP | specifies the Color Descriptor to use when drawing the top shadow |
[in] | bottomShadowP | specifies the Color Descriptor to use when drawing the bottom shadow |
[in] | riP | specifies the RawItemHdr of the item to get colors from |
void mdlDialog_lineStyleSet | ( | MSDialogP | dbP, |
int | pattern, | ||
int | colorIndex, | ||
int | mode, | ||
int | lweight | ||
) |
Sets the characteristics of the graphics that are subsequently drawn.
The db argument designates the Dialog Box that you intend to draw to. On some platforms (such as the PC), the graphic attributes are shared for all windows on a given screen and are not maintained for each window individually. Therefore, as a general rule, set the graphic attributes when you draw on the screen.
[in] | dbP | MSDialog to set lineStyle in |
[in] | pattern | specifies an on/off pattern for the line to be drawn. Possible values are 0 through 7, resulting in solid, dotted, medium-dashed, long-dashed, dot-dashed short-dashed, dash double-dot and long dash-short dashlines, respectively. |
[in] | colorIndex | specifies a color index for the graphics. Its usual value is WHITE_INDEX, BLACK_INDEX, LGREY_INDEX or DGREY_INDEX. See msdefs.h for the complete list of possible color indexes. |
[in] | mode | determines whether the lines will be drawn on the screen (mode 0), or combined with the current screen contents using the XOR (exclusive OR) operation (mode 1). |
[in] | lweight | specifies the line thickness. Possible values are 0 to 31. Sometimes two adjacent line thicknesses will display the same on the screen because of the limited resolution available on some displays. (For example 0 and 1 may set only one pixel). |
bool mdlDialog_pathCompact | ( | MSDialogP | dbP, |
WCharP | pwNewStr, | ||
WCharCP | pwString, | ||
BSIRectCP | clipRectP, | ||
int | fontIndex | ||
) |
Abbreviates a Unicode string to a shortened version based on Microsoft's file abbreviation rules.
[in] | dbP | specifies which Dialog Box the file name is drawn in. |
[out] | pwNewStr | buffer filled with the compacted Unicode string |
[in] | pwString | buffer containing the Unicode string to compact |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | fontIndex | specifies which font is used when drawing the file name. |
void mdlDialog_rectDrawInnerBorder | ( | MSDialogP | dbP, |
BSIRectCP | rectP, | ||
bool | raised, | ||
bool | button | ||
) |
Draws a rectangle for the inner portion of a GUI item's Windows-style box.
[in] | dbP | MSDialog to draw rectangle in |
[in] | rectP | Outer coordinates of rectangle to draw |
[in] | raised | indicates whether box is raised (true) on sunken (false) |
[in] | button | indicates whether this is a button item |
void mdlDialog_rectDrawOuterBorder | ( | MSDialog * | dbP, |
BSIRectCP | rectP, | ||
bool | raised, | ||
bool | button | ||
) |
Draws a rectangle for the outer portion of a GUI item's Windows-style box.
[in] | dbP | MSDialog to draw rectangle in |
[in] | rectP | Outer coordinates of rectangle to draw |
[in] | raised | indicates whether box is raised (true) on sunken (false) |
[in] | button | indicates whether this is a button item |
void mdlDialog_scrollArrowDraw | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
int | size, | ||
bool | raised, | ||
bool | fillBlack, | ||
bool | fat, | ||
int | type | ||
) |
Draws a scroll-bar-item-like arrow in the specified Dialog Box.
[in] | dbP | MSDialog to draw in |
[in] | ptP | parameter specifies the location (in pixels) of the upper left corner of a square of size size which surrounds where the arrow will be drawn. |
[in] | size | size of arrow base (must be odd) |
[in] | raised | if the parameter is true, the arrow appears raised from the surface of the Dialog Box. Otherwise it appears recessed into the Dialog Box surface. |
[in] | fillBlack | if the parameter is true, the inside of the arrow is drawn in black instead of light gray. fillBlack is usually false. |
[in] | fat | if the parameter is true, the arrow will have two pixel wide edges. Otherwise, the edges will only be one pixel wide. |
[in] | type | parameter indicates the type of arrow to draw. Its value can be SCROLL_ARROW_UP, SCROLL_ARROW_DOWN, SCROLL_ARROW_LEFT or SCROLL_ARROW_RIGHT. |
void mdlDialog_scrollArrowDrawCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
int | size, | ||
bool | raised, | ||
bool | fillBlack, | ||
bool | fat, | ||
int | type, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | topShadowP, | ||
BSIColorDescrCP | bottomShadowP, | ||
BSIColorDescrCP | fillP, | ||
RawItemHdrP | riP | ||
) |
An extension of mdlDialog_scrollArrowDraw with additional parameters and draws a scroll-bar-item-like arrow in the specified Dialog Box.
[in] | dbP | MSDialog to draw in |
[in] | ptP | parameter specifies the location (in pixels) of the upper left corner of a square of size size which surrounds where the arrow will be drawn. |
[in] | size | size of arrow base (must be odd) |
[in] | raised | if the parameter is true, the arrow appears raised from the surface of the Dialog Box. Otherwise it appears recessed into the Dialog Box surface. |
[in] | fillBlack | if the parameter is true, the inside of the arrow is drawn in black instead of light gray. fillBlack is usually false. |
[in] | fat | if the parameter is true, the arrow will have two pixel wide edges. Otherwise, the edges will only be one pixel wide. |
[in] | type | parameter indicates the type of arrow to draw. Its value can be SCROLL_ARROW_UP, SCROLL_ARROW_DOWN, SCROLL_ARROW_LEFT or SCROLL_ARROW_RIGHT. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | topShadowP | specifies the Color Descriptor to use when drawing the top shadow |
[in] | bottomShadowP | specifies the Color Descriptor to use when drawing the bottom shadow |
[in] | fillP | is a BSIColorDescr pointer, usually obtained from a DgnPlatform::BSIColorPalette. |
[in] | riP | is only used if fillP is NULL. In that case, it indicates a dialog item from which to get the value of fillP. The foreground color associated with the item is used. |
void mdlDialog_setMonoIconAlphaBlending | ( | MSDialogP | dbP, |
bool | bValue | ||
) |
Sets whether a monochrome icon in this dialog should be drawn using alpha-blending.
int mdlDialog_stringnWidth | ( | MSDialogP | dbP, |
int | fontIndex, | ||
WCharCP | pwString, | ||
size_t | nChars | ||
) |
Returns the width in pixels of the first nChars characters of a string.
[in] | dbP | specifies which Dialog Box the string would be drawn in. |
[in] | fontIndex | parameter specifies the font the string would be drawn in. -1 indicates the font currently associated with the Dialog Box should be used. |
[in] | pwString | Unicode string to measure |
[in] | nChars | number of characters to measure |
int mdlDialog_stringWidth | ( | MSDialogP | dbP, |
int | fontIndex, | ||
WCharCP | pwString | ||
) |
Returns the width in pixels of the specified string.
[in] | dbP | specifies which Dialog Box the string would be drawn in. |
[in] | fontIndex | parameter specifies the font the string would be drawn in. -1 indicates the font currently associated with the Dialog Box should be used. |
[in] | pwString | Unicode string to measure |
void mdlDialog_textDraw | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
BSIRectCP | clipRectP, | ||
WCharCP | pwString, | ||
bool | dimText | ||
) |
Draws the string into a Dialog Box.
[in] | dbP | MSDialog to draw in |
[in] | ptP | parameter specifies the upper left corner of where the text will be drawn. |
[in] | clipRectP | clipping rectangle can be specified with clipRectP, or the value NULL causes the routine to use the Dialog Box's content rectangle. |
[in] | pwString | Unicode string to draw |
[in] | dimText | if it is true, the text is drawn with a "dimmed" appearance. On color screens this is a medium gray color, on monochrome screens the text looks half-toned. If dimText is false, the text is drawn in black. |
void mdlDialog_textDrawCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
BSIRectCP | clipRectP, | ||
WCharCP | pwString, | ||
bool | dimText, | ||
BSIColorDescrCP | foregroundP, | ||
BSIColorDescrCP | backgroundP, | ||
BSIColorDescrCP | dimColorP, | ||
RawItemHdrP | riP | ||
) |
Draws text in a Dialog Box with specific foreground and background colors.
[in] | dbP | is the dialog to draw in. |
[in] | ptP | indicates the position for the text. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | pwString | Unicode string to draw |
[in] | dimText | indicates that the text should be dimmed. |
[in] | foregroundP | specifies the foreground color for the text. |
[in] | backgroundP | specifies the background color for the text. |
[in] | dimColorP | specifies the color to use for dim text. Only valid if dimText is true. |
[in] | riP | is only used if foregroundP or backgroundP is NULL. In that case, it indicates a dialog item from which to get the default foreground or background color. |
void mdlDialog_textDrawN | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
BSIRectCP | clipRectP, | ||
WCharCP | pwString, | ||
bool | dimText, | ||
size_t | nChars | ||
) |
Draws text in a Dialog Box and may be truncated to a maximum length.
[in] | dbP | is the dialog to draw in. |
[in] | ptP | indicates the position for the text. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | pwString | Unicode text to be drawn. |
[in] | dimText | indicates that the text should be dimmed. |
[in] | nChars | number of chars to draw |
void mdlDialog_textDrawNCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
BSIRectCP | clipRectP, | ||
WCharCP | pwString, | ||
bool | dimText, | ||
size_t | nChars, | ||
BSIColorDescrCP | foregroundP, | ||
BSIColorDescrCP | backgroundP, | ||
BSIColorDescrCP | dimColorP, | ||
RawItemHdrP | riP | ||
) |
Draws text in a Dialog Box with specific foreground and background colors and possibly truncates the text to a maximum length.
[in] | dbP | is the dialog to draw in. |
[in] | ptP | indicates the position for the text. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | pwString | Unicode string to draw |
[in] | dimText | indicates that the text should be dimmed. |
[in] | nChars | indicates the maximum number of characters in stringP to draw. |
[in] | foregroundP | specifies the foreground color for the text. |
[in] | backgroundP | specifies the background color for the text. |
[in] | dimColorP | specifies the color to use for dim text. Only valid if dimText is true. |
[in] | riP | is only used if foregroundP or backgroundP is NULL. In that case, it indicates a dialog item from which to get the default foreground or background color. |
int mdlDialog_toDCoord | ( | MSDialogP | dbP, |
int | pixel | ||
) |
Converts a value that is in pixels to the corresponding dialog coordinate units value.
The font currently associated with the Dialog Box is used in the calculation.
[in] | dbP | MSDialog in which conversion takes place |
[in] | pixel | pixel coordinate to convert |
int mdlDialog_toPixels | ( | MSDialogP | dbP, |
int | dialogCoord | ||
) |
Converts a value that is in dialog coordinate units to the corresponding pixel value.
The font currently associated with the Dialog Box is used in the calculation.
[in] | dbP | MSDialog in which conversion takes place |
[in] | dialogCoord | dialog coordianates to convert |
void mdlDialog_underlineDraw | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
WCharCP | pwString, | ||
int | charIndex, | ||
int | fontIndex, | ||
bool | dimLine | ||
) |
Underlines text in a Dialog Box.
[in] | dbP | points to the dialog where the text is to be underlined. |
[in] | ptP | is the position of the text, stringP (not necessarily the underlining). |
[in] | pwString | is the Unicode string of which all or part is to be underlined. |
[in] | charIndex | is the index of the first character in stringP to be underlined. |
[in] | fontIndex | specifies the font being used for the string. Usually this will be FONT_INDEX_DIALOG. |
[in] | dimLine | indicates the type of color to be used for drawing the underline. If true, the default dim color is used, otherwise the default foreground color is used. |
void mdlDialog_underlineDrawCD | ( | MSDialogP | dbP, |
Point2dCP | ptP, | ||
WCharCP | pwString, | ||
int | charIndex, | ||
int | fontIndex, | ||
bool | dimLine, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | foregroundP, | ||
BSIColorDescrCP | dimColorP, | ||
RawItemHdrP | riP | ||
) |
Underlines text in a Dialog Box with a particular color.
[in] | dbP | points to the dialog where the text is to be underlined. |
[in] | ptP | is the position of the text, stringP (not necessarily the underlining). |
[in] | pwString | is the Unicode string of which all or part is to be underlined. |
[in] | charIndex | is the index of the first character in stringP to be underlined. |
[in] | fontIndex | specifies the font being used for the string. Usually this will be FONT_INDEX_DIALOG. |
[in] | dimLine | indicates the type of color to be used for drawing the underline. If true, the dimColorP color descriptor is used, otherwise the foregroundP color descriptor is used. |
[in] | clipRectP | is a clipping rectangle (any drawing outside this rectangle is suppressed). |
[in] | foregroundP | specifies the foreground color for the underlining if the underline is not dim. |
[in] | dimColorP | specifies the color to use for dim underlining. |
[in] | riP | is only used if foregroundP or dimColorP is NULL. In that case, it indicates a dialog item from which to get the default foreground or dimmed color. |
StatusInt mdlVisualStyle_drawToolBarButton | ( | MSDialogP | dbP, |
RawItemHdrP | riP, | ||
BSIRectCP | pRect, | ||
bool | bChecked, | ||
bool | bHot, | ||
bool | bPressed, | ||
BSIColorDescrP | pBgColor | ||
) |
Draws a ToolBar Button using Visual Styles drawing.
[in] | dbP | The MSDialog to draw to |
[in] | riP | The Dialog button item |
[in] | pRect | The bounding rectangle of the button |
[in] | bChecked | Indicates whether the button is checked/selected |
[in] | bHot | Indicates whether the mouse is over the button |
[in] | bPressed | Indicates whether the button is pressed with the mouse |
[in,out] | pBgColor | A pointer to a BSIColorDescr that is filled with information about the background color used when drawing |
bool mdlVisualStyle_isThemeActive | ( | ) |
Determines whether a Windows visual theme is active.