Help Center

RemoveCloseOptionfunction

Removes the system menu close option and disables the X button.

Windowsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION RemoveCloseOption (BYVAL hWin AS HWND) AS BOOLEAN

Parameters

NameDescription
hWinHandle of the window or dialog that owns the menu.

Return value

TRUE or FALSE. To get extended error information, use the GetLastError function.

Description

Removes the system menu close option and disables the X button.

Example

DIM bRes AS BOOLEAN = CMenu.RemoveCloseOption

Reference

  • Documented in Windows/WIndows Controls/CMenu Class.md
  • Topic: About Menus