Hello,
I have attached the code that creates the error. Basically I would like to switch between different views when the screen is rotated. I am using the smartphone 2003 emulator.
in the KeyDown method
SetDisplayMode(dwMode);
if(mode == 1)
mode = 2;
else
mode = 1;
In the processnextframe method I have:
When I rotate the panel does not change. The variable "mode" is declared in the constructor.
Please help.[/code]
I have attached the code that creates the error. Basically I would like to switch between different views when the screen is rotated. I am using the smartphone 2003 emulator.
in the KeyDown method
SetDisplayMode(dwMode);
if(mode == 1)
mode = 2;
else
mode = 1;
In the processnextframe method I have:
- Code:
HRESULT CMyApplication::ProcessNextFrame(CGapiSurface* pBackBuffer, DWORD dwFlags)
{
switch(mode)
{
case 1:
Panel1(pBackBuffer);
break;
case 2:
Panel2(pBackBuffer);
break;
default:
break;
}
return S_OK;
}
When I rotate the panel does not change. The variable "mode" is declared in the constructor.
Please help.[/code]
Attachments:
bug.zip (4 KB)