Adding a tile to an MFC application

I have a C ++ MFC application that has a bunch of dialogs that are defined in a .rc file. I need to add a tile to the application to bind it to the Start menu, because the default tile that Windows creates from the icon doesn't look very good. Rewriting an entire application to use XAML instead of a .rc file is not an option now. The tile does not have to be interactive, just display a more beautiful picture than just clicking a small icon.

Is there a way to add a plate to an MFC application with a .rc file?

If not, another idea that I created is to create a wrapper application that uses XAML to create the tile, and the only thing that the wrapper application will do is run the MFC application. Does anyone have a better solution?

I am using Visual Studio 2015. The .ico file I am using has versions 768x768, 512x512, 256x256, 150x150, 48x48, 32x32 and 16x16 images.

Edit

There was some confusion about exactly what I needed. Here is an annotated screenshot that I hope clearly shows the problem. annotated screenshot showing, by default, a tile with a small icon

Another clarification, I donโ€™t think it matters, but I thought I would add it just to be safe. The program does not need to run on Windows 8 / 8.1, just Windows7 and Windows10

+5
source share
2 answers

After extensive research, it is clear that this is not possible. Not only is this not possible with MFC, but the only way to create a tile (live or static) is with Windows Universal. So my solution is to create a simple launcher that launches the MFC application and then exists. However, one caveat here is that Windows Universal programs are not allowed to directly run other programs. What they are allowed to do is open the file with its default program. So I created a new file extension and assigned the default application to MFC.

+1
source
0
source

All Articles