Resizing Controls inside a form view

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?  
jmartins71Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
plarocheConnect With a Mentor Commented:
From CCSMView::OnSize()

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

This should work.
0
 
jmartins71Author Commented:
Thanks plaroche
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.