Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working as a UI developer one of my senior was developed the UI for current project now he is not available for me to clarify my doubt
Can anybody help me in solving my problem please,
Currently we can re size the application using minimize maximize options but now requirement is changed such that the application has to be re sizable by dragging the edges of the main frame.
Here we did painting for Main Frame too……..
Posted

1 solution

Please add WS_THICKFRAME in your window style of the FrameWnd.

C#
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
    int style = cs.style;

    // Add WS_THICKFRAME to create re sizable border.
    style -= WS_THICKFRAME;
    cs.style = style;

    if( !CFrameWnd::PreCreateWindow(cs) )
....
}
 
Share this answer
 
v2
Comments
Krupakar Kuramala 21-May-13 0:33am    
Thanks you Santhosh G
I tried the way u shown in the example, But it’s not working……….
Santhosh G_ 21-May-13 11:32am    
What is the value cs.style. Please try to add WS_OVERLAPPED in the style.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900