Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Expanding markup does not update control's height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Expanding markup does not update control's height

 Post Reply Post Reply
Author
Message
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Topic: Expanding markup does not update control's height
    Posted: 30 June 2012 at 10:30am
Hello all,

I have markup items in the control that can be collapsed/expanded, but when they are expanded, the control's height is not recalculated and thus they push existing records off the view (the scroll bar is not updated).

I've tried using InvalidateMeasure() and other functions, but none seem to help.

Can you please advise on how to recalculate the markup element and tell the control to update itself properly?

Thanks!
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2012 at 9:10pm
I think I solved this myself. For anyone else wondering, see the AdjustLayout() and AdjustScrollbars() functions.
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.