wb_rgbctl.c
来自「brew暂时是CDMA手机的大头!它的软件很麻烦,要从指定网站才能下载程序.下载」· C语言 代码 · 共 37 行
C
37 行
/******************************************************************************
FILE: WB_RGBCtl.h
SERVICES: AEE RGB Custom Control
GENERAL DESCRIPTION:
This is a custom control which is used to select a numeric value between 0
and 255. It is used by the WhiteBoard application to allow users to
specify Red, Green and Blue color values for drawing shapes.
The control behaves just like an IListCtl, Showing a single selected
entry at a time. Pressing the Up and Down keys increases or decreases
the numeric value. Pressing the Left or Right keys causes an EVT_CTL_TAB
event to be posted. The primary difference between this control and
a IMenuCtl is that a seperate menu item does not need to be created
for each of the 256 possible color values. This provides a significant
memory savings.
The CRGBCtl allows the user to enter two different color values, one
for the fill color and the other the border color. Which value the
control displays depends on the value passed to the CRGBCtl_SetMode
function.
This is NOT a true BREW control. It simply uses an interface that makes
it behave like one. The primary difference between this control
and true BREW controls is that this control is not derived from IControl.
Therefore, special handling is occasionally required when using this control.
PUBLIC CLASSES AND STATIC FUNCTIONS:
Classes:
IDisplay
INITIALIZATION & SEQUENCING REQUIREMENTS:
See Exported Routines
Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?