title: After hiding dialog based app on windows mobile platform, user cannot activate it anymore
body: <p>I am struggling with one problem in Windows Mobile programming (dialog based app).</p>
  
  <p>I have dialog based MFC application. App is created like this:</p>
  
  <pre><code>BOOL MyApp::InitInstance()
  {
      MainDlg dlg;
      dlg.DoModal();
  
      m_pMainWnd = &amp;dlg;
  
      return FALSE;
  }
  </code></pre>
  
  <p>This works just fine. But it has a big problem. If user minimizes application (for example by hitting "home button"), he cant retrieve application window again, which is unthinkable (because app some connections to external devices, and if this happenes, phone and device has to be reset).</p>
  
  <p>I had a solution, but wasnt able to implement it: create <code>CFrameWnd</code> which will be the main window, and this window will "load" dialogs. This would mean, that application will have window and user will be able to use task manager and bring it to top (this was impossible, because dialog based app isnt listed in applications in task manager).</p>
  
  <p>I would really appreciate a help from some experienced developer, who has better skills with MFC than me.</p>
  
  <p>For more information: I am using eVC++ 4.0 with SP 3</p>