Changeset 792 in dev


Ignore:
Timestamp:
Jan 30, 2011, 6:15:50 PM (14 years ago)
Author:
イグトランス (egtra)
Message:

LoadMenuの代替関数を実装

Location:
branches/egtra/ab5.0/abdev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.cpp

    r791 r792  
    134134ACCEL AccelFromEntry(ACCELTABLEENTRY const& e)
    135135{
    136     ACCEL t = {e.fFlags & 0x7f, e.wAnsi, e.wId};
     136    ACCEL t = {static_cast<BYTE>(e.fFlags & 0x7f), e.wAnsi, e.wId};
    137137    return t;
    138138}
     
    161161}
    162162
     163HMENU LoadMenu(HINSTANCE hinst, USHORT id)
     164{
     165    return LoadMenuIndirect(GetResource(hinst, id, RT_MENU));
     166}
     167
    163168}}
    164169
  • branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h

    r791 r792  
    1616HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id);
    1717
     18HMENU LoadMenu(HINSTANCE hinst, USHORT id);
     19
    1820struct IconDeleter
    1921{
  • branches/egtra/ab5.0/abdev/abdev/SubOperation.cpp

    r786 r792  
    846846
    847847    //メインメニュー
    848     pobj_MainMenu=new CMenuEx(LoadMenu(hResInst,MAKEINTRESOURCE(IDR_MAINMENU)));
     848    pobj_MainMenu=new CMenuEx(ActiveBasic::Resource::LoadMenu(hResInst, IDR_MAINMENU));
    849849
    850850    pobj_MainMenu->InitOwnerDraw(1);            //オーナー描画の初期化
     
    958958
    959959    extern HMENU hRebarMenuBase,hRebarMenu;
    960     hRebarMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_REBARMENU));
     960    hRebarMenuBase = ActiveBasic::Resource::LoadMenu(hResInst, IDR_REBARMENU);
    961961    hRebarMenu=GetSubMenu(hRebarMenuBase,0);
    962962
    963963    extern HMENU hTabMenuBase,hTabMenu,hTabColorMenu;
    964     hTabMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_TABMENU));
     964    hTabMenuBase = ActiveBasic::Resource::LoadMenu(hResInst,IDR_TABMENU);
    965965    hTabMenu=GetSubMenu(hTabMenuBase,0);
    966966    hTabColorMenu=GetSubMenu(hTabMenu,0);
    967967
    968968    extern HMENU hFileTreeMenuBase;
    969     hFileTreeMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_PROJECTVIEW_FILETREEMENU));
     969    hFileTreeMenuBase = ActiveBasic::Resource::LoadMenu(hResInst,IDR_PROJECTVIEW_FILETREEMENU);
    970970
    971971    extern HMENU hProcedureTreeMenuBase;
    972     hProcedureTreeMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_PROJECTVIEW_PROCEDURETREEMENU));
     972    hProcedureTreeMenuBase = ActiveBasic::Resource::LoadMenu(hResInst,IDR_PROJECTVIEW_PROCEDURETREEMENU);
    973973
    974974    extern HMENU hMaterialTreeMenuBase;
    975     hMaterialTreeMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_PROJECTVIEW_MATERIALTREEMENU));
     975    hMaterialTreeMenuBase = ActiveBasic::Resource::LoadMenu(hResInst,IDR_PROJECTVIEW_MATERIALTREEMENU);
    976976
    977977    extern HMENU hRadMenuBase;
    978     hRadMenuBase=LoadMenu(hResInst,MAKEINTRESOURCE(IDR_RADCONTEXTMENU));
     978    hRadMenuBase = ActiveBasic::Resource::LoadMenu(hResInst,IDR_RADCONTEXTMENU);
    979979
    980980    //クリップボードのデータ形式(RAD用)を新規登録
Note: See TracChangeset for help on using the changeset viewer.