Index: trunk/ab5.0/abdev/abdev/abdev.cpp
===================================================================
--- trunk/ab5.0/abdev/abdev/abdev.cpp	(revision 500)
+++ trunk/ab5.0/abdev/abdev/abdev.cpp	(revision 501)
@@ -1330,5 +1330,4 @@
 	POINT pos;
 	HDROP hDrop;
-	HGLOBAL hGlobal;
 
 	static COLORREF colorUser=RGB(255,255,255);
@@ -1353,178 +1352,4 @@
 			switch(LOWORD(wParam)){
 
-#ifndef THETEXT
-
-
-				////////////////////////
-				// デバッグ コマンド
-				////////////////////////
-
-				case IDM_STEP_IN:
-					pobj_Debugger->StepIn();
-					break;
-				case IDM_STEP_OVER:
-					pobj_Debugger->StepOver();
-					break;
-				case IDM_STEP_CURSOR:
-					pobj_Debugger->StepToCursor();
-					break;
-				case IDM_BREAKPOINT:
-					if(ProjectInfo.name[0]){
-						ProjectInfo.pobj_DBBreakPoint->Event_BreakPoint();
-					}
-					else{
-						pobj_DBBreakPoint->Event_BreakPoint();
-					}
-					break;
-				case IDM_DEBUG_STOP:
-					pobj_Debugger->DebugStop();
-					break;
-				case IDM_DEBUG_PAUSE:
-					pobj_Debugger->DebugPause();
-					break;
-
-
-				case IDM_COMMUNITY:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case IDM_COMMU_SEARCH:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/search.php",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case IDM_COMMU_PM:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/privmsg.php?folder=inbox",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM1:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=1",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM2:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=2",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM3:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=5",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM4:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=3",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM5:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=6",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM6:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=8",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM7:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=4",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-				case ID_COMMU_FORUM8:
-					ShellExecute(hwnd,"open","iexplore.exe",
-						"http://www.activebasic.com/forum/viewforum.php?f=7",
-						NULL,SW_SHOWNORMAL);
-					return 0;
-#endif //THETEXT
-
-
-				case IDM_TOPIC:
-#ifdef THETEXT
-					sprintf(str,"%sTopics\\index.html",pj_editor_Dir);
-					ShellExecute(hwnd,"open",str,NULL,NULL,SW_SHOWNORMAL);
-#else
-					sprintf(str,"%sBasicHelp.chm",pj_editor_Dir);
-					HtmlHelp(NULL,str,HH_DISPLAY_TOPIC,0);
-#endif
-					return 0;
-
-#ifdef THETEXT
-				case IDM_DSHOMEPAGE:
-					ShellExecute(hwnd,"open","http://www.discoversoft.net/",NULL,NULL,SW_SHOWNORMAL);
-					return 0;
-#else
-				case IDM_AB_WEBSITE:
-					ShellExecute(hwnd,"open","http://www.activebasic.com/",NULL,NULL,SW_SHOWNORMAL);
-					return 0;
-				case IDM_ACTBDL:
-					ShellExecute(hwnd,"open","http://www.activebasic.com/activebasic5/download.htm",NULL,NULL,SW_SHOWNORMAL);
-					return 0;
-#endif
-
-				case IDM_ABOUT:
-					DialogBox(hResInst,MAKEINTRESOURCE(IDD_ABOUT),hwnd,(DLGPROC)DialogAbout);
-					return 0;
-
-				case IDM_WEB_SEARCH:
-					hChild=GetWindow(hClient,GW_CHILD);
-					WndNum=GetWndNum(hChild);
-					if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){
-						extern HWND hWebSearchCombo;
-						SendMessage(GetWindow(hWebSearchCombo,GW_CHILD),WM_CHAR,VK_RETURN,0);
-					}
-					return 0;
-
-
-
-				//////////////////////////////////////////////////////
-				// レバーコントロールのサブメニューコマンド（レバー追加）
-				//////////////////////////////////////////////////////
-
-				case IDM_DOCSELECTBAND:
-					pobj_Rebar->ChangeRebarBand(ID_DOCCOMBO);
-					return 0;
-				case IDM_STANDARDBAND:
-					pobj_Rebar->ChangeRebarBand(ID_STANDARDTOOLBAR);
-					return 0;
-#ifndef THETEXT
-				case IDM_RELEASEBAND:
-					pobj_Rebar->ChangeRebarBand(ID_RELEASETOOLBAR);
-					return 0;
-				case IDM_DEBUGBAND:
-					pobj_Rebar->ChangeRebarBand(ID_DEBUGGERTOOLBAR);
-					return 0;
-				case IDM_SELECTCOMPILERBAND:
-					pobj_Rebar->ChangeRebarBand(ID_SELECTCOMPILERCOMBO);
-					return 0;
-#endif
-				case IDM_BANDMENU_WEB_SEARCH:
-					pobj_Rebar->ChangeRebarBand(ID_WEB_SEARCH);
-					return 0;
-				case IDM_NOGRIPPER:
-					if(pobj_nv->bNoGripper) pobj_nv->bNoGripper=0;
-					else pobj_nv->bNoGripper=1;
-
-					//レバーコントロールを再生成
-					pobj_Rebar->ResetRebar();
-
-					//メニュー状態を設定
-					ResetState_DocMenu();
-					return 0;
-				case IDM_RESET_REBAR:
-					//"ツールバーの配置をすべて初期状態に戻します。\nよろしいですか？"
-					if(IDCANCEL==MessageBox(hwnd,STRING_TOOLBAR_RESET,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break;
-
-					//レバーコントロールを再生成
-					pobj_Rebar->ResetInitRebar();
-
-					//メニュー状態を設定
-					ResetState_DocMenu();
-					return 0;
-
-
 
 				////////////////////////////////////////////////////
@@ -1532,65 +1357,4 @@
 				////////////////////////////////////////////////////
 
-				case IDM_ALLCLOSE_OMIT_MYSELF:
-					//このウィンドウ以外をすべて閉じる(&A)
-					hChild=GetWindow(hClient,GW_CHILD);
-					WndNum=GetWndNum(hChild);
-					for(i=0;i<MAX_WNDNUM;i++){
-						if(i==WndNum) continue;
-						if(MdiInfo[i].hwnd) SendMessage(MdiInfo[i].hwnd,WM_CLOSE,0,0);
-					}
-					return 0;
-
-				case IDM_PATH_COPY:
-					hChild=GetWindow(hClient,GW_CHILD);
-					WndNum=GetWndNum(hChild);
-
-					//絶対パスをコピー
-					hGlobal=(char *)GlobalAlloc(GMEM_MOVEABLE,lstrlen(MdiInfo[WndNum].path)+1);
-					pTemp=(char *)GlobalLock(hGlobal);
-					lstrcpy(pTemp,MdiInfo[WndNum].path);
-					GlobalUnlock(hGlobal);
-
-					//クリップボードに保存
-					OpenClipboard(hwnd);
-					EmptyClipboard();
-					SetClipboardData(CF_TEXT,hGlobal);
-					CloseClipboard();
-					return 0;
-
-				case IDM_FOLDER_OPEN:
-					hChild=GetWindow(hClient,GW_CHILD);
-					WndNum=GetWndNum(hChild);
-
-					_splitpath(MdiInfo[WndNum].path,temporary,temp2,NULL,NULL);
-					lstrcat(temporary,temp2);
-
-					ShellExecute(hwnd,"explore",temporary,NULL,NULL,SW_SHOWNORMAL);
-					return 0;
-
-				case IDM_DELETE_FILE:
-					hChild=GetWindow(hClient,GW_CHILD);
-					WndNum=GetWndNum(hChild);
-
-					_splitpath(MdiInfo[WndNum].path,NULL,NULL,temporary,temp2);
-					lstrcat(temporary,temp2);
-
-					lstrcat(temporary," をごみ箱に移動して閉じます。よろしいですか？");
-					if(MessageBox(hwnd,temporary,APPLICATION_NAME,MB_OKCANCEL|MB_ICONQUESTION)==IDCANCEL) return 0;
-
-					//ゴミ箱へ
-					SHFILEOPSTRUCT fo;
-					fo.hwnd=hwnd;
-					fo.wFunc=FO_DELETE;
-					fo.pFrom =MdiInfo[WndNum].path;
-					fo.pTo="\0";
-					fo.fFlags =FOF_ALLOWUNDO|FOF_NOCONFIRMATION;
-					SHFileOperation(&fo);
-
-					//閉じる
-					MdiInfo[WndNum].pMdiTextEdit->UnModify();
-					SendMessage(MdiInfo[WndNum].hwnd,WM_CLOSE,0,0);
-
-					return 0;
 
 				case IDM_USER_COLOR:
@@ -1941,81 +1705,4 @@
 			}
 			break;	//処理をDefFrameProcへ
-		case WM_QUERYENDSESSION:
-		case WM_CLOSE:
-			extern BOOL bSearchingClasses;
-			if(bSearchingClasses){
-				pobj_ClassTreeView->bCloseSwitch=1;
-				return 0;
-			}
-
-			//コンパイラビューを閉じる
-			if(hCompileView)
-				SendMessage(hCompileView,WM_COMMAND,IDCANCEL,0);
-
-			//次回起動時にMDIウィンドウを最大化させるかを判定
-			hChild=GetWindow(hClient,GW_CHILD);
-			pobj_nv->bMDIZoomed=IsZoomed(hChild);
-
-			//プロジェクトを閉じる
-			if(ProjectInfo.name[0]){
-				if(!CloseProject()) return 0;
-			}
-
-			//MDIウィンドウの保存確認
-			hChild=GetWindow(hClient,GW_CHILD);
-			while(hChild){
-				i=GetWndNum(hChild);
-				if(!DocumentModifyCheck(hChild)) return 0;
-				hChild=GetNextWindow(hChild,GW_HWNDNEXT);
-			}
-
-
-			KillTimer(hwnd,ID_TIMER_BACKUP);
-
-
-			//ProjectViewの位置を保存、ProjectViewを破棄
-			GetWindowRect(hProjectView_ToolWindow,&pobj_nv->rectProjectView);
-			DestroyWindow(hProjectView);
-			DestroyWindow(hProjectView_ToolWindow);
-
-			//Rebarの位置を保存、Rebarを破棄
-			delete pobj_Rebar;
-			pobj_Rebar=0;
-
-			//タブコントロールを破棄
-			delete pobj_MainTab;
-			pobj_MainTab=0;
-
-			//SideWebを破棄
-			delete pobj_SideWeb;
-			pobj_SideWeb=0;
-
-			//メインウィンドウの最大化有無、座標を保存
-			if(IsZoomed(hwnd)) pobj_nv->bWindowMax=1;
-			else if(!IsIconic(hwnd)){
-				pobj_nv->bWindowMax=0;
-				GetWindowRect(hwnd,&pobj_nv->StartupWindowRect);
-			}
-
-			hChild=GetWindow(hClient,GW_CHILD);
-			while(hChild){
-				CloseDocWindow(GetWndNum(hChild));
-				DestroyWindow(hChild);
-				hChild=GetWindow(hClient,GW_CHILD);
-			}
-
-			EndProjectEditor();		//ProjectEditorの情報を保存
-
-			//エディタ用フォントを破棄
-			extern HFONT hFont_TextEdit,hFont_HyperLink_TextEdit;
-			if(hFont_TextEdit) DeleteObject(hFont_TextEdit);
-			if(hFont_HyperLink_TextEdit) DeleteObject(hFont_HyperLink_TextEdit);
-
-			DestroyWindow(hwnd);
-			return 0;
-
-		case WM_DESTROY:
-			PostQuitMessage(0);
-			return 0;
 	}
 
