Re: Have the API's for menus changed in Windows Mobile 5.0

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: app running in Mobile 5 sometimes crashes in Mobile 6
    ... method to display forms, as explained in a MSDN article. ... the HTC Smartphone with a hard keyboard that runs Windows Mobile 6 ... and continue running my app. ... We had a user who was testing our application in WM6, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Self-signing applications
    ... to do that a) you need to have the 'pushing' app be privileged signed and b) the EULA explicitly forbids this - so they will revoke your certificate if they catch you. ... Smartphone has used this model for a few years now - and most carriers just leave the phones open, every once in a while someone will close there phone up. ... OEMs don't really want to diverge - the major selling point of Windows Mobile is the third party apps - Customers aren't stupid - and avoid locked devices. ... signing for drivers and services. ...
    (microsoft.public.pocketpc.developer)
  • Re: app running in Mobile 5 sometimes crashes in Mobile 6
    ... exited using remote process viewer, your app could still be running ... running the application for over a year now, all in Windows Mobile 5 ... the HTC Smartphone with a hard keyboard that runs Windows Mobile 6 ...
    (microsoft.public.dotnet.framework.compactframework)
  • Have the APIs for menus changed in Windows Mobile 5.0
    ... I have an app that was originally designed for Smartphone 2002. ... It has dynamically creates and chenges its menu entries based on which mode ... It seems that on the Windows Mobile 5.0 device that hMenu is always NULL. ... Any ideas why?....it works perfectly on Smartphone 2002/2003 devices. ...
    (microsoft.public.windowsce.app.development)
  • Re: eVB app deployment
    ... programming for pocket pc", but then you mention "Will the app ... run smoothly on smartphone windows mobile 2003?" ... eVB apps run faster on a 2003 Smartphone then on a 2002 smartphone. ... My app has no much extra features so that eVB should be ...
    (microsoft.public.pocketpc.developer)