How to Start Dialog App Hidden? 
Author Message
 How to Start Dialog App Hidden?

Hiya,

I'm looking to start an MFC dialog-based application in a hidden state (i.e.
same as ShowWindow(SW_HIDE)) but all my efforts have been fruitless. I've
tried...

... OnInitDialog( ... )
{
    ShowWindow(SW_HIDE);
    ...

Quote:
}

... OnInitDialog( ... )
{
    CWinApp *pApp = AfxGetApp();
    pApp->m_nCmdShow = SW_HIDE;
    ...

Quote:
}

...and a few other things, but nothing has worked. As you can probably see,
I've only been programming in Visual C++ for a few days (come from C++
Builder) and the simplest things are confusing me :op

If some kind soul out there can help, I'd be most grateful!

Regards,

Steve



Wed, 19 Jan 2005 19:50:43 GMT  
 How to Start Dialog App Hidden?

Quote:

>I'm looking to start an MFC dialog-based application in a hidden state (i.e.
>same as ShowWindow(SW_HIDE)) but all my efforts have been fruitless. I've
>tried...

What you desire is here :

www.mooremvp.freeserve.co.uk/Win32/framed_tip026.htm

--
Bob Moore [WinSDK MVP]
http://www.mooremvp.freeserve.co.uk/
(this is a non-commercial site and does not accept advertising)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do not reply via email unless specifically requested to do so.
Unsolicited email is NOT welcome and will go unanswered.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Thu, 20 Jan 2005 18:21:27 GMT  
 
 [ 4 post ] 

 Relevant Pages 

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

2. Can I start a dialog app initially hidden?

3. A: How to start dialog-based app hidden

4. Q:How do I start a Dialog App in a HIDE state

5. Can I start my SDI app hidden?

6. Help: Starting MFC app with its window hidden

7. Starting app with hidden window

8. Q: Start App hidden

9. ? Start a Doc/view App as Hidden ?

10. Main dialog initially hidden, how? (mfc dialog app)

11. Starting Doc/View app with hidden window

12. Starting app with hidden window

 

 
Powered by phpBB® Forum Software