Solved

Resizing Controls inside a form view

Posted on 1998-12-09
2
165 Views
Last Modified: 2013-11-20
I have one form view with only one listbox control - CCSMView.
My control variable is m_Panel.
How can i automatically resize the list box to be the size of the child window?  
0
Comment
Question by:jmartins71
2 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 10 total points
ID: 1325936
From CCSMView::OnSize()

CRect   clientRect;
GetClientRect(clientRect);
m_Panel.MoveWindow(clientRect);

This should work.
0
 

Author Comment

by:jmartins71
ID: 1325937
Thanks plaroche
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

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 92
only14 challenge 19 69
sumHeights2  challenge 7 88
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 76
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

867 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

17 Experts available now in Live!

Get 1:1 Help Now