Share via


Shell Samples (Windows CE 5.0)

Send Feedback

Sample 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.

Code example Topic
Shows how to retrieve the display name and path for the Favorites folder. SHGetSpecialFolderLocation
Shows how to make a copy of a bitmap. CreateBitmap
Shows how to obtain a device context for the display driver. CreateDC
Shows how to copy the pixels in one bitmap into another bitmap. BitBlt
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. BeginPaint
Shows how to define a dialog box template. Creating Dialog Boxes
Shows how to create a ToolTip using a window class. Creating a ToolTip Control
Shows how to retrieve the display name from an item's PIDL. SHBindToParent
Shows a simple TTN_GETDISPINFO notification handler. Creating Multiline ToolTips
Shows how to create shapes and lines using the Rectangle, Ellipse, Polygon, and RoundRect functions. Creating Shapes and Lines
Shows how to create a command bar. Creating a Command Bar
Shows how to obtain and release a device context and get a new object. Obtaining a Display Device Context
Shows how to create an empty menu. Using Menu Creation Functions
Shows how to display a shortcut menu. Using Menu Creation Functions
Shows how to add items to a menu. Using Menu Creation Functions
Shows how to change the state of the check mark attribute. Setting Menu Item Attributes
Shows how to create and display a caret. Creating a Caret
Shows how to create a memory device context, how to use a CreateCompatibleBitmap to create a bitmap, and how to use BitBlt to copy bitmap data from the source device context to the target device context. Creating Bitmaps
Shows how to create color palettes. Working with Palettes
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. Creating Timers
Shows how to shows how to use pen functions. Working with Pens
Shows how to use brush functions. Working with Brushes
Shows how to application on the CEPC, the screen will be rotated clockwise by 90 degrees. Creating a Project for the Screen Rotation Application
Shows how to establish the shape of a wait cursor. Creating a Cursor
Shows how to load a bitmap and display it. Creating Icons, Bitmaps, Images, and Strings
Shows how to define a resource for an icon, bitmap, cursor, and string. Creating Icons, Bitmaps, Images, and Strings
Shows how to register and create a command bands control. Creating a Command Bands Control
Shows how to create a rebar control. Creating a Rebar Control
Shows how to create a list view control and an accompanying image list. Creating Image Lists
Shows how to add columns and set the number of items in the list view window. Adding Columns
Shows how to create and register a toolbar. Creating a Toolbar
Shows how to convert the coordinates of a mouse click or stylus tap to screen coordinates and use the new coordinates in a calculation. ClientToScreen
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 a Tree-View Image List
Shows how to create a tree-view control. Creating a Tree View
Shows how to handle drag-and-drop messages. Handling Drag-and-Drop Messages
Shows how to add a control to a normal window. Working with Window Controls
Shows how to create a push button and a static control in a dialog box. Working with Window Controls
Shows how to create an edit control. Creating an Edit Control
Shows how to use the POPUP statement. POPUP Resource
Shows how to load an icon and a cursor and then allocate memory for a buffer. Adding a Window Property
Shows how to enable the high-contrast option and set the color scheme to high-contrast white. Enabling High Contrast
Shows how to define the resources for an application. Sample Resource-Definition File
Shows the window procedure framework that a typical application uses to receive and process keystroke messages. Processing Keyboard Messages
Shows how to enable the sound sentry option and direct the OS to flash the entire screen when an application generates a sound. Enabling Sound Sentry
Shows how to create a scroll bar. Creating a Scroll Bar
Shows how to initialize a list box Creating a List Box
Shows how to create several buttons. Creating a Button
Shows how to enable the mouse keys. Enabling Mouse 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 Sticky Keys
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. Setting Accessibility Time-out Periods
Shows how to retrieve the status of the show sounds. Enabling Show Sounds
Shows how to use accelerator keys. ACCELERATORS Resource
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. Accessibility Hot Keys
Shows how to enable the toggle keys. Enabling Toggle Keys

See Also

Shell

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.