I have this app that I have not looked at in a long time.
Anyways I compiled it and it uses shellexecute to open a image file and when I do that it corrupts all the menus in the app, the main menu gets messed up the worst and even the popup menus start showing up not attached the app anymore.
Shellexecute launches the image file in the windows photo viewer. If I put a URL in instead of a path to a image the menu corruption does not happen. This is on Windows 7.
it also does it in the Delphi community edition.
I put a coinitilize call to see if it was something with com threading or something but that made no difference. It only does it with the windows photo viewer.
Here is the code:
ShellExecute(0, nil, pchar(fpath), nil, nil, SW_RESTORE)