I have found three small issues look at the solution:
1. atlframe.h, DlgResize_Init: we should place in #ifndef _WIN32_WCE this block:
// Adding this style removes an empty icon that dialogs with WS_THICKFRAME have.
// Setting icon to NULL is required when XP themes are active.
// Note: This will not prevent adding an icon for the dialog using SetIcon()
if((dwStyle & WS_CHILD) == 0)
if(pT->GetIcon(FALSE) == NULL)
because on wce all main windows are fullscreen without any borders.
2. atlwince.h, it would be great to replace all calls (3) of SetOrientation with pT->SetOrientation because I had to reimplement the whole class to get a needed functionality. There must be a way to change a behavior of base classes.
3. atlwince.h, Sometimes StdPlatformInit and StdShidInit are called with pT-> sometimes not. I suppose there should be a unified way of calling via pT->