Hello, On Tue, 4 Jan 2011 13:42:51 +0100 (CET) Vincent Torri <vto...@univ-evry.fr> wrote:
> > > On Tue, 4 Jan 2011, Paul Sokolovsky wrote: > > > Hello, > > > > Has anybody stumbled at the implementation of aygshell functions > > like SHCreateMenuBar() for pure Win32? Maybe not as a standalone > > library, but as part of a project which supports both Win32 and > > WinCE. I'd appreciate any hint. > > The code is not released. But you can try google. I found that: > > http://wmdevelopers.blogspot.com/2008/05/create-menu-bar-programmatically-wm5.html Well, this talks how init menubar programmatically (vs from resource) on device, but I'd like to find code which creates something close on desktop windows. I did googling, but nothing good, even found aygshell.dll mock for HPC devices, but there it still recurses to wince-only CommandBar. So, I started to look how to implement it. The simplest case, when SHCMBF_HMENU is used with SHCreateMenuBar() easy to handle - just setting that menu for window/dialog. But normal case is more complex. For reference, here's what on find while thinking how it can be implemented: Toolbars don't natively support adding arbitrary controls, here's technique how: http://msdn.microsoft.com/en-us/library/bb760446(v=vs.85).aspx#Embedding_Non_Button_Controls_in_Toolbars Though it suggests using a Rebar instead. Here's an article on creating a menu with toolbar/rebar: http://msdn.microsoft.com/en-us/library/bb775450(v=vs.85).aspx -- Best regards, Paul mailto:pmis...@gmail.com ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel