int CDfuToolApp::ExitInstance() { SaveParam(); // Shutdown GDI+ subystem // GdiplusShutdown(m_gdiplusToken); return CWinAppEx::ExitInstance(); }
/* * @brief 对外接口,设置组网方案 */ void SetPlcModeuleNo(const int type) { if(type >= NUM_MODULES || type < 0) {//??? PlcModuleNo = 0; } PlcModuleNo = type; ParaUniG.downlink = type; SetSaveParamFlag(SAVFLAG_PARAUNI); SaveParam(); }
void panTaskLogo::OnSpinctrl4TextUpdated( wxCommandEvent& event ) { SaveParam(); }
void panTaskLogo::OnSpinctrl4Updated( wxSpinEvent& event ) { SaveParam(); }
void PlayerParameters::SetPlayerColor(const sf::Color& color, int player) { m_param[player].couleur = color; SaveParam(player); }
void PlayerParameters::SetTouche(const std::string& clef, sf::Keyboard::Key touche, int index) { m_param[index].touches[clef]=touche; SaveParam(index); }
void PlayerParameters::SetPlayerName(const std::string& name, int index) { m_param[index].nom=name; SaveParam(index); }
/************************************************* Function: keymain_proc Descroption: Input: None Output: Return: Other: *************************************************/ static INT8U keytimer_proc(void) { INT8U ret = 0; PKEYSTATE Key = getKeyCode(); if(Key != NULL && Key->State == KEY_DOWN) { switch(Key->Code) { case KEY_CODE_MENU: break; case KEY_CODE_OK: if(mEdit == 1) { mEdit = 0; } else { mEdit = 1; } InvalidateRect(NULL); break; case KEY_CODE_0: case KEY_CODE_1: case KEY_CODE_2: case KEY_CODE_3: case KEY_CODE_4: case KEY_CODE_5: case KEY_CODE_6: case KEY_CODE_7: case KEY_CODE_8: case KEY_CODE_9: InputItem(Key->Code); break; case KEY_CODE_LEFT: if(mEdit == 1) { ChangeItem(0); } break; case KEY_CODE_RIGHT: if(mEdit == 1) { ChangeItem(1); } break; case KEY_CODE_POWER: SaveParam(); GuiBackWindow(GUI_SYS_SETTING); break; default: break; } } return ret; }