locked
Legacy Win32 C++ App, needs AppBar.

    Question

  • Tasked with the impossible, I've been told to add AppBar functionality to a sprawling legacy C++ Win32 app which has never even seen .Net in its life. 

    It uses the basic-est of the basic Win32 API: RegisterClassEx + CreateWindow + WndProc for windows,  and a winmain run loop.  Over its life support for the occasional COM interface has been shoe-horned in. I'd appreciate any suggestions for where to even start - would it likely be easiest to start with a basic Metro app and try to shoehorn the app window into the Metro UI,  or would it likely be easier to try to sticky-tape Metro into the existing application loop?

    Monday, May 7, 2012 5:01 AM

Answers

  • Metro style apps abstract away the HWNDs and window messages that your application is currently using. It will not be possible to use the existing application loop.

    I would try to separate the UI from the actual application logic (if you haven't done so already) and then replace the old UI with one started as a basic Metro style app.

    --Rob

    Tuesday, May 8, 2012 3:16 AM
    Owner