Solved

WM_SIZE event

Posted on 1998-01-16
1
261 Views
Last Modified: 2013-11-20
I have created a MDI application. In one child scrollview, I have a property sheet. This property sheet have one property page and this property page contain a list box.

My question is :

How can I resize the property sheet, the property page with the list box by resizing the scrollview ?

The WM_SIZE only arrive in the Scrollview

I have try to post the WM_SIZE message to the property page
but the value (cx and cy) must be different. How it is possible to have correct cx and cy values ?
0
Comment
Question by:mike_marquet
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1314198
In the WM_SIZE handler for the scroll view, you need to call the base class to make sure your scroll view is still working and you need to use MoveWindow on the property sheet to resize that. Then the property sheet should have the right logic to resize your property pages. However, you need to have a WM_SIZE handler in your property page to size your list box correctly.

There's a library that supports these features. It is from Nanosoft and they are located at http://www.special-events.com/.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

24 Experts available now in Live!

Get 1:1 Help Now