When Windows CE is started, the Start menu is hidden and the Internet Explorer program is displayed in full screen.

Source: Internet
Author: User

1. Run the program when Windows CE is started.
If the program is stored in the flash or hard disk of the target device, it means that the program will still be saved after power failure, you can not build the program together into the OS image, directly in the project. add the following section to the reg file:

[HKEY_LOCAL_MACHINE/init]
Launchxx = "/myprogram.exe"
Dependxx = HEX: 14, 00, 1e, 00

The smaller the number of launch, the more it is executed first. The string in launch is the absolute path of the Program on the target device (Windows CE does not support relative paths ). The following depend indicates the previous program that the program depends on. The system will wait until all the programs in the depend are launch and then execute the current program. The startup sequence of the slave will be launch50 (this can be seen in the shell. reg file after the first build of OS), so you need to add the prerequisite program 32 and 00 in the depend.

2. In the myprogram.exe file, all you need to do is to hide the "Start" menu and start IE. You can hide the Start menu as follows:

Point P;
P. x = 0;
P. Y = 479; // The vertical value of the resolution is reduced by one. If it is 640 × 480, It is 479.
Hwnd cwndstart = windowfrompoint (P );
Showwindow (cwndstart, sw_hide );

This is different from "hide the taskbar automatically", because if you do not call the showwindow (cwndstart, sw_show) function, the taskbar will always be hidden: (the same on the PC ......

3. To start IE, you can directly shellexecuteex () an HTTP file with the default IE File. To set IE, you can write an EVC program to embed the browser into it, can I refer to Fu Linlin's Windows CE series Article workshop /? Id = 1145.
If you do not want a menu, you can also delete the m_wndcommandbar code in the oncreate function of mainfrm. cpp.
To define the browser size, set the Parameters Cs. X, CS. Y, CS. CX, and CS. Cy in the precreatewindow function of mainfrm. cpp, for example
CS. Cx = getsystemmetrics (sm_cxscreen );
CS. Cy = getsystemmetrics (sm_cyscreen );
The browser can be displayed in full screen.

 

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.