- VS 2008 - Defining Dialog Class Names with Resource Editor
- Posted by larryl_turbo@hotmail.com on May 18th, 2008
Hi Folks:
Developing on XP Home, VS 2008 Pro, C++, WIN32, no MFC.
I'm stuck on a weird problem, and I'm trying ot put together a
simple
example so I can run some tests and perhaps post it here if I can't
figure it out.
The application uses the Resource Editor to layout the opening
dialog.
I've done this many times before, and I know I need to define a
dialog with a class name.
So I fire up the resource editor and lay out a simple dialog.
Nothing fancy, dialog frame, popup. Almost everything in the list of
dialog properties is false, except System Menu and Title Bar
Now I want to define a class name, but the Class Name title is
grayed out, and text typed in is ignored.
How do I define a class name for this dialog?
Thanks
Larry
- Posted by Sam Hobbs on May 20th, 2008
What do you mean by class name? Are you using MFC? If it is not a MFC class
name then I sure don't know what it is. You cannot change the class name
that Windows uses for dialogs, because that is what defines a window as a
dialog. So can you be nore specific about where you see the field for the
class name you see? Can you be more specific about why you need to change it
or specify it?
<larryl_turbo@hotmail.com> wrote in message
news:efb3c728-75e1-4d5e-9a98-8b024102df5d@i36g2000prf.googlegroups.com...
- Posted by Norman Bullen on May 21st, 2008
larryl_turbo@hotmail.com wrote:
would suggest that if the Resource Editor GUI won't let you do it, open
the resource script file in text mode and add a CLASS statement.
--
Norm
To reply, change domain to an adult feline.
- Posted by Sam Hobbs on May 21st, 2008
Have you read the documentation of the CLASS resource-definition statement?
Are you sure you need it?
<larryl_turbo@hotmail.com> wrote in message
news:efb3c728-75e1-4d5e-9a98-8b024102df5d@i36g2000prf.googlegroups.com...
- Posted by Larry Lindstrom on May 24th, 2008
Sam Hobbs wrote:
Thanks Sam and Norman:
Yep, unless there is some other method to use the resource
editor, or some other tool, to lay out the first window an
application displays, I think I do need to do this.
If an application's first window is too complex to layout
by hand, and a tool like the resource editor is needed, how
would you proceed?
Using VC6, I would right click on the root node of the
resource tree, as displayed in the "ResourceView" window.
This would pop up a dialog with two check boxes. One has a
label of "Enable MFC Features". Unchecking this allows the
dialogs to have class names.
I don't know why this ability is mutually exclusive with
MFC.
Does VS 2008 have a similar method to turn off MFC?