这是来自http://www.codeproject.com/staticctrl/digistring.asp 的一个有趣的例子。
IDC_LEDTEXT
, open class-wizard and assign a member variable, type control (CStatic
) to it (m_LedText
for example). #include "digistatic.h"
. Find the line CStatic m_LedText
and replace the CStatic
by CDigiStatic
. OnInitDialog()
you can give it some text with SetText()
, change the colors with SetColor()
or for the background SetBkColor()
. Or, you can set the right style with ModifyDigistyle()
.
文章评论(0条评论)
登录后参与讨论