If you are getting a compile error trying to use SHGetUIMetrics() after installing the “Developer Resources for Windows Mobile 2003 Second Edition”, just delete aygshell.h from the Developer Resources.  (You will revert to using the one from the original 2003 SDK.)  This will give you a version of SHGetUIMetrics() that will work on all devices:  2003 Second Edition, 2003, and 2002.


[Author: Jason Fuller]

Comments (1)

  1. Well, if you delete aygshell.h from the “Developer Resources for Windows Mobile 2003 Second Edition” you won’t have any declaration of SHGetUIMetrics() at all.

    I guess what you are trying to say is that there is a inline SHGetUIMetrics() in the "Crossword" sample of the above mentioned resources one could copy. This version works on PPC2002, WM2003 and WM2003SE.

    BTW there is a bug in the RelayoutDialog() function in the Crossword sample. The way the code checks whether a dialog item has SS_ICON or SS_BITMAP style is wrong because those constants are not bit fields.

    I don’t have the code here right now but I can look it up and post an excerpt it here if somebody is interested.

Skip to main content