Menu and Submenu
-
Hello Guys, I m trying for a sample which si have menu with dynamic items (i seen sample in code project for dynamic items), whihch will dynamically create menu with menus and sub menus, but problem is main menu coming with left side(column) seprator for images and text and submenu are coming with without seprator, how we can set options with or without left separator
-
Hello Guys, I m trying for a sample which si have menu with dynamic items (i seen sample in code project for dynamic items), whihch will dynamically create menu with menus and sub menus, but problem is main menu coming with left side(column) seprator for images and text and submenu are coming with without seprator, how we can set options with or without left separator
First, I am assuming that you using C++ and MFC. If this is not the case, please tell me what tools you are using and ignore my answer below. In MFC, there is a class called CMenu. This class has member functions to deal with menus including adding and modifying menus. You can look at the member functions AppendMenu and ModifyMenu. Also, if you want to get fancy you can consider the idea of Owner-Draw Menus. This is described in the book "Programming Windows with MFC" by Jeff Prosise. Bob
-
Hello Guys, I m trying for a sample which si have menu with dynamic items (i seen sample in code project for dynamic items), whihch will dynamically create menu with menus and sub menus, but problem is main menu coming with left side(column) seprator for images and text and submenu are coming with without seprator, how we can set options with or without left separator