
CToolBarEx class is meant to be used instead of standard CToolBar class.The latest version of CMenuBar seems to work correctly when an embedded item is activated in-place.
#Create custom key for lxfree how to#
It also knows how to display itself on chevron menu when some of menu bar items (and/or caption buttons, in case of MDI app) get clipped:
#Create custom key for lxfree windows#
But I have failed to find one that utilizes new functions and structures introduced in Windows 98, namely the hbmpItem member of the MENUITEMINFO structure and the GetMenuInfo() / SetMenuInfo() functions along with the MENUINFO structure. There are plenty of good articles on the Net that show how to implement owner-draw bitmapped menus. Fortunately, I had some spare time a while ago and did write that anticipated CToolBarEx class.Īlthough bitmapped menus are not a distinction of the IE-style GUI, it is considered to be a good form for modern apps to have them nowadays. Frankly speaking, I was not excited about this idea in the beginning and the initial version of the class library did not contain any toolbar classes. I used some of his basic ideas in my CSizableReBar class.Īfter all, one thing left to be implemented to fully mimic the IE-style GUI was a toolbar control that could display itself on a chevron menu when some of its buttons get clipped. My favourite is CSizingControlBar by Cristi Posea (thanks Cristi for your excellent work!). It was not hard to implement corresponding C++ class, since there are a lot of samples of custom ControlBars on the Net. So this gave rise to another control, which I call SizableReBar here. Thus I came to the decision to create my own MenuBar which will meet all my unpretentious needs.Īs my MenuBar was getting along I realized that it also would be nice to incorporate the standard ReBar control into another sizable "re-bar" just like IE does, so that the user could resize the ReBar by dragging a divider between the frame's client area and the ReBar itself.

This is possibly because the authors were trying to mimic MS Office/DevStudio (which is more complicated indeed) rather than the IE menu bar. But most of those articles seem to pretend to be too universal and as a result are too heavy. Finally, I visited Internet sites devoted to MFC programming and found there some good articles concerning the problem in question. Unfortunately, Paul's article addresses SDI applications rather than MDI, although it gives many useful ideas and tricks which I used later on. Then, I ran across an article by Paul DiLascia (with a working sample!).

First, I read an article in MSDN Library named " Creating an Internet Explorer-style Menu Bar" which gives a brief idea of how to get started. I was recently looking for a sample of how to mimic the IE menu bar.
