Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two different programs. The first has a border-less form that has a DropDown Menu at the top. The second program also has a border-less form, but has fake borders and title bar with control buttons. The second program also has a panel in the centre that is anchored in all four directions. I want to be able to place the the built first program inside the panel, and still have the first program's controls fully function.

What I have tried:

I have used the SetParent to move the built first program into the panel by using the first program's process's MainWindowHandel. When I do this though, the drop down menus no longer drop down. I have tried other controls in the first program like buttons and textboxes, and they interact correctly. Does anyone have any idea why a dropdown menu isn't working?
Thanks in advance
Posted
Updated 21-Dec-20 11:17am

1 solution

Quote:
When you change the parent of a window, you should synchronize the UISTATE of both windows. For more information, see WM_CHANGEUISTATE and WM_UPDATEUISTATE.

SetParent function (winuser.h) - Win32 apps | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900