BOOL CFormulaDlg::OnInitDialog() { CDialog::OnInitDialog(); Fq=0; UpdateEdit(); return TRUE; }
void InfoDlg::OnBnClickedRadio9() { // TODO: Add your control notification handler code here rOption = 0; UpdateEdit(); }
void CDlgSmooth::OnKillfocusEditTempw() { // 更新 UpdateData(TRUE); // 更新文本框状态 UpdateEdit(); }
void CFormulaDlg::AddForm(int a, int t) { if (Fq>=FORM_MAX_FORM) return; Fs[Fq].Axis=a; Fs[Fq].LinkType=t; Fq++; UpdateEdit(); }
void CDlgSmooth::OnRad3() { // 自定义模板 m_intType = 2; // 更新文本框状态 UpdateEdit(); }
void Command::UpdateGUI(GUIINFO guiInfo) { int dragBorder = guiInfo.dragBorder + guiInfo.bevelWidth + guiInfo.padding; EAEUpdateGUI(commandWnd, guiInfo.windowShadow, pSettings->GetZPosition()); SetWindowPos(commandWnd, NULL, pSettings->GetX(), pSettings->GetY(), pSettings->GetWidth() + (2 * dragBorder), pSettings->GetHeight() + (2 * dragBorder), SWP_NOZORDER); UpdateEdit(guiInfo, pSettings->GetWidth() + (2 * dragBorder), pSettings->GetHeight() + (2 * dragBorder)); SetLayeredWindowAttributes(commandWnd, 0, guiInfo.alphaActive, LWA_ALPHA); }
void CDlgSmooth::OnRad1() { // 3×3平均模板 m_intType = 0; m_iTempH = 3; m_iTempW = 3; m_iTempMX = 1; m_iTempMY = 1; m_fTempC = (FLOAT) (1.0 / 9.0); // 设置模板元素 m_fpArray[0] = 1.0; m_fpArray[1] = 1.0; m_fpArray[2] = 1.0; m_fpArray[3] = 0.0; m_fpArray[4] = 0.0; m_fpArray[5] = 1.0; m_fpArray[6] = 1.0; m_fpArray[7] = 1.0; m_fpArray[8] = 0.0; m_fpArray[9] = 0.0; m_fpArray[10] = 1.0; m_fpArray[11] = 1.0; m_fpArray[12] = 1.0; m_fpArray[13] = 0.0; m_fpArray[14] = 0.0; m_fpArray[15] = 0.0; m_fpArray[16] = 0.0; m_fpArray[17] = 0.0; m_fpArray[18] = 0.0; m_fpArray[19] = 0.0; m_fpArray[20] = 0.0; m_fpArray[21] = 0.0; m_fpArray[22] = 0.0; m_fpArray[23] = 0.0; m_fpArray[24] = 0.0; // 更新文本框状态 UpdateEdit(); // 更新 UpdateData(FALSE); }
void CFormulaDlg::OnBDel() { if (Fq>0) Fq--; UpdateEdit(); }