I have create my app for windows mobile 5.0 for Pocket Pc.and it can work.
and then a create a app for pocket pc 2003.and other function is ok.but only rotate function can not work.
On WM5.0 platform my app can switch dialog template for standard and with mode.the code is as follows:
void CMy2003TestDlg::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
{
DRA::RelayoutDialog(
AfxGetInstanceHandle(),
this->m_hWnd,
DRA::GetDisplayMode() != DRA::Portrait MAKEINTRESOURCE(IDD_MY2003TEST_DIALOG_WIDE) : MAKEINTRESOURCE(IDD_MY2003TEST_DIALOG));
}
the same code run on pocket pc 2003 can not work.I have click rotate button on Eumlator.wide mode is also old dialog layout.
thanks for you help.

why can not Relayout Dialog in OnSize() on Pocket PC 2003.