Resize a Control during Runtime 
Author Message
 Resize a Control during Runtime

Halllo !
I use a CListCtrl on my CView-Class. Now I want to resize the Control when
the CView-Class was resized. I wrote my code into the CView::OnResize
function. I use the Control::SetWindowPos function, but the conrol doesn't
react. Is there another way to resize ???

Thomas



Fri, 23 Aug 2002 03:00:00 GMT  
 Resize a Control during Runtime
Thomas,

Quote:
> I use a CListCtrl on my CView-Class. Now I want to resize the Control when
> the CView-Class was resized. I wrote my code into the CView::OnResize
> function. I use the Control::SetWindowPos function, but the conrol doesn't
> react. Is there another way to resize ???

Are you sure you are using the correct flags for SetWindowPos()? (like not
using SWP_NOSIZE).

BTW, you might find MoveWindow() simpler to use...

--
Tomas Restrepo
http://members.xoom.com/trestrep



Fri, 23 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to resize MSFlexGrid during runtime

2. Newbie: Resizing a button during runtime

3. Controls to move and dock during runtime.

4. How to assign an event handler to a control during runtime

5. ActiveX WebBrowser control creation during runtime

6. Newbie:Size of Control created during runtime

7. resize and move controls at runtime

8. Resize ATL controls Runtime in Word

9. Resizing ActiveX controls at runtime

10. Resizing controls at runtime

11. resizing an ActiveX Control at runtime

12. How do I resize controls at runtime?

 

 
Powered by phpBB® Forum Software