📄 eeb_lowtempcomp.cpp
字号:
#include "eeb_AppWnd.h"
void NANA_LowTempComp::OnCreate(void)
{
NANA_CompressorSet::OnCreate();
int i;
char str[100];
w_EditSuckPres.SetValue(g_SysInfo.w_LowCompSetting.w_fSuckPress);
w_EditSuckAdjRange.SetValue(g_SysInfo.w_LowCompSetting.w_fSuckPressBand);
w_EditStartDelay.SetValue(g_SysInfo.w_LowCompSetting.w_cStartDelay);
w_EditStopDelay.SetValue(g_SysInfo.w_LowCompSetting.w_cStopDelay);
w_pCompressItem = new NANAListIconItem[w_nTotalCompress];
w_CompressorList.w_style = LIST_STYLE_ICON;
for(i=0;i<w_nTotalCompress;i++)
{
sprintf(str,"LT%d\n[正在运行]",i + 1);
w_pCompressItem[i].SetItemText(str);
w_pCompressItem[i].SetItemIcon(ICON32_COMPRESSOR);
w_pCompressItem[i].SetItemFont(&NANA_FONT12);
w_pCompressItem[i].SetItemData(i+1);
w_CompressorList.AddItem((NANAListItemBase *)&w_pCompressItem[i]);
}
}
void NANA_LowTempComp::OnNotify(NANAWnd *pSrcWnd,int nMessageCode,int p1,int p2)
{
NANA_LinkedWnd::OnNotify(pSrcWnd,nMessageCode,p1,p2);
if(&w_EditSuckPres == pSrcWnd)
{
g_SysInfo.w_LowCompSetting.w_fSuckPress = w_EditSuckPres.GetValue();
}else
if(&w_EditSuckAdjRange == pSrcWnd)
{
g_SysInfo.w_LowCompSetting.w_fSuckPressBand = w_EditSuckAdjRange.GetValue();
}else
if(&w_EditStartDelay == pSrcWnd)
{
g_SysInfo.w_LowCompSetting.w_cStartDelay = (char)w_EditStartDelay.GetValue();
}else
if(&w_EditStopDelay == pSrcWnd)
{
g_SysInfo.w_LowCompSetting.w_cStopDelay = (char)w_EditStopDelay.GetValue();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -