Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2005, 12:12 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing tab control style at runtime. John Deutsch Access VBA 2 October 19th, 2007 12:01 PM
problem with changing style when user is logged hertendreef ASP.NET 2.0 Professional 0 February 28th, 2007 06:21 PM
Error when changing 'Link Child Fields' property JackNimble Access 3 October 25th, 2004 03:21 PM
changing style using javascript mattastic Javascript 3 September 21st, 2004 09:57 AM
difference between style.visibility and style.disp Mimi Javascript How-To 6 September 17th, 2003 11:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.