Changing dialog style from child to popup
I have a dialog I wish to reuse in an application. It is defined in the resources as a child dialog. Unfortunately I cannot alter the resource file, only the code at run time. The problem is that it insists on appearing as disabled, despite my adding the code below:
SetWindowLong(m_hWnd, GWL_STYLE, WS_CAPTION | WS_POPUPWINDOW )
I think this is because the initial style of the dialog was child and it will not convert to a popup style.
does anyone know how I can make this change??
many thanks
|