From: Paul S. <pm...@gm...> - 2011-01-05 10:02:06
|
Hello, On Tue, 4 Jan 2011 13:42:51 +0100 (CET) Vincent Torri <vt...@un...> 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:pm...@gm... |