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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a handle to a child window object. 1

Status
Not open for further replies.

TheInsider

Programmer
Jul 17, 2000
796
CA
Hi,
I am using Access 97 with some Windows API calls. I would like to use the GetWindowText and SetWindowText methods, however I have no idea how to get the handle to the child windows, mainly the Textbox. In Visual Basic 6 the Textbox has a .hWnd property, but Access does not. The only objects that I can get the handle to are the form ie. Me.hWnd - for which this property does exist, or the Application itself. Any ideas?
Thanks in advance, Rob Marriott
rob@career-connections.net
 
Access controls don't have a window handle, except during the time they are focused. When they're not, they're not real child windows at all; Access renders them as bitmap images on the form (MDI child) window. This saves GDI resources. When they receive the focus, Access creates real Windows controls "on the fly" to interact with the user. So I'm afraid what you want to do is impossible. Rick Sprague
 
Hi,
Thank you for this information!!! I would never have thought that Access works that way - though it doesn't surprise me. Rob Marriott
rob@career-connections.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top