![]() |
|
QA: How to create Today-friendly dialog based application?
By Vassili Philippov, July 01, 2001.
QuestionI have created a dialog based application. It works ok. But when I click Today item in Start menu my program is shown instead of Today screen. How can I fix it? AnswerThis is because Today application is like a desktop on PC. When a dialog has no parent a Today window is considered as a parent window. This behaviour is necessary to get access to popup messages. For example when message about low battery is shown and you switch to another application. The onl way to access this popup message window is to call Today program. But such behaviour is not necessary for windows that could be accessible from menu.
To fix it you should change dialog's WS_POPUP style to WS_OVERLAPPED. Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||