I'm trying to create a hidden, modal dialog box (it will appear in
response to certain system tray icon messages). As usual, MFC is
fighting me every step of the way. The obvious way, de-selecting
WS_VISIBLE, does nothing. Nor can I call ShowWindow(SW_HIDE) in
OnInitDialog(). The only way I've been able to do this is to set a
timer for a short interval, and then do the ShowWindow(SW_HIDE) in
OnTimer(). But people may someday read this code, and I don't want
them to think I'm an idiot.
Does anyone know the right way to do this?
Sent via Deja.com http://www.deja.com/
Before you buy.