Crossword
This code sample is named Crossword. It demonstrates how to build system metric awareness into an application. Crossword can detect screen resolution and orientation.
ChangeDisplaySettingsEx function
GetDeviceCaps function
GetSystemMetrics function
SHGetUIMetrics function
WM_SETTINGCHANGE message
WM_SIZE message
-
Navigate to one of the solution files (*.sln), and double-click it. By default, the solution files are copied to the following folders:
C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\PocketPC\CPP\win32\Crossword\BaseSample\BaseSample.sln
C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\PocketPC\CPP\win32\Crossword\Landscapeaware\LandscapeAware.sln
C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\PocketPC\CPP\win32\Crossword\Hidpiaware\HidpiAware.sln
Microsoft Visual Studio launches and loads the solution.
-
Build the solution (Ctrl+Shift+B).
-
Deploy the solution (F5).