Good day to all / evening! There is an MDI MFC project that was developed first under Windows XP, and then was transferred to Windows 7 Max. As a result, these three ill-fated buttons do not want to work when working with the window of this project. The project just hangs. Yes, you can clean the registry and everything will work, but exactly before the second launch of the project. It was also noted that if you turn off the effects of Aero, the buttons work as if nothing had happened. Maybe someone knows where and what needs to be finished so that everything works as it should with Aero? Thanks in advance for your help!

  • And how did you transfer this project? - Vyacheslav Kirichenko
  • Yes, just on the computer was XP - rearranged to 7. The project was saved on external media for the time of reinstallation. And this, by the way, concerns not only this particular computer. On all others, on which stands 7 the same problem. - brightside90 pm
  • one
    You know, I asked you: how did you transfer it - in the sense of how compiles and in what VS Studio. Frankly, I haven’t been involved in VC ++ + MFC for a long time - but I remember a little bit. For now, more literate programmers have not suggested, look: the MFC library version for your project, create a new project for Aero and compare the code for creating the main window for Aero and the traditional window (as far as I remember, everything is there). In general, help on MFC on the sat "micro-flexible - so that their W)". Good luck. - Vyacheslav Kirichenko
  • Sorry, set foot) The project was going all the time only on VS 2010 SP 1 and now has not changed this tradition) Thanks for the advice!) - brightside90
  • Thank you, thank you. But, I will say, I am very much surprised - why "sishniki and pluses" did not answer your question. - Vyacheslav Kirichenko

1 answer 1

So, as is usually the case - the question was resolved with his own hands. It was all in the "enemy" toolbar, which crept into the class of the CMainFrm project at the time when it began to be written in VS 2008. The interrelationship between the window buttons and the toolbar is strange, but it exists. So the question was still in the portability and incompetence of the one who started writing the project, and then handed it to us, and did not say anything about such possible problems. Thank you all, the question can be closed!