locked
how to give MFC look and feel for WPF screen RRS feed

  • Question

  • How to give MFC/C++ look and feel for WPF screen?

    Reason for this task. We are re-using one of the WPF screen in an MFC/C++ workflow UI. Instead of reimplementing the same UI in MFC we are trying to see if we can give MFC/C++ look and feel to existing WPF screen so that it can be easily reused.

    Thanks

    Pervez

    Monday, June 4, 2012 10:48 AM

Answers

  • Hi,

    I've changed the color,  font, style etc to give it a MFC/C++ type look. With these changes, though not 100% MFC look, it looks closer and agreed on going ahead with this approach.

    Thanks

    Pervez

    • Proposed as answer by Jesse Jiang Tuesday, June 26, 2012 1:46 AM
    • Marked as answer by Jesse Jiang Tuesday, June 26, 2012 5:47 AM
    Monday, June 25, 2012 6:52 AM

All replies

  • It is possible to host WPF controls in MFC dialogs: http://support.microsoft.com/kb/959082. Therefore if you have a user control made in WPF, you can reuse it in MFC.

    Monday, June 4, 2012 11:07 AM
  • Thanks Viorel for your reply. I think my question is not clear. Sorry about that.

    My requirement is to give existing WPF UI to MFC screen look and feel with minimal changes. And not to host WPF control on MFC screen. So that in one flow it looks like MFC screen another it will look as WPF control though underlying code will have minimal changes to change this look and feel.

    Monday, June 4, 2012 1:02 PM
  •  

    Hello,

     

    Maybe you can consider integration native codes with WPF, such as Visual Studio 2010. Please take a look this document:

     

    http://blogs.msdn.com/b/visualstudio/archive/2010/02/16/wpf-in-visual-studio-2010-part-1.aspx

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by Jesse Jiang Monday, June 18, 2012 10:48 AM
    Tuesday, June 5, 2012 3:03 AM
  • Hi,

     

    Would you mind letting me know the result of the suggestions? If you need further assistance, feel free to let me know. I will be more than happy to be of assistance.

     

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, June 25, 2012 3:32 AM
  • Hi,

    I've changed the color,  font, style etc to give it a MFC/C++ type look. With these changes, though not 100% MFC look, it looks closer and agreed on going ahead with this approach.

    Thanks

    Pervez

    • Proposed as answer by Jesse Jiang Tuesday, June 26, 2012 1:46 AM
    • Marked as answer by Jesse Jiang Tuesday, June 26, 2012 5:47 AM
    Monday, June 25, 2012 6:52 AM
  • Hi Pervez,

     

    I will close this thread. If you need further assistance, feel free to let me know. I will be more than happy to be of assistance.

     

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, June 26, 2012 5:47 AM