Hi Mick,
Thanks for getting back to me. So if I understand you correctly every
feature you're class now provides is really just accessing properties of the
windows API and is not adding any additional functionality to the API, just
VB. If I understand it correctly SubClassing is where a programmer can add
to the functionality of Windows thereby inventing new objects and behaviors.
So a subclassed feature would presumably be more error prone as it wouldn't
have tested and used for years and years like most of the Windows API. If
you do ever update your class please post a notice to the group so we can
optionally update any projects that use it
.
Thanks again for your cool ODMenus Class.
Adios Amigo,
Christian Blackburn
Mick Doherty said:
The reason that the Menu looks different is that I have no control over the
MenuStyle. The difference you are seeing is not a difference in the Menu
Items(OK there is a slight difference), but a difference in the Menu
Border(Non Client Area). The MenuItem Class only draws the Client Area. To
get the FlatStyle Appearance with Shadow you need to Override the MainMenu
Class NCPaint events and draw the style there. This is not an easy Task as
the MainMenu and ContextMenu classes have been sealed and do not expose
these events. I think you should be able to achieve this through
subclassing, but it will very likely be a lot of work. I may look into this
when I get time.
message news:%
[email protected]... of
help