Solved

Resizing Controls inside a form view

Posted on 1998-12-09
2
167 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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