Develop and Download Open Source Software

Browse CVS Repository

Annotation of /gikonavigoeson/gikonavi/gikoNavi.dpr

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.16 - (hide annotations) (download)
Thu May 6 15:21:30 2004 UTC (19 years, 11 months ago) by h677
Branch: MAIN
CVS Tags: v1_48_0_510
Changes since 1.15: +1 -1 lines
・皈筵?遙シ・ッ・チ・ァ・テ・ッ、ホア」ハテ、キヒコ、?ニ・ウ・゚・テ・ネ、キ、ニ、キ、゙、テ、ソ、ホ、ヌ。」

1 hi_ 1.1 program gikoNavi;
2    
3     {%ToDo 'gikoNavi.todo'}
4    
5     uses
6 h677 1.16 //Memcheck in 'Memcheck.pas',
7 yoffy 1.14 Windows,
8 hi_ 1.1 SysUtils,
9     Forms,
10     Messages,
11     MainForm in 'MainForm.pas' {MainWindow},
12     Giko in 'Giko.pas' {GikoForm},
13     Splash in 'Splash.pas' {SplashWindow},
14     About in 'About.pas' {AboutDialog},
15     Option in 'Option.pas' {OptionDialog},
16     Editor in 'Editor.pas' {EditorForm},
17     Round in 'Round.pas' {RoundDialog},
18     ListSelect in 'ListSelect.pas' {ListSelectDialog},
19     Search in 'Search.pas' {SearchDialog},
20     GikoSystem in 'GikoSystem.pas',
21     Setting in 'Setting.pas',
22     BoardGroup in 'BoardGroup.pas',
23     SaveFile in 'SaveFile.pas',
24     Sort in 'Sort.pas',
25     ThreadControl in 'ThreadControl.pas',
26     ItemDownload in 'ItemDownload.pas',
27     RoundData in 'RoundData.pas',
28     RoundName in 'RoundName.pas' {RoundNameDialog},
29     NewBoard in 'NewBoard.pas' {NewBoardDialog},
30     Dolib in 'Dolib.pas',
31     UBase64 in 'Encrypt\UBase64.pas',
32     UCryptAuto in 'Encrypt\UCryptAuto.pas',
33     KeySetting in 'KeySetting.pas' {KeySettingForm},
34     FavoriteAdd in 'FavoriteAdd.pas' {FavoriteAddDialog},
35     NewFavoriteFolder in 'NewFavoriteFolder.pas' {NewFavoriteFolderDialog},
36     FavoriteArrange in 'FavoriteArrange.pas' {FavoriteArrangeDialog},
37     Favorite in 'Favorite.pas' {FavoriteDM: TDataModule},
38     AddressHistory in 'AddressHistory.pas' {AddressHistoryDM: TDataModule},
39     Preview in 'Preview.pas',
40     HTMLDocumentEvent in 'HTMLDocumentEvent.pas',
41     Kotehan in 'Kotehan.pas' {KotehanDialog},
42     MonaUtils in 'MonaUtils.pas',
43     HintWindow in 'HintWindow.pas',
44 yoffy 1.2 GikoUtil in 'GikoUtil.pas',
45     ToolBarSetting in 'ToolBarSetting.pas' {ToolBarSettingDialog},
46     ToolBarUtil in 'ToolBarUtil.pas',
47 h677 1.3 YofUtils in 'YofUtils.pas',
48 h677 1.4 AbonUnit in 'AbonUnit.pas',
49 yoffy 1.5 IndividualAbon in 'IndividualAbon.pas' {IndividualAbonForm},
50     Trip in 'Trip.pas',
51 yoffy 1.7 GikoXMLDoc in 'GikoXMLDoc.pas',
52 yoffy 1.8 ExternalBoardManager in 'ExternalBoardManager.pas',
53     ExternalThreadItem in 'ExternalThreadItem.pas',
54     ExternalBoardItem in 'ExternalBoardItem.pas',
55     ExternalBoardPlugInMain in 'ExternalBoardPlugInMain.pas',
56 h677 1.15 ExternalFilePath in 'ExternalFilePath.pas',
57     MojuUtils in 'MojuUtils.pas';
58 hi_ 1.1
59     {$R *.RES}
60     {$R gikoResource.res}
61    
62     var
63     hMutex: THandle;
64     Wnd{, AppWnd}: HWnd;
65     i: Integer;
66     CDS: TCopyDataStruct;
67     const
68     MutexString: string = 'gikoNaviInstance';
69     begin
70     hMutex := OpenMutex(MUTEX_ALL_ACCESS, False, PChar(MutexString));
71     if hMutex <> 0 then begin
72     //?ス~?ス?ス?ス[?スe?スb?スN?スX?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス~
73     Wnd := FindWindow('TGikoForm', nil);
74     if Wnd <> 0 then begin
75     //?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス?ス?スM?スR?スi?スr?ス?ス?スA?スN?スe?スB?スu?ス?ス?ス?ス?スA?スC?スR?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス
76     SetForegroundWindow(Wnd);
77     if IsIconic(Wnd) then
78     SendMessage(Wnd, WM_SYSCOMMAND, SC_RESTORE, -1);
79     // AppWnd := GetWindowLong(Wnd, GWL_HWNDPARENT);
80     // if (AppWnd <> 0) and (IsIconic(AppWnd)) then
81     // SendMessage(AppWnd, WM_SYSCOMMAND, SC_RESTORE, -1);
82    
83     //?ス?ス?スA?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス?ス?スM?スR?スi?スr?ス?ス?ス?ス?ス?ス
84     for i := 1 to ParamCount do begin
85     CDS.dwData := 0;
86     CDS.cbData := Length(ParamStr(i)) + 1;
87     GetMem(CDS.lpData, CDS.cbData);
88     try
89     StrPCopy(CDS.lpData, ParamStr(i));
90     SendMessage(Wnd, WM_COPYDATA, 0, LParam(@CDS));
91     finally
92     FreeMem(CDS.lpData);
93     end;
94     end;
95     end;
96 yoffy 1.6
97 hi_ 1.1 CloseHandle(hMutex);
98     end else begin
99     //?ス~?ス?ス?ス[?スe?スb?スN?スX?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スA?スv?ス?ス?スP?ス[?スV?ス?ス?ス?ス?スN?ス?ス?ス?ス?スs
100     hMutex := CreateMutex(nil, False, PChar(MutexString));
101     Application.Initialize;
102     Application.Title := '?スM?スR?スi?スr';
103     Application.ShowMainForm := False;
104     Application.CreateForm(TMainWindow, MainWindow);
105     Application.CreateForm(TFavoriteDM, FavoriteDM);
106     Application.CreateForm(TAddressHistoryDM, AddressHistoryDM);
107     Application.CreateForm(TGikoForm, GikoForm);
108     Application.Run;
109     ReleaseMutex(hMutex);
110     end;
111     end.
112    

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