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.