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

Are buttons windows?

Status
Not open for further replies.

JimHorton

Programmer
Jan 29, 2000
991
US
Hi all,
Is there anyone that knows for sure if buttons in Access are window objects, as they are in VB, or a custom control containing just lines and shading that alter upon 'clicking'.

I have a need to use some window-specific api's on buttons, which were easy in VB, since the hwnd is a native property of a vb button. However, I've looped through all system windows (using a nested loop of GetWindow, finding each parent and looping through each child) looking for the button's hwnd on my Access form, and they don't appear to be answering to any hwnd on the entire system. Does anyone know if buttons are windows in Access, and if so, a very easy way to get the hwnd? Thanks,
--Jim
 
I am 99% sure they are buttons. Back in the days of FoxPro Windows, they as u described only images. After the release of Visual FoxPro, MS standardized on the buttons for VB and Access. I encountered problems in the old days using MS Visual Test, that did not recognize image buttons. htwh.. Steve Medvid
"IT Consultant & Web Master"
 
Steve,
Thanks for the reply, it looks like I'm stuck with the hard way,
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top