Jump to content
Sign in to follow this  
wolfbartels

how to put a Child window in menu area of parent?

Recommended Posts

I want to put some additional menuitems (child) on an application window (parent).

When using

$ChildhWnd=GUICreate($text, $SizeX, $SizeY, $PosX, $PosY, $WS_CHILD, -1, $TargethWnd)

with $PosY = 0 the childGUI shows inside the application main window,

with $PosY < 0 the childGUI is covered by parent window menu bar

Is there a solution using a Child Window or is an independent window the only way?

Share this post


Link to post
Share on other sites

I've done this here:

http://www.autoitscript.com/forum/index.php?showtopic=37709

The primary trick is this call:

DllCall("user32.dll", "int", "SetParent", "hwnd", $AutoItGuiHandle, "hwnd", $TargetWindowHandle)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...