⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eeb_midtempcomp.cpp

📁 基于ARM平台的控制系统,自己带有MINIGUI,可以直接在VC下运行界面演示程序
💻 CPP
字号:
#include "eeb_AppWnd.h"

void NANA_MidTempComp::OnCreate(void)
{
    NANA_CompressorSet::OnCreate();
    
    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,"MT%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_MidTempComp::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 + -