Question

I created a WinCE dialog based application. I want to add minimize option at the top right corner.

If i create an MFC dialog based application, a checkbox will be present for Minimize button asking whether minimize is required for the dialog being created.

But if i create MFC Application for SmartDevice, minimize checkbox will not be given at the time of creation of project. Also, Minimize property is not present in properties list of the Dialog.

Pls help me in solving the issue.

Was it helpful?

Solution

This is becasue WIndows Mobile doesn't really have the concept of minimizing and app to the task bar (as there is no task bar).

WinMo has "smart minimize" meaning which means that the Windows doesn't close, but instead moves back in the Z-Order, yes is still subject to closing by the OS if memory pressure gets high.

If you set the WS_MINIMIZEBOX style bit, you will get an (X) in the upper right, which is the smart-minimize button. If that bit is not set you will get an (ok) button, which fully closes the window.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top