Changeset 793 in dev
- Timestamp:
- Jan 30, 2011, 6:29:32 PM (14 years ago)
- Location:
- branches/egtra/ab5.0/abdev
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/ab-test/ab-test.cpp
r789 r793 117 117 118 118 auto hBasicProgramIconL = (HICON)::LoadImage(hmodRes.get(), MAKEINTRESOURCE(IDI_BASICPROGRAM), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); 119 auto hBasicProgramIconR = abres::LoadIcon (hmodRes.get(), IDI_BASICPROGRAM, 16, 16, LR_DEFAULTCOLOR);119 auto hBasicProgramIconR = abres::LoadIconAlt(hmodRes.get(), IDI_BASICPROGRAM, 16, 16, LR_DEFAULTCOLOR); 120 120 121 121 BOOST_CHECK(hBasicProgramIconL != nullptr); … … 125 125 126 126 auto hcurL = ::LoadCursor(hmodRes.get(), MAKEINTRESOURCE(IDC_CURSOR_PEN)); 127 auto hcurR = abres::LoadCursor (hmodRes.get(), IDC_CURSOR_PEN);127 auto hcurR = abres::LoadCursorAlt(hmodRes.get(), IDC_CURSOR_PEN); 128 128 129 129 BOOST_CHECK(hcurL != nullptr); … … 140 140 ::LoadStringW(hmodRes.get(), IDS_DEV_GROUP, strL, ARRAYSIZE(strL)); 141 141 142 boost::optional<std::wstring> strR = abres::LoadString (hmodRes.get(), IDS_DEV_GROUP);142 boost::optional<std::wstring> strR = abres::LoadStringAlt(hmodRes.get(), IDS_DEV_GROUP); 143 143 144 144 BOOST_CHECK(!!strR); -
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.cpp
r792 r793 70 70 } 71 71 72 } 72 } // unnamed namespace 73 73 74 HICON LoadIcon (HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load)74 HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load) 75 75 { 76 76 return LoadIconCursorImpl(hinst, id, cxDesired, cyDesired, load, true); 77 77 } 78 78 79 HICON LoadIcon (HINSTANCE hinst, USHORT id)79 HICON LoadIconAlt(HINSTANCE hinst, USHORT id) 80 80 { 81 81 return LoadIconCursorImpl(hinst, id, 32, 32, LR_SHARED, true); 82 82 } 83 83 84 HCURSOR LoadCursor (HINSTANCE hinst, USHORT id)84 HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id) 85 85 { 86 86 return LoadIconCursorImpl(hinst, id, 32, 32, LR_SHARED, false); … … 90 90 // How To Use LoadResource to Load Strings from a String Table 91 91 // http://support.microsoft.com/kb/200893/en-us 92 boost::optional<std::wstring> LoadString (HINSTANCE hinst, USHORT id)92 boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id) 93 93 { 94 94 UINT idRsrcBlk = id / 16 + 1; … … 123 123 } 124 124 125 namespace { 126 125 127 // http://msdn.microsoft.com/en-us/library/ms648010.aspx 126 128 struct ACCELTABLEENTRY … … 138 140 } 139 141 140 HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id) 142 } // unnamed namespace 143 144 HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id) 141 145 { 142 146 using namespace boost::adaptors; … … 161 165 } 162 166 163 HMENU LoadMenu (HINSTANCE hinst, USHORT id)167 HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id) 164 168 { 165 169 return LoadMenuIndirect(GetResource(hinst, id, RT_MENU)); -
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h
r792 r793 7 7 namespace ActiveBasic { namespace Resource { 8 8 9 HICON LoadIcon (HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);10 HICON LoadIcon (HINSTANCE hinst, USHORT id);9 HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); 10 HICON LoadIconAlt(HINSTANCE hinst, USHORT id); 11 11 12 HCURSOR LoadCursor (HINSTANCE hinst, USHORT id);12 HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id); 13 13 14 boost::optional<std::wstring> LoadString (HINSTANCE hinst, USHORT id);14 boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id); 15 15 16 HACCEL LoadAccelerators (HINSTANCE hinst, USHORT id);16 HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id); 17 17 18 HMENU LoadMenu (HINSTANCE hinst, USHORT id);18 HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id); 19 19 20 20 struct IconDeleter -
branches/egtra/ab5.0/abdev/abdev/ChildWndOnRebar.cpp
r784 r793 229 229 230 230 231 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_StandardToolbar->Add((id), ActiveBasic::Resource::LoadIcon (hIconResInst, (iconID), 16, 16), (lpszToolTip))231 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_StandardToolbar->Add((id), ActiveBasic::Resource::LoadIconAlt(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 232 232 #define ADD_TOOLBAR_SEPARATOR pobj_StandardToolbar->Add(0,0,0) 233 233 //ボタン類を追加 … … 279 279 pobj_DebuggerToolbar->Create(hDebuggerToolbarPager); 280 280 281 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_DebuggerToolbar->Add((id), ActiveBasic::Resource::LoadIcon (hIconResInst, (iconID), 16, 16), (lpszToolTip))281 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_DebuggerToolbar->Add((id), ActiveBasic::Resource::LoadIconAlt(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 282 282 #define ADD_TOOLBAR_SEPARATOR pobj_DebuggerToolbar->Add(0,0,0) 283 283 //ボタン類を追加 … … 327 327 pobj_ReleaseToolbar->Create(hReleaseToolbarPager); 328 328 329 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_ReleaseToolbar->Add((id), ActiveBasic::Resource::LoadIcon (hIconResInst, (iconID), 16, 16), (lpszToolTip))329 #define ADD_TOOLBAR_BUTTON(id, iconID, lpszToolTip) pobj_ReleaseToolbar->Add((id), ActiveBasic::Resource::LoadIconAlt(hIconResInst, (iconID), 16, 16), (lpszToolTip)) 330 330 #define ADD_TOOLBAR_SEPARATOR pobj_ReleaseToolbar->Add(0,0,0) 331 331 //ボタン類を追加 -
branches/egtra/ab5.0/abdev/abdev/Complement.cpp
r786 r793 754 754 hImageList=ImageList_Create(16, 16, ILC_COLOR24, 7, 0); 755 755 ListView_SetImageList(hListView, hImageList, LVSIL_SMALL); 756 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PRIVATE_VARIABLE));757 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PUBLIC_VARIABLE));758 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PRIVATE_FUNCTION));759 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PUBLIC_FUNCTION));760 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_PAIRSTATEMENT));761 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_HTML_GENERAL_PARAMETER));762 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_HTML_PARAMETER));756 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PRIVATE_VARIABLE)); 757 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PUBLIC_VARIABLE)); 758 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PRIVATE_FUNCTION)); 759 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PUBLIC_FUNCTION)); 760 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_PAIRSTATEMENT)); 761 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_HTML_GENERAL_PARAMETER)); 762 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_HTML_PARAMETER)); 763 763 764 764 return 0; -
branches/egtra/ab5.0/abdev/abdev/DialogBoxes.cpp
r789 r793 630 630 ImageList_AddIcon(hImageList, LoadIcon(hInst, MAKEINTRESOURCE(IDI_FILE_BAS))); 631 631 ImageList_AddIcon(hImageList, LoadIcon(hInst, MAKEINTRESOURCE(IDI_FILE_SBP))); 632 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_NEWFILE_PJ));633 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_NEWFILE_TEXT));634 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_NEWFILE_HTML));635 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_NEWFILE_ICON));632 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_NEWFILE_PJ)); 633 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_NEWFILE_TEXT)); 634 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_NEWFILE_HTML)); 635 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_NEWFILE_ICON)); 636 636 637 637 … … 2039 2039 #ifndef THETEXT 2040 2040 //ライブラリ開発チーム 2041 boost::optional<std::wstring> devGroup = ActiveBasic::Resource::LoadString (hResInst, IDS_DEV_GROUP);2041 boost::optional<std::wstring> devGroup = ActiveBasic::Resource::LoadStringAlt(hResInst, IDS_DEV_GROUP); 2042 2042 if (devGroup) 2043 2043 { -
branches/egtra/ab5.0/abdev/abdev/DrawBuffer.cpp
r784 r793 222 222 223 223 if(bBreakPoint){ 224 ActiveBasic::Resource::UniqueHIcon hicon(ActiveBasic::Resource::LoadIcon (hIconResInst, IDI_BREAKPOINT_FLAG, 16, 16));224 ActiveBasic::Resource::UniqueHIcon hicon(ActiveBasic::Resource::LoadIconAlt(hIconResInst, IDI_BREAKPOINT_FLAG, 16, 16)); 225 225 DrawIconEx(memdc,3,i*font_height+(font_height-16)/2,hicon.get(),16,16,0,NULL,DI_NORMAL); 226 226 } -
branches/egtra/ab5.0/abdev/abdev/FileTree.cpp
r786 r793 160 160 //イメージリスト読み込み、設定 161 161 hImageList=ImageList_Create(16,16,ILC_COLOR24|ILC_MASK,3,0); 162 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_CLOSE));163 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_OPEN));164 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_TEXTDOCUMENT));162 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_CLOSE)); 163 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_OPEN)); 164 ImageList_AddIcon(hImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_TEXTDOCUMENT)); 165 165 this->SetImageList(hImageList,TVSIL_NORMAL); 166 166 } -
branches/egtra/ab5.0/abdev/abdev/IconEditor_Main.cpp
r786 r793 1199 1199 InvalidateRect(hwnd,NULL,0); 1200 1200 1201 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_PEN));1201 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_PEN)); 1202 1202 } 1203 1203 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILL){ … … 1214 1214 InvalidateRect(hwnd,NULL,0); 1215 1215 } 1216 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_FILL));1216 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_FILL)); 1217 1217 } 1218 1218 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE|| … … 1496 1496 } 1497 1497 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_PEN) 1498 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_PEN));1498 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_PEN)); 1499 1499 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILL) 1500 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_FILL));1500 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_FILL)); 1501 1501 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE|| 1502 1502 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE|| -
branches/egtra/ab5.0/abdev/abdev/Print.cpp
r786 r793 421 421 //拡大・縮小アイコンを表示 422 422 SendDlgItemMessage(hwnd,IDC_ZOOMOUT,BM_SETIMAGE,IMAGE_ICON , 423 reinterpret_cast<LPARAM>(ActiveBasic::Resource::LoadIcon (hResInst, IDI_ZOOMOUT, 16, 16, LR_SHARED)));423 reinterpret_cast<LPARAM>(ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_ZOOMOUT, 16, 16, LR_SHARED))); 424 424 SendDlgItemMessage(hwnd,IDC_ZOOMIN,BM_SETIMAGE,IMAGE_ICON , 425 reinterpret_cast<LPARAM>(ActiveBasic::Resource::LoadIcon (hResInst, IDI_ZOOMIN, 16, 16, LR_SHARED)));425 reinterpret_cast<LPARAM>(ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_ZOOMIN, 16, 16, LR_SHARED))); 426 426 iZoomNowPage=ZOOM_INIT; 427 427 -
branches/egtra/ab5.0/abdev/abdev/ProjectControl.cpp
r786 r793 466 466 //イメージリスト読み込み、設定 467 467 hProcedureTreeViewImageList=ImageList_Create(16,16,ILC_COLOR24|ILC_MASK,8,0); 468 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_CLOSE));469 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_OPEN));470 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_PROCEDURE));471 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_PROGRAM_FOLDER));472 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PUBLIC_VARIABLE));473 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PUBLIC_FUNCTION));474 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PRIVATE_VARIABLE));475 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MEMBER_PRIVATE_FUNCTION));468 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_CLOSE)); 469 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_OPEN)); 470 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_PROCEDURE)); 471 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_PROGRAM_FOLDER)); 472 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PUBLIC_VARIABLE)); 473 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PUBLIC_FUNCTION)); 474 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PRIVATE_VARIABLE)); 475 ImageList_AddIcon(hProcedureTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MEMBER_PRIVATE_FUNCTION)); 476 476 TreeView_SetImageList(hProcedureTreeView,hProcedureTreeViewImageList,TVSIL_NORMAL); 477 477 … … 485 485 //イメージリスト読み込み、設定 486 486 hMaterialTreeViewImageList=ImageList_Create(16,16,ILC_COLOR24|ILC_MASK,3,0); 487 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_CLOSE));488 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FOLDER_OPEN));489 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_WINDOW));490 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_MENU));491 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FILE_ICON));492 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FILE_BMP));493 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIcon (hResInst, IDI_FILE_CURSOR));487 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_CLOSE)); 488 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FOLDER_OPEN)); 489 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_WINDOW)); 490 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_MENU)); 491 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FILE_ICON)); 492 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FILE_BMP)); 493 ImageList_AddIcon(hMaterialTreeViewImageList, ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_FILE_CURSOR)); 494 494 TreeView_SetImageList(hMaterialTreeView,hMaterialTreeViewImageList,TVSIL_NORMAL); 495 495 -
branches/egtra/ab5.0/abdev/abdev/SubOperation.cpp
r792 r793 838 838 extern HICON hOwnerIcon,hBasicProgramIcon,hTextDocumentIcon,hWindowDocumentIcon; 839 839 hOwnerIcon=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_MAIN),IMAGE_ICON,16,16,LR_DEFAULTCOLOR); 840 hBasicProgramIcon =ActiveBasic::Resource::LoadIcon(hResInst, IDI_BASICPROGRAM, 16, 16, LR_DEFAULTCOLOR);841 hTextDocumentIcon =ActiveBasic::Resource::LoadIcon(hResInst,IDI_TEXTDOCUMENT,16,16,LR_DEFAULTCOLOR);842 hWindowDocumentIcon =ActiveBasic::Resource::LoadIcon(hResInst,IDI_WINDOW,16,16,LR_DEFAULTCOLOR);840 hBasicProgramIcon = ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_BASICPROGRAM, 16, 16, LR_DEFAULTCOLOR); 841 hTextDocumentIcon = ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_TEXTDOCUMENT, 16, 16, LR_DEFAULTCOLOR); 842 hWindowDocumentIcon = ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_WINDOW, 16, 16, LR_DEFAULTCOLOR); 843 843 844 844 … … 846 846 847 847 //メインメニュー 848 pobj_MainMenu=new CMenuEx(ActiveBasic::Resource::LoadMenu (hResInst, IDR_MAINMENU));848 pobj_MainMenu=new CMenuEx(ActiveBasic::Resource::LoadMenuAlt(hResInst, IDR_MAINMENU)); 849 849 850 850 pobj_MainMenu->InitOwnerDraw(1); //オーナー描画の初期化 … … 880 880 } 881 881 882 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon((itemID), ActiveBasic::Resource::LoadIcon (hIconResInst, (iconID), 16, 16));882 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon((itemID), ActiveBasic::Resource::LoadIconAlt(hIconResInst, (iconID), 16, 16)); 883 883 //メニューアイコンをセット 884 884 … … 954 954 955 955 extern HMENU hEditMenuBase,hEditMenu; 956 hEditMenuBase =LoadMenu(hResInst,MAKEINTRESOURCE(IDR_EDITMENU));956 hEditMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst, IDR_EDITMENU); 957 957 hEditMenu=GetSubMenu(hEditMenuBase,0); 958 958 959 959 extern HMENU hRebarMenuBase,hRebarMenu; 960 hRebarMenuBase = ActiveBasic::Resource::LoadMenu (hResInst, IDR_REBARMENU);960 hRebarMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst, IDR_REBARMENU); 961 961 hRebarMenu=GetSubMenu(hRebarMenuBase,0); 962 962 963 963 extern HMENU hTabMenuBase,hTabMenu,hTabColorMenu; 964 hTabMenuBase = ActiveBasic::Resource::LoadMenu (hResInst,IDR_TABMENU);964 hTabMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst,IDR_TABMENU); 965 965 hTabMenu=GetSubMenu(hTabMenuBase,0); 966 966 hTabColorMenu=GetSubMenu(hTabMenu,0); 967 967 968 968 extern HMENU hFileTreeMenuBase; 969 hFileTreeMenuBase = ActiveBasic::Resource::LoadMenu (hResInst,IDR_PROJECTVIEW_FILETREEMENU);969 hFileTreeMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst,IDR_PROJECTVIEW_FILETREEMENU); 970 970 971 971 extern HMENU hProcedureTreeMenuBase; 972 hProcedureTreeMenuBase = ActiveBasic::Resource::LoadMenu (hResInst,IDR_PROJECTVIEW_PROCEDURETREEMENU);972 hProcedureTreeMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst,IDR_PROJECTVIEW_PROCEDURETREEMENU); 973 973 974 974 extern HMENU hMaterialTreeMenuBase; 975 hMaterialTreeMenuBase = ActiveBasic::Resource::LoadMenu (hResInst,IDR_PROJECTVIEW_MATERIALTREEMENU);975 hMaterialTreeMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst,IDR_PROJECTVIEW_MATERIALTREEMENU); 976 976 977 977 extern HMENU hRadMenuBase; 978 hRadMenuBase = ActiveBasic::Resource::LoadMenu (hResInst,IDR_RADCONTEXTMENU);978 hRadMenuBase = ActiveBasic::Resource::LoadMenuAlt(hResInst,IDR_RADCONTEXTMENU); 979 979 980 980 //クリップボードのデータ形式(RAD用)を新規登録 -
branches/egtra/ab5.0/abdev/abdev/TextEditor_MouseEvent.cpp
r786 r793 69 69 70 70 //カーソルを矢印マークにする 71 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_ARROW_TO_RIGHT));71 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_ARROW_TO_RIGHT)); 72 72 73 73 GetNaturalCaretPos_Click(WndNum, … … 129 129 130 130 //カーソルを矢印マークにする 131 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_ARROW_TO_RIGHT));131 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_ARROW_TO_RIGHT)); 132 132 } 133 133 … … 255 255 256 256 //カーソルを矢印マークにする 257 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_ARROW_TO_RIGHT));257 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_ARROW_TO_RIGHT)); 258 258 259 259 return; … … 321 321 322 322 //カーソルを矢印マーク(デフォルト)にする 323 SetCursor(ActiveBasic::Resource::LoadCursor (hResInst, IDC_CURSOR_ARROW_TO_RIGHT));323 SetCursor(ActiveBasic::Resource::LoadCursorAlt(hResInst, IDC_CURSOR_ARROW_TO_RIGHT)); 324 324 325 325 return; -
branches/egtra/ab5.0/abdev/abdev/abdev.cpp
r791 r793 919 919 else 920 920 { 921 shfi.hIcon = ActiveBasic::Resource::LoadIcon (hResInst, IDI_TEXTDOCUMENT, 16, 16, LR_DEFAULTCOLOR);921 shfi.hIcon = ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_TEXTDOCUMENT, 16, 16, LR_DEFAULTCOLOR); 922 922 } 923 923 mdic.lParam=(LPARAM)shfi.hIcon; … … 1552 1552 //return 0; 1553 1553 1554 hAccel = ActiveBasic::Resource::LoadAccelerators (hResInst, IDR_ACCELERATOR1);1554 hAccel = ActiveBasic::Resource::LoadAcceleratorsAlt(hResInst, IDR_ACCELERATOR1); 1555 1555 1556 1556 //メインウィンドウ
Note:
See TracChangeset
for help on using the changeset viewer.