1 | #pragma once
|
---|
2 |
|
---|
3 | #define OEMRESOURCE
|
---|
4 | #define _CRT_SECURE_NO_DEPRECATE //セキュリティ警告を出さない
|
---|
5 | #define _CRT_NONSTDC_NO_DEPRECATE
|
---|
6 | #include <windows.h>
|
---|
7 | #include <stdio.h>
|
---|
8 | #include <string.h>
|
---|
9 | #include <commctrl.h>
|
---|
10 | #include "htmlhelp.h"
|
---|
11 | #include <shlobj.h>
|
---|
12 | #include <zmouse.h>
|
---|
13 | #include <math.h>
|
---|
14 | #include <limits.h>
|
---|
15 | #include <process.h>
|
---|
16 | #include <wininet.h>
|
---|
17 |
|
---|
18 | #include "nkf_class.h"
|
---|
19 | #include "WebSearch.h"
|
---|
20 | #include "ruler.h"
|
---|
21 | #include "TabCtrl.h"
|
---|
22 | #include "ExtensionLink.h"
|
---|
23 | #include "HtmlAnalysis.h"
|
---|
24 | #include "FileTree.h"
|
---|
25 | #include "menu.h"
|
---|
26 | #include "LuxCtrl.h"
|
---|
27 | #include "MdiTextEdit.h"
|
---|
28 | #include "BREGEXP.H"
|
---|
29 | #include "../compiler_x86/CommandValue.h"
|
---|
30 |
|
---|
31 |
|
---|
32 | #include "Attach.h"
|
---|
33 | #include "Debugger.h"
|
---|
34 |
|
---|
35 |
|
---|
36 | #pragma comment(lib, "wininet.lib")
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 | #ifdef THETEXT
|
---|
41 |
|
---|
42 | ////////////////////////////
|
---|
43 | // TheTextのバージョン情報
|
---|
44 | ////////////////////////////
|
---|
45 | #define APPLICATION_NAME "TheText"
|
---|
46 | #define VERSION_APPLI_NAME APPLICATION_NAME
|
---|
47 | #define VERSION_STRING "1.02"
|
---|
48 |
|
---|
49 | #else
|
---|
50 |
|
---|
51 | /////////////////////////////////////////////////
|
---|
52 | // ActiveBasic/ProjectEditorのバージョン情報
|
---|
53 | /////////////////////////////////////////////////
|
---|
54 | #define APPLICATION_NAME "ActiveBasic 5.0"
|
---|
55 | #define VERSION_APPLI_NAME APPLICATION_NAME
|
---|
56 | #define VERSION_STRING "5.0.0.5"
|
---|
57 |
|
---|
58 | #endif
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 | #ifndef IMAGE_FILE_MACHINE_AMD64
|
---|
63 | #define IMAGE_FILE_MACHINE_AMD64 0x8664 // AMD64 (K8)
|
---|
64 | #endif
|
---|
65 |
|
---|
66 |
|
---|
67 | #if defined(JPN)
|
---|
68 |
|
---|
69 | #ifdef THETEXT
|
---|
70 | //TheText日本語
|
---|
71 | #include "../res_TheText/resource.h"
|
---|
72 | #include "common_msg_jpn.h"
|
---|
73 | #else
|
---|
74 | //日本語
|
---|
75 | #include "../res/resource.h"
|
---|
76 | #include "common_msg_jpn.h"
|
---|
77 | #endif
|
---|
78 |
|
---|
79 | #else
|
---|
80 | //英語
|
---|
81 | #include "../res_e/resource.h"
|
---|
82 | #include "common_msg_eng.h"
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | //アイコンリソース
|
---|
86 | #include "../icon_res/resource.h"
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 | #define GENERAL_SIZE 8192
|
---|
92 | #define MAX_ARRAYDIM 16
|
---|
93 |
|
---|
94 | #define MAX_WNDNUM 255
|
---|
95 |
|
---|
96 |
|
---|
97 | #ifdef _AMD64_
|
---|
98 | #else
|
---|
99 | typedef long LONG_PTR;
|
---|
100 | typedef DWORD ULONG_PTR;
|
---|
101 | #endif
|
---|
102 |
|
---|
103 | //ファイルタイプ
|
---|
104 | #define FT_BASICPROGRAM 1
|
---|
105 | #define FT_SUBPROGRAM 2
|
---|
106 | #define FT_TEXT 3
|
---|
107 | #define FT_PROJECT 4
|
---|
108 | #define FT_ICON 5
|
---|
109 | #define FT_HTML 6
|
---|
110 | #define FT_OTHER 0
|
---|
111 |
|
---|
112 | #define BMPNUM_STANDARDTOOLBAR 10 //hDefaultToolbarのビットマップ数
|
---|
113 | #define SEPNUM_STANDARDTOOLBAR 4 //hDefaultToolbarのセパレータ数
|
---|
114 | #define BMPNUM_DEBUGGERTOOLBAR 8 //hDebuggerToolbarのビットマップ数
|
---|
115 | #define SEPNUM_DEBUGGERTOOLBAR 2 //hDebuggerToolbarのセパレータ数
|
---|
116 | #define BMPNUM_RADTOOLBAR 18 //コントロール挿入用ツールバーのビットマップ数(区切り用BMPを最後の1つに用意する)
|
---|
117 | #define SEPNUM_RADTOOLBAR 3 //コントロール挿入用ツールバーのセパレータ数
|
---|
118 |
|
---|
119 | //MDIクライアントウィンドウ下のドキュメントウィンドウタイプ
|
---|
120 | #define WNDTYPE_BASIC 1
|
---|
121 | #define WNDTYPE_TEXT 2
|
---|
122 | #define WNDTYPE_RAD 3
|
---|
123 | #define WNDTYPE_MENU 4
|
---|
124 | #define WNDTYPE_ICONEDIT 5
|
---|
125 | #define WNDTYPE_HTML 6
|
---|
126 |
|
---|
127 | #define IS_DOCUMENT_TEXT(a) (a==WNDTYPE_BASIC||a==WNDTYPE_TEXT||a==WNDTYPE_HTML)
|
---|
128 |
|
---|
129 | #define IS_RETURN(buffer,p) (buffer[p]=='\r'&&buffer[p+1]=='\n')
|
---|
130 | #define IS_BLANK(c) (c==' '||c=='\t')
|
---|
131 |
|
---|
132 | //Rebarコントロールの個数(レバー追加)
|
---|
133 | #define MAX_REBARBANDS 5
|
---|
134 |
|
---|
135 | //RebarコントロールのID(レバー追加)
|
---|
136 | #define ID_DOCCOMBO 1
|
---|
137 | #define ID_STANDARDTOOLBAR 2
|
---|
138 | #define ID_RELEASETOOLBAR 3
|
---|
139 | #define ID_DEBUGGERTOOLBAR 4
|
---|
140 | #define ID_SELECTCOMPILERCOMBO 5
|
---|
141 | #define ID_WEB_SEARCH 6
|
---|
142 |
|
---|
143 | //検索コンボボックスの最大リスト数
|
---|
144 | #define MAX_FINDLIST 20
|
---|
145 |
|
---|
146 | #define ID_FIRSTCHILD 100
|
---|
147 |
|
---|
148 |
|
---|
149 | //タブカラー
|
---|
150 | #define TABCOLOR_GRAY RGB(230,230,230) //灰色
|
---|
151 | #define TABCOLOR_WHITE RGB(255,255,255) //白
|
---|
152 | #define TABCOLOR_RED RGB(255,200,200) //赤
|
---|
153 | #define TABCOLOR_GREEN RGB(200,255,200) //緑
|
---|
154 | #define TABCOLOR_BLUE RGB(200,220,255) //青
|
---|
155 | #define TABCOLOR_YELLOW RGB(255,255,180) //黄色
|
---|
156 |
|
---|
157 |
|
---|
158 | #define WM_RESETCARETPOS WM_USER+80 //オートスクロールスレッドからのキャレット設定
|
---|
159 |
|
---|
160 | #define WM_SEARCH_TAB_CREATE WM_USER+90 //Web検索のタブアイテムの生成メッセージ
|
---|
161 | #define WM_SEARCH_TAB_CLOSE WM_USER+91 //Web検索のタブアイテムの破棄メッセージ
|
---|
162 |
|
---|
163 | //SideWeb
|
---|
164 | #define WM_BROWS_CREATE WM_USER+100
|
---|
165 | #define WM_BROWS_DESTROY WM_USER+101
|
---|
166 | #define WM_BROWS_GO WM_USER+102
|
---|
167 | #define WM_BROWS_NAVI WM_USER+103
|
---|
168 |
|
---|
169 |
|
---|
170 |
|
---|
171 | #define MAX_HASH 32768
|
---|
172 |
|
---|
173 |
|
---|
174 | //////////////////////////////////
|
---|
175 | // メインウィンドウのタイマーID
|
---|
176 |
|
---|
177 | #define ID_TIMER_BACKUP 10
|
---|
178 | #define ID_DEBUGSAFTY 20
|
---|
179 |
|
---|
180 | // ここまで
|
---|
181 | //////////////////////////////////
|
---|
182 |
|
---|
183 |
|
---|
184 |
|
---|
185 | extern HANDLE hHeap;
|
---|
186 | extern HINSTANCE hInst,hResInst,hIconResInst;
|
---|
187 | extern HWND hOwner;
|
---|
188 | extern HWND hClient;
|
---|
189 | extern int ScreenX,ScreenY;
|
---|
190 | extern char pj_editor_Dir[MAX_PATH];
|
---|
191 |
|
---|
192 |
|
---|
193 | //アルファブレンド用のAPI
|
---|
194 | #define WS_EX_LAYERED 0x00080000
|
---|
195 | #define LWA_ALPHA 0x00000002
|
---|
196 | typedef BOOL (WINAPI *FWINLAYER)(HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags );
|
---|
197 |
|
---|
198 |
|
---|
199 |
|
---|
200 | //新規プロジェクトのベース
|
---|
201 | #define BASE_VOID 0
|
---|
202 | #define BASE_PROMPT 1
|
---|
203 | #define BASE_NORMAL 2
|
---|
204 |
|
---|
205 | struct POINTANDSIZE{
|
---|
206 | POINT pos;
|
---|
207 | SIZE size;
|
---|
208 | };
|
---|
209 |
|
---|
210 |
|
---|
211 |
|
---|
212 | //////////////////////////////////////////
|
---|
213 | // リソース ヘッダ(アイコン、カーソル用)
|
---|
214 | typedef struct{
|
---|
215 | WORD idReserved;
|
---|
216 | WORD idType;
|
---|
217 | WORD idCount;
|
---|
218 | }ICONDIR,CURSORDIR;
|
---|
219 |
|
---|
220 | ////////////////////////////
|
---|
221 | //.icoファイルのヘッダ情報
|
---|
222 | struct ICONDIRENTRY{
|
---|
223 | BYTE bWidth;
|
---|
224 | BYTE bHeight;
|
---|
225 | BYTE bColorCount;
|
---|
226 | BYTE bReserved;
|
---|
227 | WORD wPlanes;
|
---|
228 | WORD wBitCount;
|
---|
229 | DWORD dwBytesInRes;
|
---|
230 | DWORD dwImageOffset;
|
---|
231 | };
|
---|
232 |
|
---|
233 |
|
---|
234 | /////////////////////
|
---|
235 | //MDIウィンドウ情報
|
---|
236 |
|
---|
237 | #define MAX_UNDONUM 300//512未完成
|
---|
238 | #define MAX_ICONEDIT_UNDONUM 32
|
---|
239 |
|
---|
240 | #define TEXTEDIT_UNDO_KEY 1
|
---|
241 | #define TEXTEDIT_UNDO_PASTE 2
|
---|
242 | #define TEXTEDIT_UNDO_SELKEY 3
|
---|
243 | struct TEXTEDIT_UNDOSTATE{
|
---|
244 | int NowPos;
|
---|
245 | int Command[MAX_UNDONUM];
|
---|
246 | char *KeyStr[MAX_UNDONUM];
|
---|
247 | char *DelStr[MAX_UNDONUM];
|
---|
248 | CHARRANGE Range[MAX_UNDONUM];
|
---|
249 | CHARRANGE DelRange[MAX_UNDONUM];
|
---|
250 | };
|
---|
251 |
|
---|
252 | struct RAD_UNDOSTATE_NAME{
|
---|
253 | std::string name;
|
---|
254 | };
|
---|
255 | #define RAD_UNDO_INSERTWND 1
|
---|
256 | #define RAD_UNDO_DELETEWND 2
|
---|
257 | #define RAD_UNDO_INSERTITEM 3
|
---|
258 | #define RAD_UNDO_DELETEITEM 4
|
---|
259 | #define RAD_UNDO_NAME 5
|
---|
260 | #define RAD_UNDO_CAPTION 6
|
---|
261 | #define RAD_UNDO_FONT 7
|
---|
262 | #define RAD_UNDO_BGCOLOR 8
|
---|
263 | #define RAD_UNDO_WINDOWMENU 9
|
---|
264 | #define RAD_UNDO_ICONRES 10
|
---|
265 | #define RAD_UNDO_STYLE 11
|
---|
266 | #define RAD_UNDO_EXSTYLE 12
|
---|
267 | #define RAD_UNDO_POSITION 13
|
---|
268 | #define RAD_UNDO_IMAGESTATE 14
|
---|
269 | #define RAD_UNDO_TYPE 15
|
---|
270 | struct RAD_UNDOSTATE{
|
---|
271 | int NowPos;
|
---|
272 | int Command[MAX_UNDONUM];
|
---|
273 | int SelectItemNum[MAX_UNDONUM];
|
---|
274 | DWORD lpdwData[MAX_UNDONUM];
|
---|
275 | };
|
---|
276 |
|
---|
277 | #define MAX_RAD_SELITEM 255
|
---|
278 | struct MDIRADINFO{
|
---|
279 | //Radツール用
|
---|
280 |
|
---|
281 | HWND hTools;
|
---|
282 |
|
---|
283 | HWND hProperty;
|
---|
284 | HWND hProp_Dlg;
|
---|
285 |
|
---|
286 | HWND hSupport;
|
---|
287 |
|
---|
288 | HWND hRad;
|
---|
289 |
|
---|
290 | HBITMAP hBitmap;
|
---|
291 | HBITMAP hOldBitmap;
|
---|
292 | HDC hMemDC;
|
---|
293 | int SelectingItem[MAX_RAD_SELITEM];
|
---|
294 | int ButtonSelect;
|
---|
295 |
|
---|
296 | //ウィンドウクライアント領域
|
---|
297 | POINT ClientPos;
|
---|
298 | SIZE ClientSize;
|
---|
299 |
|
---|
300 | //変更情報
|
---|
301 | RAD_UNDOSTATE undo;
|
---|
302 | };
|
---|
303 |
|
---|
304 | struct MDIMENUINFO{
|
---|
305 | HWND hList;
|
---|
306 | HWND hMenuEdit;
|
---|
307 | HWND hEdit_Dlg;
|
---|
308 | };
|
---|
309 |
|
---|
310 | #define ICONTYPE_16_16 0
|
---|
311 | #define ICONTYPE_16_256 1
|
---|
312 | #define ICONTYPE_32_16 2
|
---|
313 | #define ICONTYPE_32_256 3
|
---|
314 | struct ICONEDIT_UNDOSTATE{
|
---|
315 | int NowPos;
|
---|
316 | BYTE *lpData[MAX_ICONEDIT_UNDONUM];
|
---|
317 | };
|
---|
318 | struct MDIICONEDITINFO{
|
---|
319 | HWND hMain;
|
---|
320 | HWND hToolDlg;
|
---|
321 | HWND hButtonsDlg;
|
---|
322 | HWND hColorDlg;
|
---|
323 |
|
---|
324 | HDC memdc;
|
---|
325 | HBITMAP hMemBmp;
|
---|
326 |
|
---|
327 | HBITMAP hSelectingBmp;
|
---|
328 | int SelectLevel;
|
---|
329 | RECT DraggingRect;
|
---|
330 |
|
---|
331 | int num;
|
---|
332 | int SelectIconNum;
|
---|
333 | union{
|
---|
334 | BYTE *pIconImage[8]; //アイコンのイメージデータ配列(マップ配列、カラー配列、マスク配列)
|
---|
335 | BITMAPINFOHEADER *pBmpHdr[8];
|
---|
336 | };
|
---|
337 | DWORD dwBytesInRes[8];
|
---|
338 |
|
---|
339 | DWORD NowTool;
|
---|
340 | COLORREF MainColor;
|
---|
341 | COLORREF SubColor;
|
---|
342 |
|
---|
343 | ICONEDIT_UNDOSTATE undo[8];
|
---|
344 | BOOL bModify;
|
---|
345 | };
|
---|
346 |
|
---|
347 | struct MDIINFO{
|
---|
348 | HWND hwnd;
|
---|
349 | int DocType;
|
---|
350 | std::string title;
|
---|
351 | std::string path;
|
---|
352 |
|
---|
353 | union{
|
---|
354 | MDIRADINFO *MdiRadInfo;
|
---|
355 | MDIMENUINFO *MdiMenuInfo;
|
---|
356 | MDIICONEDITINFO *MdiIconEditInfo;
|
---|
357 | CMdiTextEdit *pMdiTextEdit;
|
---|
358 | };
|
---|
359 |
|
---|
360 | char *IndentStr;
|
---|
361 | };
|
---|
362 | extern std::vector<MDIINFO *> MdiInfo;
|
---|
363 |
|
---|
364 | //RADツールのマウスドラッグ
|
---|
365 | #define FRAME_CHANGEPOS_START 1 //----- ここから -----
|
---|
366 | #define FRAME_UPPER_LEFT 1
|
---|
367 | #define FRAME_UPPER_RIGHT 2
|
---|
368 | #define FRAME_LOWER_LEFT 3
|
---|
369 | #define FRAME_LOWER_RIGHT 4
|
---|
370 | #define FRAME_LEFT 5
|
---|
371 | #define FRAME_RIGHT 6
|
---|
372 | #define FRAME_UPPER 7
|
---|
373 | #define FRAME_LOWER 8
|
---|
374 | #define FRAME_INSIDE 9
|
---|
375 | #define FRAME_CHANGEPOS_END 9 //----- ここまで -----
|
---|
376 | #define ITEM_MAKING 10
|
---|
377 | #define SELECTING_FRAME 11
|
---|
378 |
|
---|
379 | //アイテムの大きさの限界値
|
---|
380 | #define MIN_ITEM_X 12
|
---|
381 | #define MIN_ITEM_Y 9
|
---|
382 |
|
---|
383 | //選択アイテム
|
---|
384 | #define SELECT_WINDOW -1
|
---|
385 | #define NON_TOOL -1
|
---|
386 |
|
---|
387 | struct RADINFO{
|
---|
388 | int NowDragging;
|
---|
389 | POINT DragStartPos;
|
---|
390 | RECT DragStartRect[MAX_RAD_SELITEM];
|
---|
391 | RECT DraggingRect[MAX_RAD_SELITEM];
|
---|
392 | RECT OldDraggingRect[MAX_RAD_SELITEM];
|
---|
393 | };
|
---|
394 |
|
---|
395 |
|
---|
396 | //////////////////
|
---|
397 | //リソース情報
|
---|
398 | extern HTREEITEM hCursorTreeItemForProjectView;
|
---|
399 | extern HTREEITEM hBitmapTreeItemForProjectView;
|
---|
400 | extern HTREEITEM hIconTreeItemForProjectView;
|
---|
401 |
|
---|
402 |
|
---|
403 | ////////////////////
|
---|
404 | //プロジェクト情報
|
---|
405 |
|
---|
406 | #define PROJECT_VERSION 10
|
---|
407 |
|
---|
408 | struct PROCINFO{
|
---|
409 | char *name;
|
---|
410 | HTREEITEM hTreeItem;
|
---|
411 |
|
---|
412 | HTREEITEM hFileTreeItem;
|
---|
413 |
|
---|
414 | int code_pos;
|
---|
415 | };
|
---|
416 | struct INCPROCINFO{
|
---|
417 | char *name;
|
---|
418 | char *Parms;
|
---|
419 | char *type;
|
---|
420 | };
|
---|
421 |
|
---|
422 | //ダイアログアイテムの種類
|
---|
423 | #define CT_BUTTON 1
|
---|
424 | #define CT_CHECKBOX 2
|
---|
425 | #define CT_COMBOBOX 3
|
---|
426 | #define CT_EDIT 4
|
---|
427 | #define CT_GROUPBOX 5
|
---|
428 | #define CT_HSCROLLBAR 6
|
---|
429 | #define CT_IMAGEBOX 7
|
---|
430 | #define CT_LISTBOX 8
|
---|
431 | #define CT_LISTVIEW 9
|
---|
432 | #define CT_RADIOBUTTON 10
|
---|
433 | #define CT_STATIC 11
|
---|
434 | #define CT_TREEVIEW 12
|
---|
435 | #define CT_VSCROLLBAR 13
|
---|
436 | #define CT_UPDOWN 14
|
---|
437 | #define CT_PROGRESSBAR 15
|
---|
438 | #define CT_TRACKBAR 16
|
---|
439 | #define CT_MENU 99
|
---|
440 |
|
---|
441 | //イベント タイプ
|
---|
442 | #define EVENTTYPE_DEFAULT 0
|
---|
443 | #define EVENTTYPE_MENU 1
|
---|
444 | #define EVENTTYPE_MMSYS 2
|
---|
445 |
|
---|
446 |
|
---|
447 | struct NEWPROJECTINFO{
|
---|
448 | char name[MAX_PATH];
|
---|
449 | DWORD dwTypeID;
|
---|
450 | _int8 ShowHelloWorld;
|
---|
451 | DWORD dwOption;
|
---|
452 | };
|
---|
453 | struct MENU_INFO{
|
---|
454 | char *IdName;
|
---|
455 | char *caption;
|
---|
456 | UINT type;
|
---|
457 | UINT state;
|
---|
458 |
|
---|
459 | int NumberOfMenu;
|
---|
460 | MENU_INFO *pMenuInfo;
|
---|
461 |
|
---|
462 | HTREEITEM hTreeItem;
|
---|
463 | };
|
---|
464 | #define MT_EXE 0 //EXEモジュールタイプ
|
---|
465 | #define MT_DLL 1 //DLLモジュールタイプ
|
---|
466 | #define MT_SLL 2 //SLLモジュールタイプ
|
---|
467 | #define PJ_OP_SOURCE_MASK 0x00FFFFFF
|
---|
468 | #define PJ_OP_MMSYSTEM 0x00000001
|
---|
469 | #define PJ_OP_COMMCTRL 0x00000002
|
---|
470 | #define PJ_OP_RICHEDIT 0x00000004
|
---|
471 | #define PJ_OP_WINSOCK 0x00000008
|
---|
472 | #define PJ_OP_STRICT 0x00010000 // #strictディレクティブは今は使われていない
|
---|
473 | #define PJ_OP_RC_MANIFEST 0x00020000
|
---|
474 | #define PJ_OP_UNICODE 0x00040000
|
---|
475 |
|
---|
476 |
|
---|
477 |
|
---|
478 | struct SAVEREBAR{
|
---|
479 | int RebarID;
|
---|
480 | int RebarLength;
|
---|
481 | int IsBandBreak;
|
---|
482 | };
|
---|
483 |
|
---|
484 | struct ITEMEVENTINFO{
|
---|
485 | char *IdName;
|
---|
486 | char **pEventNames;
|
---|
487 | int ClassID;
|
---|
488 | int EventNum;
|
---|
489 | };
|
---|
490 |
|
---|
491 | #define PARAMETER_HINT_MAX_SIZE 8192
|
---|
492 | struct METHODCHECKINFO{
|
---|
493 | HWND hWnd;
|
---|
494 | LOGFONT LogFont;
|
---|
495 | HFONT hFont;
|
---|
496 | HFONT hBoldFont;
|
---|
497 | char BeforeMethodName[VN_SIZE];
|
---|
498 | char msg[PARAMETER_HINT_MAX_SIZE];
|
---|
499 | int ParmNum;
|
---|
500 | int HeadPos;
|
---|
501 | };
|
---|
502 |
|
---|
503 |
|
---|
504 | /////////////////////
|
---|
505 | // コード補完機能
|
---|
506 | /////////////////////
|
---|
507 |
|
---|
508 | #define ACCESS_NON 0
|
---|
509 | #define ACCESS_PRIVATE 1
|
---|
510 | #define ACCESS_PUBLIC 2
|
---|
511 | #define ACCESS_PROTECTED 3
|
---|
512 | #define ACCESS_PAIRCOMMAND 4
|
---|
513 | #define ACCESS_HTML_GENERAL_PARAM 5
|
---|
514 | #define ACCESS_HTML_PARAM 6
|
---|
515 | struct MEMBERINFO{
|
---|
516 | //クラス名
|
---|
517 | char *pName;
|
---|
518 | DWORD dwProc;
|
---|
519 | DWORD dwAccess;
|
---|
520 |
|
---|
521 | int code_pos;
|
---|
522 | };
|
---|
523 | struct COMPLEMENT_WINDOW_INFO{
|
---|
524 | HWND hWnd;
|
---|
525 | HWND hList;
|
---|
526 |
|
---|
527 | int iPos;
|
---|
528 | int iLength;
|
---|
529 |
|
---|
530 | MEMBERINFO *pMemberInfo;
|
---|
531 | int MemberNum;
|
---|
532 |
|
---|
533 | //ペアステートメントのインデント格納用
|
---|
534 | char szIndent[255];
|
---|
535 | };
|
---|
536 |
|
---|
537 |
|
---|
538 |
|
---|
539 | class CSettingFile{
|
---|
540 | BOOL GetDataLine(const char *name,char *parms);
|
---|
541 | protected:
|
---|
542 | char *buffer;
|
---|
543 |
|
---|
544 | BOOL GetWholeValue(const char *name,int *pi32data);
|
---|
545 | bool GetBoolean( const char *name,bool &b );
|
---|
546 | BOOL Get3WholeValue(char *name,int *pd1,int *pd2,int *pd3);
|
---|
547 | BOOL GetRGBValue(char *name,COLORREF *prgb);
|
---|
548 | BOOL GetStringValue(char *name,char *str);
|
---|
549 | BOOL GetRectValue(char *name,RECT *prc);
|
---|
550 | BOOL GetLogFont(char *name,LOGFONT *plf);
|
---|
551 | BOOL GetRebarBand(SAVEREBAR *psr,int num);
|
---|
552 |
|
---|
553 | void SetWholeValue( const char *name,long i32data);
|
---|
554 | void SetBoolean( const char *name,bool b);
|
---|
555 | void Set3WholeValue(char *name,long d1,long d2,long d3);
|
---|
556 | void SetRGBValue(char *name,COLORREF rgb);
|
---|
557 | void SetStringValue(char *name,char *str);
|
---|
558 | void SetRectValue(char *name,RECT *prc);
|
---|
559 | void SetLogFont(char *name,LOGFONT *plf);
|
---|
560 | void SetRebarBand(SAVEREBAR *psr,int num);
|
---|
561 | };
|
---|
562 | #include "DesignTheme.h"
|
---|
563 |
|
---|
564 |
|
---|
565 |
|
---|
566 | //ProjectEditor.cpp
|
---|
567 | void HeapDefaultFree(LPVOID lpMem);
|
---|
568 | void ToBigChar(char str[]);
|
---|
569 | int GetWndNum(HWND hChild);
|
---|
570 | int GetNowWndNum(void);
|
---|
571 | void SendTextEditResizeEvent(HWND hwnd);
|
---|
572 | void RedrawAllWindow(void);
|
---|
573 | int DocumentModifyCheck(HWND hChild);
|
---|
574 | void SetStatusText(char *MenuText);
|
---|
575 | void ResetState_UndoMenu(void);
|
---|
576 | void ResetState_EditMenu(void);
|
---|
577 | void ResetState_DocMenu(void);
|
---|
578 | void DuplicateTitleCheck(char *lpszTitle);
|
---|
579 | HWND NewTextEditWindow(char *filepath,_int8 DocumentType,COLORREF TabColor=TABCOLOR_GRAY);
|
---|
580 | void CloseDocWindow(int WndNum);
|
---|
581 | void ResizeTextEditWnd(HWND hwnd,int cx,int cy);
|
---|
582 | #define FLAG_DBLCLK 1
|
---|
583 | #define FLAG_BEAMCURSOR 2
|
---|
584 | int RegWndClass(WNDPROC WndProc,char *lpClassName,HBRUSH hBackBrush,DWORD dwFlag);
|
---|
585 |
|
---|
586 | //Backup.cpp
|
---|
587 | void CreateBackupDir(void);
|
---|
588 | void backup(void *dummy);
|
---|
589 | BOOL restore(void);
|
---|
590 |
|
---|
591 | //DialogBoxes.cpp
|
---|
592 | void SetPosCenter(HWND hParent,HWND hwnd);
|
---|
593 | void SetPosCenter(HWND hwnd);
|
---|
594 | BOOL SetFontDialog(HWND hwnd,LOGFONT *lf,BOOL bFixedPitchOnly,int *lpiPointSize=0);
|
---|
595 | void DlgNewProjectWizard(HWND hwnd);
|
---|
596 | BOOL CALLBACK DlgNewFile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
597 | void DlgProjectOptionSetting(HWND hwnd);
|
---|
598 | void DlgOptionSetting(HWND hwnd);
|
---|
599 | BOOL CALLBACK DialogAbout(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
600 |
|
---|
601 | //FileOperation.cpp
|
---|
602 | void MakeUserSettingDir(void);
|
---|
603 | char *ReadBuffer( const std::string &path );
|
---|
604 | char *ReadBuffer_NonErrMsg( const std::string &path );
|
---|
605 | _int8 WriteBuffer(const std::string &path,const char *buffer,int length, bool isEnableError = true);
|
---|
606 | _int8 WriteBuffer_NonErrMsg(const std::string &path,char *buffer,int length);
|
---|
607 | void GetRelationalPath(char *path,char *dir);
|
---|
608 | void GetFullPath(char *path,const char *dir);
|
---|
609 | void RemoveDirectoryStrong(const char *dirPath);
|
---|
610 | BOOL GetFilePathDialog(HWND hwnd,char *filename,LPSTR Filter,LPSTR Title,_int8 IsOpen);
|
---|
611 | BOOL GetFolder(HWND hWnd,char *folder,char *OpenFolderTitle);
|
---|
612 | int GetFileExtension( const char *path );
|
---|
613 | HWND OpenFileWithExtension( const std::string &filePath );
|
---|
614 | BOOL SaveDocument(HWND hChild,char *SaveFileName);
|
---|
615 | BOOL ShortPathToLongPath(char ShortPath[MAX_PATH],char *LongPath);
|
---|
616 | bool IsExistFile( const char *FilePath );
|
---|
617 | bool IsExistDirectory( const char *DirPath );
|
---|
618 |
|
---|
619 | //rebar.cpp
|
---|
620 | #define MAX_BAND 255
|
---|
621 | typedef HWND (*AddBandProc)(HWND hRebar,int num,char *lpszText);
|
---|
622 | class CDBRebarBand{
|
---|
623 | int BandId[MAX_BAND];
|
---|
624 | AddBandProc pAddProc[MAX_BAND];
|
---|
625 | int iMaxBandNum;
|
---|
626 | public:
|
---|
627 | HWND hRebar;
|
---|
628 | CDBRebarBand();
|
---|
629 | ~CDBRebarBand();
|
---|
630 | void add(int band_id,AddBandProc add_proc);
|
---|
631 | HWND call_add(int band_id,int num,char *lpszText);
|
---|
632 | };
|
---|
633 | class CMainRebar{
|
---|
634 | CDBRebarBand *pobj_DBRebarBand;
|
---|
635 |
|
---|
636 | void SetupRebar(HWND hwnd);
|
---|
637 | public:
|
---|
638 | HWND hParent;
|
---|
639 | HWND hRebar;
|
---|
640 |
|
---|
641 | CMainRebar(HWND hwnd_parent);
|
---|
642 | ~CMainRebar();
|
---|
643 |
|
---|
644 | void ResetInitRebar();
|
---|
645 | void ResetRebar();
|
---|
646 | void SaveRebarState(void);
|
---|
647 | void ChangeRebarBand(int BandID);
|
---|
648 | void menu_popup(HWND hwnd,int PosX,int PosY);
|
---|
649 | };
|
---|
650 | extern CMainRebar *pobj_Rebar;
|
---|
651 | void ResetRebarData(void);
|
---|
652 | LRESULT CALLBACK DefaultToolbarProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
653 | LRESULT CALLBACK DocComboProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
654 | LRESULT CALLBACK DebuggerToolbarProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
655 |
|
---|
656 | //SubOperation.cpp
|
---|
657 | void ScreenToClient(HWND hwnd,RECT *pRect);
|
---|
658 | void ClientToScreen(HWND hwnd,RECT *pRect);
|
---|
659 | BOOL IsWow64(void);
|
---|
660 | void URLEncode(LPSTR pszSrc);
|
---|
661 | void Digit(int num,char *buffer);
|
---|
662 | void RectNaturalFormat(RECT *ReadRect,RECT *CopyRect);
|
---|
663 | void RectNaturalFormat(int *x1,int *y1,int *x2,int *y2);
|
---|
664 | void KillSpaces(char *str1,char *str2);
|
---|
665 | void RemoveStringQuotes(char *str);
|
---|
666 | void SlideString(char *str,int slide);
|
---|
667 | void SlideBuffer(char *buffer,int length,int slide);
|
---|
668 | BOOL IsVariableTopChar(char c);
|
---|
669 | BOOL IsVariableChar(char c);
|
---|
670 | BOOL IsCommandBackDelimitation(char *buffer,int pos);
|
---|
671 | BOOL IsCommandDelimitation(char *buffer,int p);
|
---|
672 | char *ComparisonString( char *str1, char *str2, bool isBigSmall, bool isWordUnit );
|
---|
673 | int GetOneParameter(char *Parameter,int pos,char *retAns);
|
---|
674 | int GetStringInPare(char *buffer,char *ReadBuffer);
|
---|
675 | int GetStringInBracket(char *buffer,char *ReadBuffer);
|
---|
676 | void JumpBlank(char *pBuf,int *piPos);
|
---|
677 | BOOL CheckParenthesis(char *buffer);
|
---|
678 | DWORD GetValue(char *value);
|
---|
679 | BOOL IsManagementCommand(int ComNum);
|
---|
680 | int IsBasicReservedWord(char *str);
|
---|
681 | HBITMAP CreateGradationBitmap(SIZE *pSize,COLORREF color1,COLORREF color2);
|
---|
682 | HBITMAP CreateVertGradationBitmap(SIZE *pSize,COLORREF color1,COLORREF color2);
|
---|
683 | HBITMAP CreateHorzGradationBitmap(SIZE *pSize,COLORREF color1,COLORREF color2);
|
---|
684 | HICON CreateGrayIcon(HICON hBaseIcon);
|
---|
685 | void GetSize(SIZE *pSize,RECT *pRect);
|
---|
686 | BOOL HitTest(RECT *pRect,POINT *pPos);
|
---|
687 | BOOL Rectangle(HDC hdc,RECT *pRect);
|
---|
688 | void ComboBox_SetSelText(HWND hCombo,char *lpszText);
|
---|
689 | void SetCursorByState(int state);
|
---|
690 | void SetTextEditColorDesign(TEXTEDIT_COLOR_INFO *pColorInfo,CTheme *pobj_Theme,BOOL bRedraw);
|
---|
691 | BOOL SetupProjectEditor(void);
|
---|
692 | void EndProjectEditor(void);
|
---|
693 | BOOL SetRunning(HWND hChild);
|
---|
694 | BOOL IsNeedCompile( const std::string &filepath, BOOL bDebug );
|
---|
695 | std::string GetLastErrorString();
|
---|
696 |
|
---|
697 | //DocumentAdvice.cpp
|
---|
698 | void MenuAdvice(WPARAM msg);
|
---|
699 | void ShowToolTipText(LPTOOLTIPTEXT TipText);
|
---|
700 | char *IncludeFiles(char *buffer);
|
---|
701 | void AddParameterHints_ToProject(char *path);
|
---|
702 |
|
---|
703 |
|
---|
704 |
|
---|
705 | /////////////////////
|
---|
706 | // テキスト エディタ
|
---|
707 | /////////////////////
|
---|
708 |
|
---|
709 | #define CONTROL_TAB_SPACE_DEFAULT 10 //エディタ画面左端のコントロールタブ(通常)
|
---|
710 |
|
---|
711 | //DrawBuffer.cpp
|
---|
712 | void TextEdit_DrawBuffer(HDC hdc,int WndNum);
|
---|
713 |
|
---|
714 | //TextEditor.cpp
|
---|
715 | int GetControlTabSpace(int WndNum,int *piCount=0);
|
---|
716 | void ResetTextEditFont(HWND hwnd);
|
---|
717 | void SetTextEditWordColor(int WndNum);
|
---|
718 | BOOL IsHiragana(char *pBuf);
|
---|
719 | BOOL IsAlphabet(char c);
|
---|
720 | BOOL IsReturnCode(char *pBuf);
|
---|
721 | void ResetScrollbar(int WndNum,int max_x,int max_y);
|
---|
722 | #define WORDCARET_BEFORE 1
|
---|
723 | #define WORDCARET_AFTER 2
|
---|
724 | void TextEdit_GetWordCaret(HWND hwnd,int WndNum,POINT *pPos,int *piStart,int *piEnd,BOOL bBeforeAfterFlag);
|
---|
725 | void CancelBeforeAutoIndent(int WndNum);
|
---|
726 | LRESULT CALLBACK TextEditProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
727 |
|
---|
728 | //Caret.cpp
|
---|
729 | BOOL IsRightTurn(char *pBuf,int i,int now_x);
|
---|
730 | int GetBufferIndexFromCaretPos(char *pBuf,int now_x,int now_y);
|
---|
731 | void GetCaretPosFromBufferIndex(char *pBuf,int index,POINT *pCaretPos);
|
---|
732 | void TextEdit_GetSel(int WndNum,CHARRANGE *pCharRange);
|
---|
733 | void TextEdit_GetSelText(int WndNum,CHARRANGE *pCharRange,char *buffer);
|
---|
734 | void GetScrollBaseCaretPos(MDIINFO *pMdiInfo,int *pNaturalBaseX,int *pNaturalBaseY);
|
---|
735 | void GetNaturalBaseCaretPos(int WndNum,int *pScrollBaseX,int *pScrollBaseY);
|
---|
736 | void TextEdit_SetSel(int WndNum,int StartIndex,int EndIndex,BOOL bShowCenter=0);
|
---|
737 | void TextEdit_SelectOneLine(int WndNum,int code_pos,BOOL bShowCenter=0);
|
---|
738 | void ResetCaretPos(int WndNum,BOOL bInputAndReset=0);
|
---|
739 | BOOL TextEdit_ScrollCaret(int WndNum,BOOL bScrollOneStep_x,BOOL bShowCenter=0);
|
---|
740 | void CaretPos_LooseToNatural(int WndNum,int loose_x,int loose_y,POINT *pCaretPos);
|
---|
741 | void GetNaturalCaretPos_Click(int WndNum,int mouse_x,int mouse_y,POINT *pCaretPos);
|
---|
742 | void GetNaturalCaretPos_Left(int WndNum);
|
---|
743 | void GetNaturalCaretPos_Right(int WndNum,POINT *pCaretPos);
|
---|
744 | void GetNaturalCaretPos_Up(int WndNum,POINT *pCaretPos);
|
---|
745 | void GetNaturalCaretPos_Down(int WndNum,POINT *pCaretPos);
|
---|
746 | void GetNaturalCaretPos_PageUp(int WndNum,POINT *pCaretPos);
|
---|
747 | void GetNaturalCaretPos_PageDown(int WndNum,POINT *pCaretPos);
|
---|
748 |
|
---|
749 | //Replace.cpp
|
---|
750 | void TextEdit_Replace(int WndNum,char *str,BOOL bRedraw);
|
---|
751 | void TextEdit_ReplaceUpdateUndoData(int WndNum,char *str,BOOL bPaste,BOOL bRedraw);
|
---|
752 | void TextEdit_Convert(int id);
|
---|
753 |
|
---|
754 | //TextEditor_UndoRedo.cpp
|
---|
755 | void TextEdit_UndoCommand(int WndNum);
|
---|
756 | void TextEdit_RedoCommand(int WndNum);
|
---|
757 | void TextEdit_NoticeChanging(int WndNum,int Command,char *KeyStr,char *DelStr,CHARRANGE *Range,CHARRANGE *DelRange);
|
---|
758 | void TextEdit_DeleteUndoData(TEXTEDIT_UNDOSTATE *pUndoState,int pos);
|
---|
759 |
|
---|
760 | //Search.cpp
|
---|
761 | void AddFindData(HWND hwnd,char ppData[MAX_FINDLIST][MAX_PATH],char *str);
|
---|
762 | BOOL CALLBACK DlgFind(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
763 | BOOL CALLBACK DlgPermutation(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
764 |
|
---|
765 | //analysis.cpp
|
---|
766 | BOOL GetVarFormatString(char *buffer,char *array,char *array2,char *NestMember,int *pRefType);
|
---|
767 | BOOL CheckReferType(char *ClassName,BOOL bArray,char *VarArray,int VarRefType);
|
---|
768 | void GetOriginalClassName(char *ClassName);
|
---|
769 | int GetClassPos(char *pBuf,char *ClassName,DWORD *pdwClassType);
|
---|
770 | BOOL GetClassNameFromClassMember(char *pBuf,int iPos,char *VarName,char *ClassName,BOOL *pbArray);
|
---|
771 | void GetCodeAreaType(char *pBuf,int iPos,int *piProcPos,char *NowClass);
|
---|
772 | BOOL GetVariableClassName(char *pEditBuf,int iPos,char *VarName,char *ClassName,BOOL *pbArray);
|
---|
773 |
|
---|
774 | //EndPairCommandComplement.cpp
|
---|
775 | BOOL GetEndPairCommandInfo(char *buffer,int p);
|
---|
776 | BOOL IsNeedNewIndentCommand(char *name);
|
---|
777 | void GetWithObjectVariable(char *buffer,int p,char *pObjectVar);
|
---|
778 |
|
---|
779 | //Complement.cpp
|
---|
780 | void DeleteComplementInfo(void);
|
---|
781 | BOOL GetComplementInfo(char *variable,char *pEditBuf,int iPos);
|
---|
782 | void CodeComplement(int WndNum,int iPos);
|
---|
783 | LRESULT CALLBACK ComplementWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
784 |
|
---|
785 | //ParameterHint.cpp
|
---|
786 | char *GetUserSourceCode(void);
|
---|
787 | void ChangeReturnCode(char *buffer);
|
---|
788 | void DeleteComment(char *buffer);
|
---|
789 | LRESULT CALLBACK MethodCheckWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
790 | void ShowParameterHint(int WndNum);
|
---|
791 |
|
---|
792 | //CodeFormatter.cpp
|
---|
793 | char *CodeFormatter(char *lpszReadBuffer);
|
---|
794 |
|
---|
795 | #ifdef THETEXT
|
---|
796 | //StringCount.cpp
|
---|
797 | BOOL CALLBACK DlgStringCount(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
798 | #endif
|
---|
799 |
|
---|
800 | //Print.cpp
|
---|
801 | class CPage{
|
---|
802 | public:
|
---|
803 | PAGESETUPDLG psd;
|
---|
804 | CPage();
|
---|
805 | ~CPage();
|
---|
806 |
|
---|
807 | BOOL SetupDlg(void);
|
---|
808 | };
|
---|
809 | extern CPage obj_Page;
|
---|
810 | LRESULT CALLBACK PreviewWndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
811 | void Preview(void);
|
---|
812 | void Printout(void);
|
---|
813 |
|
---|
814 | //History.cpp
|
---|
815 | #define IS_FILEHISTORY_COMMAND(a) (100<=a&&a<=199)
|
---|
816 | class CHistory{
|
---|
817 | int iNum;
|
---|
818 | int iMaxHistoryNum;
|
---|
819 |
|
---|
820 | int m_BaseID;
|
---|
821 | public:
|
---|
822 | char *lpszPath[255];
|
---|
823 |
|
---|
824 | CHistory(int BaseID);
|
---|
825 | ~CHistory();
|
---|
826 |
|
---|
827 | void load(char *path);
|
---|
828 | void save(char *path);
|
---|
829 |
|
---|
830 | void add(char *path);
|
---|
831 | void insert(const char *path);
|
---|
832 |
|
---|
833 | void ResetFileMenu(CSubMenuEx *pobj_SubMenu,BOOL bOwnerDraw);
|
---|
834 | };
|
---|
835 |
|
---|
836 |
|
---|
837 |
|
---|
838 |
|
---|
839 | //////////////////////
|
---|
840 | /* プロジェクト解析 */
|
---|
841 |
|
---|
842 | //CClassInfo.cpp
|
---|
843 | class CClassInfo{
|
---|
844 | public:
|
---|
845 | char ClassName[VN_SIZE];
|
---|
846 | MEMBERINFO *pMemberInfo;
|
---|
847 | int MemberNum;
|
---|
848 | CClassInfo();
|
---|
849 | ~CClassInfo();
|
---|
850 | int Analyze(char *pBuf,int *p);
|
---|
851 | };
|
---|
852 |
|
---|
853 | //ClassTree.cpp
|
---|
854 | struct TREEHASH{
|
---|
855 | HTREEITEM hItem;
|
---|
856 | HTREEITEM hFileTreeItem;
|
---|
857 | TREEHASH *pNextData;
|
---|
858 | };
|
---|
859 | #define CTV_ROOT 1 //ルート
|
---|
860 | #define CTV_FOLDER 2 //フォルダ
|
---|
861 | #define CTV_GLOBAL_PROC 3 //プロシージャ
|
---|
862 | #define CTV_CLASS 4 //クラス
|
---|
863 | #define CTV_PUBLIC_MEMBER 5 //公開cメンバ変数
|
---|
864 | #define CTV_PUBLIC_METHOD 6 //公開メソッド
|
---|
865 | #define CTV_PRIVATE_MEMBER 7 //非公開メンバ変数
|
---|
866 | #define CTV_PRIVATE_METHOD 8 //非公開メソッド
|
---|
867 | class CClassTreeView{
|
---|
868 | HWND hTreeWnd;
|
---|
869 | HTREEITEM hNowFileTreeItem;
|
---|
870 | TREEHASH tree_data[MAX_HASH];
|
---|
871 |
|
---|
872 | HTREEITEM hGlobalProcedureFolder;
|
---|
873 | HTREEITEM hNowClassFolder;
|
---|
874 |
|
---|
875 | int hash_default(LONG_PTR lpdata);
|
---|
876 |
|
---|
877 | void AddValidItem(HTREEITEM hItem,HTREEITEM hFileTreeItem);
|
---|
878 | BOOL delete_check(HTREEITEM hItem);
|
---|
879 | void DeleteInvalidItems(HTREEITEM hItem);
|
---|
880 | void DeleteTreeHash(TREEHASH *pth);
|
---|
881 |
|
---|
882 | HTREEITEM insert(HTREEITEM hParentItem,int flag,char *lpszName,HTREEITEM hFileTreeItem);
|
---|
883 |
|
---|
884 | public:
|
---|
885 | HTREEITEM hRootFolder;
|
---|
886 |
|
---|
887 | int NumberOfProcedures;
|
---|
888 | PROCINFO *pProcInfo;
|
---|
889 |
|
---|
890 | BOOL bCloseSwitch;
|
---|
891 | BOOL bShowSwitch;
|
---|
892 |
|
---|
893 | CClassTreeView();
|
---|
894 | ~CClassTreeView();
|
---|
895 | void init(HWND hwnd,HTREEITEM hFileTreeItem);
|
---|
896 |
|
---|
897 | void InsertRootFolder(void);
|
---|
898 | void InsertGlobalProcedureFolder(void);
|
---|
899 | HTREEITEM InsertGlobalProcedure(int flag,char *lpszName,HTREEITEM hFileTreeItem);
|
---|
900 | HTREEITEM insert_code_item(HTREEITEM hParentItem,int flag,char *lpszName,HTREEITEM hFileTreeItem,char *pBuf,int p);
|
---|
901 | void InsertClassFolder(char *lpszName,HTREEITEM hFileTreeItem,char *pBuf,int p);
|
---|
902 | void InsertClassMember(int flag,char *lpszName,HTREEITEM hFileTreeItem,char *pBuf,int p);
|
---|
903 | void finish();
|
---|
904 | };
|
---|
905 | extern CClassTreeView *pobj_ClassTreeView;
|
---|
906 | void ResetClassTree(HTREEITEM hFileTreeItem);
|
---|
907 |
|
---|
908 | //ProjectControl.cpp
|
---|
909 | void ResizeProjectView_ToolWindow(void);
|
---|
910 | LRESULT CALLBACK ProjectView_ToolWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
911 | void ShowFileView();
|
---|
912 | void ShowClassView();
|
---|
913 | void ShowMaterialView();
|
---|
914 | LRESULT CALLBACK ProjectViewProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
915 | void Project_File_Insert(char *path);
|
---|
916 | void Project_File_Delete(HTREEITEM hTreeItem);
|
---|
917 | void MakeNewProject(void);
|
---|
918 | BOOL ProjectModifyCheck(BOOL bRun);
|
---|
919 | void MakeWorkFile(void);
|
---|
920 | void SaveProject(void);
|
---|
921 | BOOL SetProjectToRun(void);
|
---|
922 | BOOL IsNeedCompileForProject(BOOL bDebug);
|
---|
923 |
|
---|
924 | //WindowControl.cpp
|
---|
925 | int GetWndInfoNum( const std::string &name );
|
---|
926 | ActiveBasic::PM::WindowInfo *GetWndInfo( const std::string &name );
|
---|
927 | HGLOBAL Rad_GetChildInfoClipboardData(int WndNum,int WndInfoNum);
|
---|
928 | void Rad_PasteChildInfoClipboardData(int WndNum,HGLOBAL hGlobal);
|
---|
929 | char *PermutationWndPgmTemplate(char *pBuf,const char *pPjName, char *pWndName, char *pHandleName, char *pProcName);
|
---|
930 | const std::string PermutationWndPgmTemplate( const std::string &templateFilePath, const std::string &projectName, std::string &windowName, std::string &handleName, std::string &procName );
|
---|
931 | void GetItemClassName(char *buffer,int Control);
|
---|
932 | void SaveWindowProgram();
|
---|
933 | void SaveWindowFile( char *path, const ActiveBasic::PM::WindowInfos &windowInfos );
|
---|
934 | _int8 OpenWindowFile(char *path);
|
---|
935 | void GetDefaultWindowFont(LOGFONT *LogFont);
|
---|
936 | void Project_Window_Insert(void);
|
---|
937 | void Project_Window_Delete(int WndInfoNum);
|
---|
938 |
|
---|
939 | //Resource.cpp
|
---|
940 | void Project_CursorResInsert(void);
|
---|
941 | void Project_Cursor_Delete(int CursorInfoNum);
|
---|
942 | void Project_Cursor_RenameID(int CursorInfoNum);
|
---|
943 | void Project_BitmapResInsert(void);
|
---|
944 | void Project_Bitmap_Delete(int IconInfoNum);
|
---|
945 | void Project_Bitmap_RenameID(int BitmapInfoNum);
|
---|
946 | void Project_IconResInsert(void);
|
---|
947 | void Project_Icon_Delete(int IconInfoNum);
|
---|
948 | void Project_Icon_RenameID(int IconInfoNum);
|
---|
949 | BOOL CALLBACK DlgProject_ResourceID_Input(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
950 |
|
---|
951 |
|
---|
952 |
|
---|
953 | ///////////////////
|
---|
954 | /* RADウィンドウ */
|
---|
955 |
|
---|
956 | //RadProc.cpp
|
---|
957 | void NewRadWindow( const ActiveBasic::PM::WindowInfo &windowInfo );
|
---|
958 | int InsertDlgItem(int WndNum,int WndInfoNum,int ItemNum,POINT *pPos,SIZE *pSize,const char *IdName,const char *caption,DWORD style_or_WndNum,DWORD ExStyle,int Control,ActiveBasic::PM::ImageReferenceType::EnumType ImageType,const char *ImagePath,DWORD dwInsertType);
|
---|
959 | void DeleteDlgItem(int WndNum,int WndInfoNum,int ItemNum,BOOL bNoticeChanging);
|
---|
960 | void CursorPos_GlobalToLocal(HWND hwnd,long *x,long *y);
|
---|
961 | void DrawSelectingRect(HWND hwnd,int WndNum,int WndInfoNum,int ButtonSelect);
|
---|
962 | void ChangePropertyWindow(int WndNum,int WndInfoNum);
|
---|
963 | void ResetScrollbarOfRadEditor(int WndNum,int weight,int height);
|
---|
964 | LRESULT CALLBACK RadWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
965 | void ResizeToRadToolWindows(int WndNum,int weight,int height);
|
---|
966 | LRESULT CALLBACK MDIClientWindow_Rad(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
967 |
|
---|
968 | //DrawWindow.cpp
|
---|
969 | void DrawRadWindow(int WndNum,const ActiveBasic::PM::WindowInfo *pWindowInfo);
|
---|
970 |
|
---|
971 | //Rad_UndoRedo.cpp
|
---|
972 | void Rad_UndoCommand(int WndNum);
|
---|
973 | void Rad_RedoCommand(int WndNum);
|
---|
974 | void Rad_DeleteUndoData(int WndNum,int pos);
|
---|
975 | void Rad_NoticeChanging(int WndNum,int Command,int SelectItemNum,DWORD dwData);
|
---|
976 |
|
---|
977 | //RadToolsAndPropertyProc.cpp
|
---|
978 | LRESULT CALLBACK RadToolsWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
979 | BOOL CALLBACK RadProperty_WindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
980 | BOOL CALLBACK DlgRadProperty_Item_RenameCaption(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
981 | BOOL CALLBACK RadProperty_ButtonProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
982 | BOOL CALLBACK RadProperty_CheckBoxProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
983 | BOOL CALLBACK RadProperty_ComboBoxProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
984 | BOOL CALLBACK RadProperty_EditProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
985 | BOOL CALLBACK RadProperty_GroupBoxProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
986 | BOOL CALLBACK RadProperty_ImageBoxProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
987 | BOOL CALLBACK RadProperty_ListBoxProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
988 | BOOL CALLBACK RadProperty_ListViewProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
989 | BOOL CALLBACK RadProperty_ProgressBarProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
990 | BOOL CALLBACK RadProperty_RadioButtonProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
991 | BOOL CALLBACK RadProperty_ScrollBarProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
992 | BOOL CALLBACK RadProperty_StaticProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
993 | BOOL CALLBACK RadProperty_TrackBarProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
994 | BOOL CALLBACK RadProperty_TreeViewProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
995 | BOOL CALLBACK RadProperty_UpDownProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
996 | LRESULT CALLBACK RadPropertyWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
997 |
|
---|
998 | //MessageCallOperation.cpp
|
---|
999 | char **GetProcedureNamesOfMessageCall(int WndInfoNum,ITEMEVENTINFO **ppItemEventInfo,int *num,BOOL *pbAlways);
|
---|
1000 | void SelectProcedureOfMessageCall(int WndInfoNum,char *ProcedureName,char *Parameter);
|
---|
1001 | BOOL CALLBACK DlgEventCode(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1002 |
|
---|
1003 | //RadSupport.cpp
|
---|
1004 | LRESULT CALLBACK TestWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1005 | void SetSupportDlgData(int WndNum, const ActiveBasic::PM::WindowInfo &windowInfo );
|
---|
1006 | BOOL CALLBACK DlgRadSupport(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1007 |
|
---|
1008 |
|
---|
1009 |
|
---|
1010 | ////////////////////
|
---|
1011 | /* MENUウィンドウ */
|
---|
1012 |
|
---|
1013 | //MenuProc.cpp
|
---|
1014 | int GetMenuInfoNum(const std::string &name);
|
---|
1015 | void HeapMenuDataFree(MENU_INFO *pMenuInfo,int ItemNum,int *NumberOfFreedItem);
|
---|
1016 | BOOL CALLBACK DlgProject_MenuID_Input(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1017 | void Project_Menu_Insert(void);
|
---|
1018 | void Project_Menu_Delete(int MenuInfoNum);
|
---|
1019 | void NewMenuWindow(MENU_INFO *pMenuInfo);
|
---|
1020 | BOOL CALLBACK MenuEditDlg(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1021 | LRESULT CALLBACK MenuEditWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1022 | LRESULT CALLBACK MDIClientWindow_Menu(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1023 |
|
---|
1024 |
|
---|
1025 |
|
---|
1026 | //////////////////////////////////
|
---|
1027 | /* アイコン エディタ ウィンドウ */
|
---|
1028 |
|
---|
1029 | //IconEditor.cpp
|
---|
1030 | void AddIconType(int WndNum,int IconType);
|
---|
1031 | void DeleteIconType(int WndNum);
|
---|
1032 | void NewIconEditWindow(const char *filepath);
|
---|
1033 | void SaveIconFile(char *filepath,HWND hwnd);
|
---|
1034 | LRESULT CALLBACK MDIClientWindow_IconEdit(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1035 |
|
---|
1036 | //IconEditor_Main.cpp
|
---|
1037 | HGLOBAL IconEdit_GetChildInfoClipboardData(int WndNum);
|
---|
1038 | void IconEdit_PasteChildInfoClipboardData(int WndNum,HBITMAP hBmp);
|
---|
1039 | void IconEdit_PasteImage(int WndNum);
|
---|
1040 | void DrawIconToMemBmp(int WndNum,RECT *pRect);
|
---|
1041 | void IconEdit_EraseRect(int WndNum,RECT *pRect);
|
---|
1042 | LRESULT CALLBACK IconEditWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1043 |
|
---|
1044 | //IconEditor_Tool.cpp
|
---|
1045 | BOOL CALLBACK DlgIconButtons(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1046 | BOOL CALLBACK DlgIconToolProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1047 |
|
---|
1048 | //IconEditor_Color.cpp
|
---|
1049 | BOOL CALLBACK DlgIconColorProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
1050 |
|
---|
1051 | //IconEditor_UndoRedo.cpp
|
---|
1052 | void IconEdit_UndoCommand(int WndNum);
|
---|
1053 | void IconEdit_RedoCommand(int WndNum);
|
---|
1054 | void IconEdit_NoticeChanging(int WndNum);
|
---|
1055 |
|
---|
1056 |
|
---|
1057 |
|
---|
1058 |
|
---|
1059 |
|
---|
1060 | #include "NonVolatile.h"
|
---|
1061 |
|
---|
1062 |
|
---|
1063 |
|
---|
1064 |
|
---|
1065 | #ifdef _DEBUG
|
---|
1066 | /*Debug*/
|
---|
1067 |
|
---|
1068 | #define HeapAlloc CheckHeapAlloc
|
---|
1069 | #define HeapReAlloc CheckHeapReAlloc
|
---|
1070 | LPVOID CheckHeapAlloc(HANDLE hHeap,DWORD dwFlags,DWORD dwBytes);
|
---|
1071 | LPVOID CheckHeapReAlloc(HANDLE hHeap,DWORD dwFlags,LPVOID lpMem,DWORD dwBytes);
|
---|
1072 |
|
---|
1073 | #define DeleteObject CheckDeleteObject
|
---|
1074 | BOOL CheckDeleteObject(HGDIOBJ hObject);
|
---|
1075 |
|
---|
1076 | #endif
|
---|