Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The visiblestate value passed to Set_Property() can be any of the valid show-window states, (those states accepted by the Windows API function ShowWindow). For example, the Windows SDK file "windows.h" defines SW_RESTORE as 9; this value restores a minimized window to its previous size, equivalent to the "Restore" choice on the Window's system menu.

Note: To hide a menu item, set its visible property to 0. A top level menu (on the menu bar) cannot be hidden this way. To hide it, set its TEXT property to null.

Returns

Values returned by Get_Property and Set_Property:

ValueDescription
visiblestate0=Hidden.
 1=Visible.
 2=Minimized.
 3=Maximized.
existingstateVisibility status, when Set_Property() was run.

See also

REDRAW propertySIZE propertyCREATE Event

Example (Making Menu Items Invisible)

...