Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

MFC Dialog Class Name

andrewgs73andrewgs73 Posts: 95Member
Hello,
How can I change the class name of a MFC Dialog.
Advance thanks.
Sincerely,
Andrew Mosqueda

Comments

  • xhimxhim Posts: 108Member
    : Hello,
    : How can I change the class name of a MFC Dialog.
    : Advance thanks.
    : Sincerely,
    : Andrew Mosqueda
    :
    [red]
    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
  • andrewgs73andrewgs73 Posts: 95Member
    : : Hello,
    : : How can I change the class name of a MFC Dialog.
    : : Advance thanks.
    : : Sincerely,
    : : Andrew Mosqueda
    : :
    : [red]
    : 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
  • brigsoftbrigsoft Posts: 58Member
    : : : Hello,
    : : : How can I change the class name of a MFC Dialog.
    : : : Advance thanks.
    : : : Sincerely,
    : : : Andrew Mosqueda
    : : :
    : : [red]
    : : 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

  • andrewgs73andrewgs73 Posts: 95Member
    : : : : Hello,
    : : : : How can I change the class name of a MFC Dialog.
    : : : : Advance thanks.
    : : : : Sincerely,
    : : : : Andrew Mosqueda
    : : : :
    : : : [red]
    : : : 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.
Sign In or Register to comment.