Hello all,
I've been trying to figure out for days on how to create a menu bar
with a toolbar of icons.
I figured out how to add a menu resource using the following code:
memset(pMenuBar,0,sizeof(SHMENUBARINFO));
pMenuBar->cbSize = sizeof(SHMENUBARINFO);
pMenuBar->hwndParent = hWnd;
pMenuBar->dwFlags = SHCMBF_HMENU;
pMenuBar->hInstRes = hInstance;
pMenuBar->nToolBarId = IDR_mnuNSMenu;
SHCreateMenuBar(pMenuBar);
This works just fine and displays my menu, but I need to add some
icons (like in pocket word).
I tried setting the other members of the SHMEUBARINFO which are
cBmpImages, nBmpId but nothing happens.
If anybody has any good source that incorporates a toolbar with menu
items like in pocket word please let me know.
Again, I'm using Pocket PC 2003 and any source i've seen that is out
there is in Pocket PC 2002 or earlier.
Also I'm NOT USING MFC.
Thanks,
Geno