CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    214

    c++ winapi - menus

    If I parse a xml file or even an ini file, would I have to create an owner drawn menu, in order, to use the information to create the menu?

    for example:

    Code:
    //ini
    
    [Menu]
       [Edit]
          Cut = 1
          Copy = 2
          Paste = 3
          Separator
    etc...
    Code:
    //menu output
    
    Cut                    //#define EditCut 1
    Copy                 //#define EditCopy 2
    Paste                //#define EditPaste 3
    Separator         //separator

  2. #2
    Join Date
    Apr 2008
    Posts
    214

    Re: c++ winapi - menus

    nvm

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: c++ winapi - menus

    Quote Originally Posted by zaryk View Post
    nvm

    It is considered "Good manners" to post the solution, even if you find it yorself.

    Consider the future users who do a search, and only get the information I quoted above. If that happened to YOU, how would you feel?
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Apr 2008
    Posts
    214

    Re: c++ winapi - menus

    Ok. This is what I found: You can have your program read an ini and then use the information to create a context menu outside of a resource file.

    Happy now?

    No code, No solution. Just a yes or no answer, which is why I said nvm.

    oh, and I would be happy for you, because you were able to find the answer yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured