0
votes

I have two projects, an old project using the Win32 API that has an old toolbar using Win32 graphics and another one using MFC code with better graphics (I am creating a ribbon toolbar similar to the one that Microsoft Office uses). The MFC classes I use inherit from CDialogEx and CWinApp.

What I am trying to do is to place the ribbon toolbar in my Win32 window and replace the old one. I am already referencing the MFC project using it as a static library and can call the classes from my Win32 project but I can't get to show the new toolbar yet.

What do I need to do in order to achieve this?

1

1 Answers

2
votes

It might be much easier to create the freamework with the MFC and move the old code into the new framework.

It is possible to create a MFC project without Doc/View architecture.

The MFC Ribbons will and can only live inside a CMFCFrameWnd that is part of a CWinAppEx... extracting just the ribbon code into a plain Win32 application should fail.

But there is also a Win32 Ribbon Framework. It might be much easier to implement this into your old Win32 project.

How to implement this is described here.

In Codeproject you find a sample how to use it.