Changeset 784 in dev for branches/egtra/ab5.0/abdev/abdev/SubOperation.cpp
- Timestamp:
- Jan 29, 2011, 6:17:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/abdev/SubOperation.cpp
r772 r784 692 692 const std::string resDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\res.dll"; 693 693 hResInst = LoadLibrary( resDllPath.c_str() ); 694 if(!hResInst){ 695 MessageBox(0,"res.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); 696 return 0; 697 } 694 698 695 699 //アイコンリソースDLLをマッピング 696 700 const std::string iconResDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\icon_res.dll"; 697 hIconResInst = LoadLibrary( iconResDllPath.c_str() ); 701 hIconResInst = LoadLibraryEx( iconResDllPath.c_str(), nullptr, LOAD_LIBRARY_AS_DATAFILE ); 702 if(!hIconResInst){ 703 MessageBox(0,"icon_res.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); 704 return 0; 705 } 698 706 699 707 //LuxCtrl.dllをマッピング … … 872 880 } 873 881 874 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon(itemID,(HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(iconID),IMAGE_ICON,16,16,0));882 #define ICONSET(itemID, iconID) pobj_MainMenu->SetIcon((itemID), ActiveBasic::Resource::LoadIcon(hIconResInst, (iconID), 16, 16)); 875 883 //メニューアイコンをセット 876 884
Note:
See TracChangeset
for help on using the changeset viewer.