Main dialog initially hidden, how? (mfc dialog app) 
Author Message
 Main dialog initially hidden, how? (mfc dialog app)

Arild:

There is another post entitled "Invisible dialog box" on this topic this very
day. See if this helps.

HTH,

David Wilkinson

==================

Quote:

> Hi,

> I've written an MFC based "Sticky notes" kind of program (dialog based) and
> I don't want the window to show up when the program is first run. It puts an
> icon in the system tray and it "unhides" when this is clicked. I've tried to
> do a ShowWindow(SW_HIDE) in InitDialog() but it didn't work, so I suppose
> the framework does another ShowWindow somewhere after that. Which would
> handler should I override to insert my SW_HIDE?
> Also, I'm using OnCancel to catch the "close window" event, so that I can
> simply hide the window (minimize to tray) instead of quitting. How can I
> easily let the program be terminated, now? (Whatever I do, the OnCancel
> handler seems to be called, which doesn't exit the program (including trying
> to terminate the program using ctrl-alt-del and, I suppose, when shutting
> down the system) )

> TIA
> ---
> Arild Kvalbein





Tue, 03 Jul 2001 03:00:00 GMT  
 Main dialog initially hidden, how? (mfc dialog app)
Hi,

I've written an MFC based "Sticky notes" kind of program (dialog based) and
I don't want the window to show up when the program is first run. It puts an
icon in the system tray and it "unhides" when this is clicked. I've tried to
do a ShowWindow(SW_HIDE) in InitDialog() but it didn't work, so I suppose
the framework does another ShowWindow somewhere after that. Which would
handler should I override to insert my SW_HIDE?
Also, I'm using OnCancel to catch the "close window" event, so that I can
simply hide the window (minimize to tray) instead of quitting. How can I
easily let the program be terminated, now? (Whatever I do, the OnCancel
handler seems to be called, which doesn't exit the program (including trying
to terminate the program using ctrl-alt-del and, I suppose, when shutting
down the system) )

TIA
---
Arild Kvalbein




Wed, 04 Jul 2001 03:00:00 GMT  
 Main dialog initially hidden, how? (mfc dialog app)


Fri, 19 Jun 1992 00:00:00 GMT  
 Main dialog initially hidden, how? (mfc dialog app)
Hi,

i read about using a redefined windproc and off-screen buffer DC to
avoid flickering. Being new to MFC, can't i use some CImageList
operations to do this for me? I can use CImageList::Draw(...) in my
ON_LBUTTONDWN, ON_MOUSEMOVE messages etc. , but i don't want the "trace"
of the image afterwards, but i'm not sure how to use the
CImageList::BeginDrag(), EnterDrag() etc. to get flicker-free dragging.

In the first case, where would i put the redefined windproc in my
workspace?



Thu, 05 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Can I start a dialog app initially hidden?

2. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

3. How to hide a dialog box initially?

4. HOWTO: Showing a dialog initially hidden???

5. Initially showing a dialog base application hidden - how?

6. Dialog owned by main window not hidden when main minimized

7. Dialog app without main dialog

8. Dialog-Based App and Main Dialog Problem

9. HOWTO: hide dialog when a dialog-based app starts

10. dialog based mfc app that starts without showing the main window

11. hiding an mfc dialog based app

12. Standard Open Dialog in MFC-dialog apps

 

 
Powered by phpBB® Forum Software