I have a dialog that contains a menu.
In a certain point I am disable all menu items and then, enable the menuitems back.
For some reason, the menu doesn't repaint and if I disable the menuitems, they don't look gray. Only after I will move the cursor on top the menuitems, they will redraw.
the following link was supposed to fix my problem but it doesn't :
Attached, is a sample project that contains a menu in dialog with the code suggested by the link above.
added a timer that change to menu enable status every 1 sec.
What I want is that the disable will look gray without the need to move the cursor on top the menu in order to make it redraw
I added .txt to all files so I can zip it and add it as attachment here.