source: dev/ProjectEditor/Common.h@ 27

Last change on this file since 27 was 24, checked in by dai_9181, 18 years ago

保存されていないドキュメントのタブに(*)をつける機能に対応。
MDITEXTEDITINFOをCMdiTextEditに変更。今後、オブジェクト指向化を進める。

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