Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Add wew function called SetHelpHeight()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add wew function called SetHelpHeight()

 Post Reply Post Reply
Author
Message
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Topic: Add wew function called SetHelpHeight()
    Posted: 11 June 2003 at 4:25pm

I have implemented a function that allows me to change the height of the Help bar within the PropertyGrid class. This is useful as it allows me to preset the height as the application is initializing. Otherwise I am required to resize it each tme the application is started. The code I use is as follows:

// Call this member function to set the height of the help pane when visible.

// The integer value represents the height in pixels.

//

void SetHelpHeight(int nHeight);

////////////////////////

void CXTPPropertyGrid::SetHelpHeight(int nHeight)

{

   m_nHelpHeight = nHeight;

   CXTPPClientRect rc(this);

   Reposition(rc.Width(), rc.Height());

}

Thanks.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 2:36pm

Thank you for your Suggestion

Added SetHelpHeight and  SetViewDivider methods.

 

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.152 seconds.