Windows CE 5.0 standby interface customization II-Start Menu

Source: Internet
Author: User

The modification effect of the Start menu is as follows:Customized Windows CE 5.0 standby interface (Overview)As shown in.

Modify the wince500/public/Shell/oak/HPC/Explorer/taskbar/stmenu. cpp file.
Because it was modified based on the source code of the Windows CE kernel, all the code was not pasted out. The main part of the modification is described. Some of the required variables must be customized as needed.

First, modify the stmenudata array.
For example, add: {idm_mobile, ids_mobile, idi_mobile, static_item, 0, 0, 0 },
You can add multiple rows of content if you need multiple menus.

Second, define the background image for the menu and load the background image: hbmstmenubackground

Third: add the menu background rendering process to the oda_select branch of startmenu_drawmenuitem ().
If (hbmstmenubackground)
{
HDC hdcmem = createcompatibledc (lpdis-> HDC );
If (hdcmem)
{
SelectObject (hdcmem, hbmstmenubackground );

Bitblt (lpdis-> HDC, RC. left, RC. top, RC. right-RC. left, RC. bottom-RC. top, hdcmem, RC. left, RC. top, srccopy );
Deletedc (hdcmem );
}
}

Fourth: In the startmenu_processcommand () function, process the menu response
For example
Case idm_mobile:
Info. cbsize = sizeof (Info );
Info. fmask = see_mask_nocloseprocess | see_mask_flag_no_ui;
Info. lpverb = NULL;
Info. lpfile = l "// residentflash // mymobileapp.exe ";
Info. lpparameters = NULL;
Info. lpdirectory = NULL;
Info. nshow = sw_show;
Info. hinstapp = NULL;
Shellexecuteex (& info );
Break;

Finally, delete the background image resource.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.