Author: arm-WinCE
Adding an application to the Start Menu of Wince should be a common function. During product customization, add the application of this product to startmenu, so that users can easily start the program, the following is an introduction:
Let's talk about the principle first. In fact, after wince is started, click Start and then click programs. All the applications that can be seen in it are actually stored in the form of files, they are stored in the/Windows/programs directory and are all shortcut files. These shortcut files are connected to real applications, which is so simple.
After understanding this principle, you can understand how to do it. The steps are as follows:
1. Change the project. bib file and add the application. Here, Hello, world is used as an example:
Hello.exe D:/wince600/osdesigns/emulator/reldir/deviceemulator_armv4i_release/hello.exe NK s
2. Create a shortcut file for the application. You can create a *. txt file and add the following content to it:18 #/Windows/hello.exe, Where 18 indicates the number of characters next to it, close the TXT file, rename it as hello. lnk, and copy the file to the release directory of the wince project.
3. Change the project. bib file, including the hello. lnk file, as shown below:
Hello. lnk D:/wince600/osdesigns/emulator/reldir/deviceemulator_armv4i_release/Hello. lnk NK sh
4. Open the project. dat file and locate hello. lnk in the/Windows/programs directory, as shown below:
Directory ("/Windows/programs"):-file ("Hello. lnk", "/Windows/Hello. lnk ")
5. Copy project. dat and project. bib to the project's release directory, and then makimge.
When running wince, you can see that the application has been added to the programs of startmenu,
Through this example, we can see that the files contained in bib will be stored in the/Windows Directory of the wince system after makeimg, you can change the DAT file to redirect them to another folder. You can add a program to programs in this way, but if you want to change startmenu itself, you need to change the source code, in/wince600/public/Shell/oak/HPC/Explorer/taskbar/stmenu. CPP.