Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ScrollBars on MDIFORM

Status
Not open for further replies.

OneTJN

Programmer
Dec 25, 2007
11
US
I would like to hide the scrollbar (visible=false) when a scroll bar appears on the MDIForm. The following api call gets me the handle of the object that is the container of the forms within the mdiform. Table is an mdichild of MDIForm InsideHandleOfMDIWindow is the handle of the object that is the container for table (different from MDIFORM.hwnd). I would like to get the handle (hwnd) of the MDIForms scrollbar

Dim ErrorCode As Long
Dim Ghostrec As RECT
Dim InsideHandleOfMDIWindow As Long

InsideHandleOfMDIWindow = GetParent(Table.hwnd)
 
Anything wrong with just setting the ScrollBars property to false?

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top