Available in the LEADTOOLS Imaging toolkit. |
Frame... example for C++ 4.0 and later
This example sets the control's frame properties. For example purposes, both inner and outer bands are turned on. However, normal three-dimensional effects use inner bands or outer bands, but not both.
m_Lead1.SetAutoRepaint(FALSE);
m_Lead1.SetFrameThickness(2);
m_Lead1.SetFrameColor(RGB(0, 0, 0));
m_Lead1.SetFrameInnerStyle(EFX_INNERSTYLE_INSET);
m_Lead1.SetFrameOuterStyle(EFX_OUTERSTYLE_RAISED);
m_Lead1.SetFrameInnerHiliteColor(RGB(255, 255, 0)); // Yellow
m_Lead1.SetFrameInnerShadowColor(RGB(128, 128, 128)); // Dark Gray
m_Lead1.SetFrameOuterHiliteColor(RGB(255, 0, 0)); // Red
m_Lead1.SetFrameOuterShadowColor(RGB(192, 192, 192)); // Light Gray
m_Lead1.SetFrameInnerThickness (3);
m_Lead1.SetFrameOuterThickness (3);
m_Lead1.SetAutoRepaint(TRUE);