[comp.windows.ms.programmer] No MainWindow?? and Changing icon-menu

martijn@cs.vu.nl (Lemmens ML) (06/24/91)

1. I've got Turbo Pascal for Windows and I would like to write programs
   that do not have a MainWindow attached to it. (For example I want to
   write a program that cannot be seen, but can be activated by clicking
   in the background.)

2. When clicking on an icon a menu appears with options like Restore,
   Move, Size, etc. How can I change this menu (e.g. making options
   unavailable or create new options).

Martijn

bonneau@hyper.hyper.com (Paul Bonneau) (06/26/91)

In article <10296@star.cs.vu.nl> martijn@cs.vu.nl (Lemmens ML) writes:
>2. When clicking on an icon a menu appears with options like Restore,
>   Move, Size, etc. How can I change this menu (e.g. making options
>   unavailable or create new options).
>
When you get the WM_INITPOPUPMENU message, get the menu
handle with GetSystemMenu(), and modify it as ypu please.

cheers - Paul Bonneau.