How to save the toolbar settings and selection
-
Hi all, I have an mdi application ,and here i have about 11 toolbars .All these toolbar are created a variable of CToolBar and then using the CreateEx() in the mainframe.cpp file,loaded all the toolbar . Now i have a menu called "Toolbar" in my application which selects/checks the toolbar WS_VISIBLE and checks/unchecks the toolbar .So when i check ,say any one toolbar,it shows at first instance,and if i uncheck ,it hides. Now i want to save these settings, so that once i close the application and opens it again,i get only the toolbar shown which are selected initially before the application closes. "In short,I want to display next time,only the toolbar which are checked . Please get me out of these problem(;
-
Hi all, I have an mdi application ,and here i have about 11 toolbars .All these toolbar are created a variable of CToolBar and then using the CreateEx() in the mainframe.cpp file,loaded all the toolbar . Now i have a menu called "Toolbar" in my application which selects/checks the toolbar WS_VISIBLE and checks/unchecks the toolbar .So when i check ,say any one toolbar,it shows at first instance,and if i uncheck ,it hides. Now i want to save these settings, so that once i close the application and opens it again,i get only the toolbar shown which are selected initially before the application closes. "In short,I want to display next time,only the toolbar which are checked . Please get me out of these problem(;
CFrameWnd::SaveBarState should do the trick. However keep in mind that this thing fails if you will delete one of toolbars or change ID. Igor Green http://www.grigsoft.com/ - files and folders comparison tools
-
Hi all, I have an mdi application ,and here i have about 11 toolbars .All these toolbar are created a variable of CToolBar and then using the CreateEx() in the mainframe.cpp file,loaded all the toolbar . Now i have a menu called "Toolbar" in my application which selects/checks the toolbar WS_VISIBLE and checks/unchecks the toolbar .So when i check ,say any one toolbar,it shows at first instance,and if i uncheck ,it hides. Now i want to save these settings, so that once i close the application and opens it again,i get only the toolbar shown which are selected initially before the application closes. "In short,I want to display next time,only the toolbar which are checked . Please get me out of these problem(;
You can use function GetBarInfo & SetBarInfo ----------------- conglt