Making a window modal in Photon

I have an application which displays another window using ApcreateModule() on a menu button click.I want to make this window modal so that control doesnt go back to the base window whnever user presses hot keys or mouse buttons.I tried using apis like PtMakeModal() ,PtBlockWindow() .But inspite of these whenever I press Alt+F my menu on the base window gets activated which isnt desired.The control should remain on new window until user exits it.Please guide on this.

I have an application which displays another window using ApcreateModule() on a menu button click.I want to make this window modal so that control doesnt go back to the base window whnever user presses hot keys or mouse buttons.I tried using apis like PtMakeModal() ,PtBlockWindow() .But inspite of these whenever I press Alt+F my menu on the base window gets activated which isnt desired.The control should remain on new window until user exits it.Please guide on this.