Solved

Resizing Controls inside a form view

Posted on 1998-12-09
2
164 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
Comment Utility
From CCSMView::OnSize()

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

This should work.
0
 

Author Comment

by:jmartins71
Comment Utility
Thanks plaroche
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

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

15 Experts available now in Live!

Get 1:1 Help Now