none
SDK Package: some of my menu items configed in ctc file just don't show up RRS feed

  • Question

  • Enviroment: Visual Studio 2005 Professional (English) , WinXP SP3 (English)
    Language: C++
    Project Type: VS Package

    i have added several context menu in ctc file
    guidVSStd97:cmdidBringForward, guidMyPKG:IDG_Editor_Ctx, 0x0000;
    guidVSStd97:cmdidBringToFront, guidMyPKG:IDG_Editor_Ctx, 0x0010;  (visible)
    guidVSStd97:cmdidSendBackward, guidMyPKG:IDG_Editor_Ctx, 0x0020;
    guidVSStd97:cmdidSendToBack, guidMyPKG:IDG_Editor_Ctx, 0x0030 (visible)

    except these menu items, my context menu contain other items, but i have checked to make sure there're no duplicated ids.
    but only two of them could show up,  does anyone know the reason?
    immortality
    • Edited by think twice Thursday, April 16, 2009 2:15 AM adjust post format
    Wednesday, April 15, 2009 3:59 AM

Answers

  • I could not find a reference to either cmdidBringForward or cmdidSendBackward in the VS SDK includes or ctc files. These commands are in VS 2008, but I don't see them in VS 2005.

    My suspicion is that the commands are defined with different flags, which could account for the difference in behavior. Do you see your IOleCommandTarget::QueryStatus getting called for these commands? How does your QueryStatus implementation process these commands?

    Sincerely,
    Ed Dore
    Tuesday, April 21, 2009 5:54 PM
    Moderator

All replies

  • Wednesday, April 15, 2009 6:51 AM
  • How to ask questions to increase your chances of an answer


    Return to the source, learn the way!
    thanks for your remind

    immortality
    Thursday, April 16, 2009 2:17 AM
  • I could not find a reference to either cmdidBringForward or cmdidSendBackward in the VS SDK includes or ctc files. These commands are in VS 2008, but I don't see them in VS 2005.

    My suspicion is that the commands are defined with different flags, which could account for the difference in behavior. Do you see your IOleCommandTarget::QueryStatus getting called for these commands? How does your QueryStatus implementation process these commands?

    Sincerely,
    Ed Dore
    Tuesday, April 21, 2009 5:54 PM
    Moderator
  • I could not find a reference to either cmdidBringForward or cmdidSendBackward in the VS SDK includes or ctc files. These commands are in VS 2008, but I don't see them in VS 2005.

    My suspicion is that the commands are defined with different flags, which could account for the difference in behavior. Do you see your IOleCommandTarget::QueryStatus getting called for these commands? How does your QueryStatus implementation process these commands?

    Sincerely,
    Ed Dore
    it's exactly the same problem describe here
    http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-ext/1383/Handling-a-StandardCommands-not-defined-in-any-VS-default-ctc
    Monday, May 25, 2009 10:40 AM