PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc Van Cauwenberghe on April 12, 2004, 04:56:38 AM

Title: Child window
Post by: Marc Van Cauwenberghe on April 12, 2004, 04:56:38 AM
Hello,

could anyone please help with this probably stupid question:

I want to open a second window onto the first one that has no windowedge and sticks to the parent. I have done this in powerbasic but don't seem to get it done in firefly.

thanks for any help.

Marc
Title: Child window
Post by: TechSupport on April 12, 2004, 08:56:14 AM
For the second window, I assume that you would need to adjust the WindowStyles to select %WS_CHILD, and deselect the styles for %WS_THICKFRAME, %WS_CAPTION and the extended style %WS_EX_WINDOWEDGE.

You would then show the second window as modeless during the %WM_CREATE message of the first window.

Form2_Show hwndForm, 0

This is off the top of my head, but I think it should work.