ufrmEmailAwaked.pas
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:2k
源码类别:

Email服务器

开发平台:

Delphi

  1. unit ufrmEmailAwaked;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5.   Dialogs, cxControls, cxContainer, cxEdit, cxLabel, Menus,
  6.   cxLookAndFeelPainters, StdCtrls, cxButtons, cxListBox, ExtCtrls,
  7.   cxGraphics, cxMemo, cxTextEdit, cxMaskEdit, cxDropDownEdit,
  8.   cxImageComboBox, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinCaramel,
  9.   dxSkinCoffee, {dxSkinDarkRoom,} dxSkinDarkSide, {dxSkinFoggy,}
  10.   dxSkinGlassOceans, dxSkiniMaginary, dxSkinLilian, dxSkinLiquidSky,
  11.   dxSkinLondonLiquidSky, dxSkinMcSkin, dxSkinMoneyTwins,
  12.   dxSkinOffice2007Black, dxSkinOffice2007Blue, dxSkinOffice2007Green,
  13.   dxSkinOffice2007Pink, dxSkinOffice2007Silver, dxSkinPumpkin, {dxSkinSeven,}
  14.   {dxSkinSharp,} dxSkinSilver, {dxSkinSpringTime,} dxSkinStardust,
  15.   dxSkinSummer2008, dxSkinsDefaultPainters, dxSkinValentine,
  16.   dxSkinXmas2008Blue;
  17. type
  18.   TfrmEmailAwaked = class(TForm)
  19.     pnl1: TPanel;
  20.     lblTitle: TcxLabel;
  21.     lblMemo: TcxLabel;
  22.     btn3: TcxButton;
  23.     btn4: TcxButton;
  24.     btn5: TcxButton;
  25.     cb1: TcxImageComboBox;
  26.     lbl1: TcxLabel;
  27.     edMemo: TcxMemo;
  28.     lbl2: TcxLabel;
  29.     procedure FormDestroy(Sender: TObject);
  30.     procedure FormCreate(Sender: TObject);
  31.     procedure btn3Click(Sender: TObject);
  32.     procedure btn4Click(Sender: TObject);
  33.     procedure btn5Click(Sender: TObject);
  34.   private
  35.     { Private declarations }
  36.     FMutex:THandle;
  37.   public
  38.     { Public declarations }
  39.     FEmailAddr,
  40.     FContentFilePath:string;
  41.   end;
  42. var
  43.   frmEmailAwaked: TfrmEmailAwaked;
  44. implementation
  45. {$R *.dfm}
  46. procedure TfrmEmailAwaked.FormDestroy(Sender: TObject);
  47. begin
  48.   FMutex:=CreateMutex(nil,false,'TfrmEmailAwaked_One_Inst');
  49. end;
  50. procedure TfrmEmailAwaked.FormCreate(Sender: TObject);
  51. begin
  52.   CloseHandle(FMutex);
  53. end;
  54. procedure TfrmEmailAwaked.btn3Click(Sender: TObject);
  55. begin
  56.   ModalResult:=mrRetry;
  57. end;
  58. procedure TfrmEmailAwaked.btn4Click(Sender: TObject);
  59. begin
  60.  ModalResult:=mrOk;
  61. end;
  62. procedure TfrmEmailAwaked.btn5Click(Sender: TObject);
  63. begin
  64.   ModalResult:=mrCancel;
  65. end;
  66. end.