Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

How to create MDI child with borders

$
0
0
How can I create MS Word 'print layout' like interface. The attached picture says it all. Basically I want a shaded area around my document just like word so it gives a feel of the 'page'.Attachment 30813

I was hoping I can override some function somewhere and along that lines tried playing around with below but that didn't help.
Code:

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
    if( !CFrameWndEx::PreCreateWindow(cs) )
        return FALSE;
    // TODO: Modify the Window class or styles here by modifying
    //  the CREATESTRUCT cs


    cs.cx = 250; // just playing around with size
    cs.cy = 250;




    return TRUE;
}

Any ideas how can I do that?
Attached Images
 

Viewing all articles
Browse latest Browse all 3046

Trending Articles