Shell Samples (Windows Embedded CE 6.0)
1/6/2010
There is sample code spread throughout the Shell documentation.
Sample Windows Embedded CE code for the Advanced Backlight Options dialog box is in the %_WINCEROOT%\Public\Wceshellfe\Oak\Ctlpnl\AdvBacklight directory.
The following table shows some Shell code examples that are provided in the documentation; these are not complete samples.
In This Section
- ACCELERATORS Resource
Shows how to use accelerator keys.
- Accessibility Hot Keys
Shows how to enable the mouse keys option, enable the hot key for that option, and direct the OS to play a siren sound when the user turns the mouse keys option on or off by using the hot key.
- Adding Columns
Shows how to add columns and set the number of items in the list view window.
- BeginPaint
A window procedure that processes a WM_PAINT message by using BeginPaint to prepare a window for painting, and then draws an icon or bitmap in the window.
- BitBlt
Shows how to copy the pixels in one bitmap into another bitmap.
- ClientToScreen
Shows how to convert the coordinates of a mouse click or stylus tap to screen coordinates and use the new coordinates in a calculation.
- CreateBitmap
Shows how to make a copy of a bitmap.
- CreateDC
Shows how to obtain a device context for the display driver.
- Creating a Command Bands Control
Shows how to register and create a command bands control.
- Creating a Rebar Control
Shows how to create a rebar control.
- Creating a Toolbar
Shows how to create and register a toolbar.
- Creating a ToolTip Control
Shows how to create a ToolTip using a window class.
- Creating a Tree View
Shows how to create a tree-view control.
- Creating a Tree-View Image List
Shows how to create and set an image list for a tree-view control, and then redraw the control by using the new images.
- Creating Image Lists
Shows how to create a list view control and an accompanying image list.
- Creating Multiline ToolTips
Shows a simple TTN_GETDISPINFO notification handler.
- Creating Shapes and Lines
Shows how to create shapes and lines using the Rectangle, Ellipse, Polygon, and RoundRect functions.
- Enabling High Contrast
Shows how to enable the high-contrast option and set the color scheme to high-contrast white.
- Enabling Mouse Keys
Shows how to enable the mouse keys.
- Enabling Show Sounds
Shows how to retrieve the status of the show sounds.
- Enabling Sound Sentry
Shows how to enable the sound sentry option and direct the OS to flash the entire screen when an application generates a sound.
- Enabling Sticky Keys
Shows how to enable the sticky keys option and direct the OS to play a sound when the user latches, locks, or releases modifier keys when using the sticky keys option.
- Enabling Toggle Keys
Shows how to enable the toggle keys.
- Handling Drag-and-Drop Messages
Shows how to handle drag-and-drop messages.
- Obtaining a Display Device Context
Shows how to obtain and release a device context and get a new object.
- POPUP Resource
Shows how to use the POPUP statement.
- Processing Keyboard Messages
Shows the window procedure framework that a typical application uses to receive and process keystroke messages.
- Sample Resource-Definition File
Shows how to define the resources for an application.
- Setting Accessibility Time-out Periods
Shows how to set the accessibility time-out period to 10 minutes and how to specify that the OS should play a descending siren sound when the time-out period elapses and the OS turns off the accessibility options.
- Working with Brushes
Shows how to use brush functions.
- Working with Palettes
Shows how to create color palettes.
Working with Pens
Shows how to shows how to use pen functions.Adding a Window Property
Shows how to load an icon and a cursor and then allocate memory for a buffer.
- Creating a Button
Shows how to create several buttons.
- Creating a Caret
Shows how to create and display a caret.
- Creating a Cursor
Shows how to establish the shape of a wait cursor.
- Creating a List Box
Shows how to initialize a list box
- Creating a Project for the Screen Rotation Application
Shows how to application on the CEPC, the screen will be rotated clockwise by 90 degrees.
- Creating a Scroll Bar
Shows how to create a scroll bar.
- Creating an Edit Control
Shows how to create an edit control.
- Creating Icons, Bitmaps, Images, and Strings
Shows how to load a bitmap and display it. Also shows how to define a resource for an icon, bitmap, cursor, and string.
- Creating Timers
Shows how to sample TimerProc callback function that draws text in a window and makes a sound when the function is called after the timer expires.
- Enabling High Contrast
Shows how to enable the high-contrast option and set the color scheme to high-contrast white.
- Setting Menu Item Attributes
Shows how to change the state of the check mark attribute.
- SHBindToParent
Shows how to retrieve the display name from an item's PIDL.
- SHGetSpecialFolderLocation
Shows how to retrieve the display name and path for the Favorites folder.
Using Menu Creation Functions
Shows how to:- Create an empty menu.
- Display a shortcut menu.
- Add items to a menu.
Working with Window Controls
Shows how to add a control to a normal window.Shows how to create a push button and a static control in a dialog box.