I would like to know if I'm doing or assuming something wrong here. I'm working on an ipaq pocket pc and I took a sample code project (GapiDraw35RC1Eval\samples\win32\Simple\evc4) and replaced the code in ProcessNextFrame with this:
The open browser opens - however I have this problem:
When the open dialog is closed by cancel or choosing a file, my application is not restored.
Please, can anyone help me...
- Code:
HRESULT CMyApplication::ProcessNextFrame(CGapiSurface* pBackBuffer, DWORD dwFlags)
{
static bool onOne = true;
if (onOne)
{
TCHAR szBuffer[_MAX_PATH];
OPENFILENAME lpOfn;
memset(&lpOfn;, 0, sizeof(OPENFILENAME));
szBuffer[0] = '\0';
lpOfn.lStructSize = sizeof(OPENFILENAME);
lpOfn.lpstrFile = szBuffer;
lpOfn.hwndOwner = m_hWnd;
GetOpenFileName(&lpOfn;);
onOne = false;
}
return S_OK;
}
The open browser opens - however I have this problem:
When the open dialog is closed by cancel or choosing a file, my application is not restored.
Please, can anyone help me...