Ivan:
>I'm using ShowMenu to re-draw the main menu after the user press Logon/Logoff, as I'm using GenMenuX to release bar/pad according to privileges. Today I read in the manual I shouldn't call it directly from my own code, but it seems to be working fine.
The ShowMenu method is called by the Start method in the application object. All it actually does is executes a DO (This.cMenu) which generally equates to "appMenu.mpr". So, it is not doing anything weird and wacky. However, it will probably have the effect of pushing yet another (system) menu on the menu stack. It might be an idea to experiment with clearing down the current sysmenu (_MSYSMENU) and then executing ShowMenu(), so there is only ever one systemenu pushed by the framework.
HTH
-=Gary