I need help with Win32lib's remove and add style
- Posted by Judith Evans <camping at arkansas.net> Apr 11, 2005
- 438 views
I've been investigating a rewrite of IDE in an attempt to simplify the code. I decided to createEx Property, ProjectView and ToolBox as windows with WS_CHILD. This makes a lot of the mumbo jumbo of IDE much easier when moving and resizing these windows. I thought I could remove the WS_CHILD style when undocking but it appears that style doesn't work with removeStyle. Below is what I have done. Have I got it wrong or is there something else I should use? If I can not remove the child style then these windows are stuck inside the MainWindow client area and that has not traditionally been how IDE works. >--property now to be undocked > addStyle(PropertySheet, { > (WS_THICKFRAME+WS_CAPTION+WS_MINIMIZEBOX+WS_SYSMENU+WS_BORDER+ > WS_DLGFRAME+WS_MAXIMIZEBOX),(0)}) > > removeStyle(PropertySheet,{(WS_CHILD),(0)}) Thanks, judith evans