Re: Have the API's for menus changed in Windows Mobile 5.0
- From: r_z_aret@xxxxxxxxxxxx
- Date: Wed, 14 Dec 2005 17:00:54 -0500
On Wed, 14 Dec 2005 05:49:49 -0800, Adrian Roney <Adrian
Roney@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Hi,
>
>I have an app that was originally designed for Smartphone 2002.
>
>It has dynamically creates and chenges its menu entries based on which mode
>the app is in.
>
>I use:
>
> SHMENUBARINFO mbi;
> memset(&mbi, 0, sizeof(SHMENUBARINFO));
>
> // create the prices menu
> mbi.cbSize = sizeof(SHMENUBARINFO);
> mbi.hwndParent = hMainWnd;
> mbi.nToolBarId = IDR_MY_MENU;
> mbi.hInstRes = m_hInst;
>
> m_hMenuHandle = mbi.hwndMB;
>
>to create the menu, then when I want to change it I use
>
>HMENU hMenu = (HMENU)::SendMessage(m_hMenuHandle, SHCMBM_GETMENU, (WPARAM)0,
>(LPARAM)0);
>
>to get a handle to it, with which to get its sub menu and change it etc....
>
>It seems that on the Windows Mobile 5.0 device that hMenu is always NULL.
I work with Pocket PCs. I seem to have this issue with one of my apps,
but not two others. I'll have higher priorities for a couple of weeks,
so I won't be able to contribute much. In particular, I won't have a
chance to confirm/clarify my observations. But I sure hope to see an
answer here.
>
>Any ideas why?....it works perfectly on Smartphone 2002/2003 devices.
>
>Do I have to create the resources differently?
>
>Thanks
>
>Adrian
>
>
>
>
>I installed the app on a i-mate K-Jam Windows Mobile 5.0 device.
>
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- References:
- Have the API's for menus changed in Windows Mobile 5.0
- From: Adrian Roney
- Have the API's for menus changed in Windows Mobile 5.0
- Prev by Date: Re: WebServer on WinCE
- Next by Date: simple linker prob and no clue
- Previous by thread: Have the API's for menus changed in Windows Mobile 5.0
- Next by thread: WebServer on WinCE
- Index(es):
Relevant Pages
|