Solved

How To Restrcting Resizeing of a view

Posted on 2000-02-14
1
169 Views
Last Modified: 2013-11-20
I have devloped MDI app. using aPPwiz my View class are drived from CFormView now i want to restrct the user from resizing the window.
0
Comment
Question by:kakamna
1 Comment
 
LVL 1

Accepted Solution

by:
ScottyDawg earned 50 total points
Comment Utility
Hi, you can restrict the size of the framewindow using the following:

BOOL CMainFrame::PreCreateWindow
(CREATESTRUCT& cs)
{
      // TODO: Modify the Window class or styles here by modifying
      //  the CREATESTRUCT cs
      cs.style &= ~(WS_THICKFRAME);  

      return CFrameWnd::PreCreateWindow(cs);
}
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seveā€¦
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now