TimerFun::TimerFun(QWidget *parent) : QWidget(parent), ui(new Ui::TimerFun) { ui->setupUi(this); this->setWindowFlags(Qt::FramelessWindowHint); m_control->whichdialog=11; btimerfuninput=false; QStringList header; header.append(trUtf8("节点名称")); header.append(trUtf8("节点位置")); header.append(trUtf8("短地址")); header.append(trUtf8("MAC位置")); ui->tableWidget->setColumnCount(4); ui->tableWidget->setColumnWidth(0, 146); ui->tableWidget->setColumnWidth(1, 136); ui->tableWidget->setColumnWidth(2, 0); ui->tableWidget->setColumnWidth(3, 0); ui->tableWidget->setHorizontalHeaderLabels(header); ui->tableWidget->setSelectionMode(QAbstractItemView::SingleSelection); SelectDev(); m_text=ui->textEdit; }
BOOL CALLBACK SoftDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { case WM_INITDIALOG: return OnInitSoftDialog(hW); case WM_COMMAND: { switch(LOWORD(wParam)) { case IDC_DISPMODE1: { CheckDlgButton(hW,IDC_DISPMODE2,FALSE); return TRUE; } case IDC_DISPMODE2: { CheckDlgButton(hW,IDC_DISPMODE1,FALSE); return TRUE; } case IDC_DEF1: OnCfgDef1(hW); return TRUE; case IDC_DEF2: OnCfgDef2(hW); return TRUE; case IDC_SELFIX: OnBugFixes(hW); return TRUE; case IDC_KEYCONFIG: OnKeyConfig(hW); return TRUE; case IDC_SELDEV: SelectDev(hW); return TRUE; case IDCANCEL: OnCfgCancel(hW); return TRUE; case IDOK: OnSoftOK(hW); return TRUE; case IDC_CLIPBOARD: OnClipboard(hW); return TRUE; case IDC_RECORDING: OnRecording(hW); return TRUE; } } } return FALSE; }