Thread: Simple Menu Questions

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    39

    Simple Menu Questions (And a window question)

    I have 2 questions about menus + windows:

    1. How do you create subcatagories for menus? Such as:

    File -> New -> Project?

    I asked before, and tried what people suggested, but it didn't work.


    2. How do you create lines between two menu items? Such as:

    New
    -----
    Save
    Open
    -----
    Exit

    3. when you create a window, how do you make it automatically maximized?
    ---------------------------
    I use:
    Dev C++
    Windows XP

    I understand the menu creation process enough to make a simple menu, so don't worry about that.
    Last edited by Olidivera; 05-24-2005 at 09:29 PM. Reason: More Questions

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    1. MENU Example
    2. MENUITEM
    3. Window Styles

    gg

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    39
    Thanks a bunch. This helped a lot.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    183
    As for showing the window maximized, I thought that I'd save you the time of reading through the MSDN section. Here's a quick way :

    ShowWindow(hwnd, SW_MAXIMIZE);

    Something like that. I'd just use that instead of whatever show window function your using. Just what I'd do. More than likely, there's some much more flexible, updated, sophisticated method of doing it, but that's quicker than most.

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Glad to see you're searching the board but not so happy to see you indulging in thread necrophilia. Please check the dates of threads you are viewing before responding to them so as to avoid such ugly bumps in future.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. Few simple questions...
    By Shane in forum C++ Programming
    Replies: 9
    Last Post: 08-06-2005, 02:40 AM
  3. A Few Simple Questions
    By Krak in forum Game Programming
    Replies: 4
    Last Post: 09-13-2003, 08:37 PM
  4. A few simple batch questions
    By sean in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 07-02-2003, 01:35 PM
  5. Help!!! Simple Menu Program
    By ghofigjong in forum C Programming
    Replies: 6
    Last Post: 12-02-2002, 04:19 PM