标题:[讨论]一个变量的定义
取消只看楼主
catliker
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2005-10-21
 问题点数:0 回复次数:0 
[讨论]一个变量的定义
今天看一段代码时看到一个很奇怪的变量定义,其中的flg m_bSettingTime:1;
(flg 是unsigned char)
不知他到底是什么意思,还请各位高人指点。

typedef struct _ClockApp {
AEEApplet a;
AEERect m_rcDisp;
IMenuCtl *m_pMenu;
ITimeCtl *m_pTime;
ClockAppState m_nState;
/*WP826:added by wenli for the alarmclock beep voice changed to MIDI 050708*/
IPhone *m_pPhone;
/*ended by wenli*/
// This is the value (in milliseconds) that will be displayed in the
// Time Control.
uint32 m_dwDispTime;

flg m_bSettingTime:1;
flg m_bActive:1;
flg m_bSuspended:1;
flg m_bHideTime:1;
flg m_bTimerActive:1;
ClockAppCfg m_cfg;
IAlert *m_pAlert;
boolean m_started; // m_started is TRUE if we have
// digital service and the timers for
// this app have been initiated.
#ifdef WORKAROUND_ITIMECTL_AMPM_FONT_BUG
ClockCtl m_clockCtl;
#endif /*WORKAROUND_ITIMECTL_AMPM_FONT_BUG*/
} ClockApp;


先谢过了。

搜索更多相关主题的帖子: 今天 IPhone voice 
2007-08-30 10:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-166444-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.277759 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved