zoukankan      html  css  js  c++  java
  • Menu操作

    PopMenu

    void CTransferAgentAccountDlg::OnRclickListAgentAc(NMHDR* pNMHDR, LRESULT* pResult)
    {
        POSITION pos;
        CMenu popmenu, *psubMenu = NULL;
        CPoint oPoint;
        pos = m_ListAgent.GetFirstSelectedItemPosition();
        if(!pos)
        {
            return;
        }
        GetCursorPos( &oPoint);
        popmenu.LoadMenu(IDR_MENU_AGENT);
        psubMenu = popmenu.GetSubMenu(0);
        psubMenu->TrackPopupMenu(TPM_LEFTALIGN, oPoint.x, oPoint.y, this);
        *pResult = 0;
    }

    delete menu

    psubMenu->DeleteMenu(ID_MEMU_FIFO_IB_ADD, MF_GRAYED);
    psubMenu->DeleteMenu(ID_MEMU_FIFO_IB_DELETE, MF_GRAYED);
    psubMenu->DeleteMenu(ID_MEMU_FIFO_IB_EDIT, MF_GRAYED);

     

    enable menu

    psubMenu->EnableMenuItem(ID_MEMU_FIFO_IB_VIEW, MF_GRAYED);

  • 相关阅读:
    安卓-登陆页面的实现
    异常
    实用类
    Hashset
    Map
    LinkedList
    arraylist
    继承
    字符串相关代码
    数组代码
  • 原文地址:https://www.cnblogs.com/jinsedemaitian/p/5589206.html
Copyright © 2011-2022 走看看