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

make a control that can go past the window border

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
I am trying to make a menu type system for a tool bar control, it needs to be able to go past the confines of its parent window.

I tried a user defined control but don't know how to allow it to cross the window border.

Does anyone know how to make a control that can do this, or suggest some way to make a nice looking menu that does this. I can't use the standard window menus because that causes my tool bar to become a window within its tool bar area.
 
Hi,

I've not seen that, but what about putting your control on a transparent form?
Then it would be able to go anywhere (by moving the form around).

Sunaj
 
Im stuck in the space I have available in an IE tool bar (about the same amount at the address bar). Things like combo boxes can go past the window border so it must be possible. If you have ever seen the google tool bar you will know what I am trying to do.

It may be possible with a user drawn control but I have no idea how to use them. I'll just keep researching.
 
found the solution, as always it was the Win32 API, something I'm only really just starting to get into.

Used the CreatePopupmenu function.

Go to and download the API toolshed, has full explination of every win32API function plus demo code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top