
Q: Smart Minimize and MFC Dialog Based App
Hello Everyone,
I have a question.
I created a dialog based app with MFC app wizard. By default, it displays
"Done" button (OK in a circle). So I replaced it with "Smart Minimize"
button by adding the following code in OnInitDialog() handler.
SHDoneButton(m_hWnd, SHDB_HIDE);
Now "X" in a circle button is displayed in stead of "Done" button. It works
fine most of the time. My app is minimized and still running (I confirmed
this with Remote Process Viewer.)
HOWEVER when there is only my app running, smart minimizing it does NOT
update the main screen area (where Today screen should appear). Today's menu
bar (with "New" menu item) appears but the main portion of the screen still
shows my app's dialog.
What am I doing wrong here? It's really simple app (I added only one line to
App Wizard's skelton code).
Any help would be appreciated.
Thanks in advance,
Shigeo Kiriyama
Nikon Instruments Inc.