C++ MFC

Moderators: Lundin
Number of threads: 3337
Number of posts: 9005

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MFC Dialog Class Name Posted by andrewgs73 on 26 Mar 2003 at 11:49 PM
Hello,
How can I change the class name of a MFC Dialog.
Advance thanks.
Sincerely,
Andrew Mosqueda
Report
Re: MFC Dialog Class Name Posted by xhim on 27 Mar 2003 at 10:36 PM
: Hello,
: How can I change the class name of a MFC Dialog.
: Advance thanks.
: Sincerely,
: Andrew Mosqueda
:

hi,
you can change the class name from classwizard..invoke and change the class name..but I guess thats a bit tedious thing to do...I dont know MFC allows it or not...simpler thing is create a new dialog and then invoke classwizard and there define your classname...whatever you want to..and if you need any dialog class to be renamed then copy all code from there and paste it in your new dialog's files and search and replace the old class name by new class name..of course the resources must be same...this is all I can suggest...
cheers
Himanshu
Report
Re: MFC Dialog Class Name Posted by andrewgs73 on 29 Mar 2003 at 1:26 AM
: : Hello,
: : How can I change the class name of a MFC Dialog.
: : Advance thanks.
: : Sincerely,
: : Andrew Mosqueda
: :
:
: hi,
: you can change the class name from classwizard..invoke and change the class name..but I guess thats a bit tedious thing to do...I dont know MFC allows it or not...simpler thing is create a new dialog and then invoke classwizard and there define your classname...whatever you want to..and if you need any dialog class to be renamed then copy all code from there and paste it in your new dialog's files and search and replace the old class name by new class name..of course the resources must be same...this is all I can suggest...
: cheers
: Himanshu
:
Hello Himanshu,
Thanks for your reply my friend. My question was wrong sorry.
Actually my question is how to change the window class name of
the dialog. That is, the name of the class that is seen when
Spy++ is use. I want to change that class name to my own.
In pure win32 C i can do it, but in MFC i have no idea.
Regards,
Andrew
Report
Re: MFC Dialog Class Name Posted by brigsoft on 29 Mar 2003 at 1:29 PM
: : : Hello,
: : : How can I change the class name of a MFC Dialog.
: : : Advance thanks.
: : : Sincerely,
: : : Andrew Mosqueda
: : :
: :
: : hi,
: : you can change the class name from classwizard..invoke and change the class name..but I guess thats a bit tedious thing to do...I dont know MFC allows it or not...simpler thing is create a new dialog and then invoke classwizard and there define your classname...whatever you want to..and if you need any dialog class to be renamed then copy all code from there and paste it in your new dialog's files and search and replace the old class name by new class name..of course the resources must be same...this is all I can suggest...
: : cheers
: : Himanshu
: :
: Hello Himanshu,
: Thanks for your reply my friend. My question was wrong sorry.
: Actually my question is how to change the window class name of
: the dialog. That is, the name of the class that is seen when
: Spy++ is use. I want to change that class name to my own.
: In pure win32 C i can do it, but in MFC i have no idea.
: Regards,
: Andrew
:
Very strange. Use m_hWnd member(it is a member of CWnd and
so other windows include CDialog too). It is the handle.
With this you can do all that you do using Win SDK.


=========================================
Useful links: http://www.brigsoft.com/edu

Report
Re: MFC Dialog Class Name Posted by andrewgs73 on 30 Mar 2003 at 12:56 AM
: : : : Hello,
: : : : How can I change the class name of a MFC Dialog.
: : : : Advance thanks.
: : : : Sincerely,
: : : : Andrew Mosqueda
: : : :
: : :
: : : hi,
: : : you can change the class name from classwizard..invoke and change the class name..but I guess thats a bit tedious thing to do...I dont know MFC allows it or not...simpler thing is create a new dialog and then invoke classwizard and there define your classname...whatever you want to..and if you need any dialog class to be renamed then copy all code from there and paste it in your new dialog's files and search and replace the old class name by new class name..of course the resources must be same...this is all I can suggest...
: : : cheers
: : : Himanshu
: : :
: : Hello Himanshu,
: : Thanks for your reply my friend. My question was wrong sorry.
: : Actually my question is how to change the window class name of
: : the dialog. That is, the name of the class that is seen when
: : Spy++ is use. I want to change that class name to my own.
: : In pure win32 C i can do it, but in MFC i have no idea.
: : Regards,
: : Andrew
: :
: Very strange. Use m_hWnd member(it is a member of CWnd and
: so other windows include CDialog too). It is the handle.
: With this you can do all that you do using Win SDK.
:
:
: =========================================
: Useful links: http://www.brigsoft.com/edu
:
:
OK, thanks for your help.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.