Develop and Download Open Source Software

Browse Subversion Repository

Contents of /CopalPro/Dummy.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Thu Jul 28 09:05:52 2011 UTC (12 years, 9 months ago) by kaityo
File MIME type: text/x-c++src
File size: 963 byte(s)
First Commit
1 //---------------------------------------------------------------------------
2 #include <vcl.h>
3 #pragma hdrstop
4
5 #include "Dummy.h"
6 //---------------------------------------------------------------------------
7 #pragma package(smart_init)
8 #pragma resource "*.dfm"
9 TFCopalProMain *FCopalProMain;
10 //---------------------------------------------------------------------------
11 __fastcall TFCopalProMain::TFCopalProMain(TComponent* Owner)
12 : TForm(Owner) {}
13 //---------------------------------------------------------------------------
14 /**
15 * 二重常駐禁止処理により、投げられたメッセージからファイル名を取得
16 */
17 void __fastcall TFCopalProMain::OnFilePost(TMessage &msg) {
18 char ch[256];
19 ATOM atom = (ATOM)msg.WParam;
20
21 if(GlobalGetAtomName(atom,ch,sizeof(ch))) {
22 GlobalDeleteAtom(atom);
23 AnsiString FileName = ch;
24 FMain->FilePost(FileName);
25 }
26 }
27 //---------------------------------------------------------------------------

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26