Make SDI Apps Caption Less 
Author Message
 Make SDI Apps Caption Less

Hello,

Anyone can tell me how to hide title bar for an SDI
application?  Thanks much.

Larry



Mon, 26 Jan 2004 06:49:58 GMT  
 Make SDI Apps Caption Less

Quote:
>Anyone can tell me how to hide title bar for an SDI
>application?  Thanks much.

Larry,

Try this code in InitInstance:

        // Dispatch commands specified on the command line
        if (!ProcessShellCommand(cmdInfo))
                return FALSE;

        /* Remove the menu */
        m_pMainWnd->SetMenu( NULL );
        /* And the caption bar */
        m_pMainWnd->ModifyStyle( WS_CAPTION, 0,
                        SWP_DRAWFRAME | SWP_NOZORDER );

        m_pMainWnd->ShowWindow(SW_SHOW);
        m_pMainWnd->UpdateWindow();

        return TRUE;

Quote:
}

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.


Mon, 26 Jan 2004 15:33:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting rid of caption bar in SDI app.

2. How to convert Wizard made SDI app to Application with NO Document

3. Help creating full-screen sdi w/o caption,borders

4. SDI As Child without Caption but with Menu

5. How to modify the SDI caption

6. How to set MDI/SDI Main window caption?

7. Making a main(frame)window without a border and caption (just white)

8. SDI window caption

9. SDI with no caption

10. Ambiguity in definition of setjmp/longjmp makes them much less useful

11. A dynamically made bitmap in a SDI MainFrame

12. SDI Resize makes taskbar gone

 

 
Powered by phpBB® Forum Software