main.cpp

来自「sms发送短信的程序」· C++ 代码 · 共 44 行

CPP
44
字号
/*   * Written By S砤womir Szczyrba <steev@hot.pl>  * All rights reserved. No warrenties, use at your own risk.   * This source is distributed under the GNU GENERAL PUBLIC LICENCE,   * see the file "COPYING" for more information.   */#include "SMSGui.h"// Message Map for the SMS Window classFXDEFMAP(SMSWindow) SMSWindowMap[]={ FXMAPFUNC(SEL_NONE, SMSWindow::ID_NONE,SMSWindow::voidfunc ),//________Message_Type_____________________ID____________Message_Handler_______// FXMAPFUNC(SEL_CHANGED, SMSWindow::ID_SMS_ZNAKI,SMSWindow::onNewChar ), FXMAPFUNC(SEL_COMMAND, SMSWindow::ID_SMS_DODAJ,SMSWindow::onCmdNew ), FXMAPFUNC(SEL_COMMAND, SMSWindow::ID_SMS_KONFIG,SMSWindow::onCmdConfig ), FXMAPFUNC(SEL_COMMAND, SMSWindow::ID_SMS_SKASUJ,SMSWindow::onCmdDel ), FXMAPFUNC(SEL_COMMAND, SMSWindow::ID_SMS_ZMIEN,SMSWindow::onCmdEdit ), FXMAPFUNC(SEL_COMMAND, SMSWindow::ID_SMS_OPIS,SMSWindow::onCmdAbout ), FXMAPFUNC(SEL_SELECTED, SMSWindow::ID_SMS_LISTA,SMSWindow::onListChange ), FXMAPFUNC(SEL_DOUBLECLICKED, SMSWindow::ID_SMS_LISTA,SMSWindow::onCmdSend )};// Macro for the SMSApp class hierarchy implementationFXIMPLEMENT(SMSWindow,FXMainWindow,SMSWindowMap,ARRAYNUMBER(SMSWindowMap))// Create and initialize void SMSWindow::create(){ FXuint x,y; config->loadPos(x,y); setX(x); setY(y); FXMainWindow::create(); show(PLACEMENT_VISIBLE);}// Here we beginint main(int argc,char *argv[]){  FXApp  application("SMS","Fox SMS Sender");  application.init(argc,argv);  new SMSWindow(&application);  application.create();  return application.run();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?