---
name: "OleSetMenuDescriptor"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/OleSetMenuDescriptor"
---

# OleSetMenuDescriptor(3w)

## NAME

**OleSetMenuDescriptor** (OLE32.@)

## SYNOPSIS

HRESULT OleSetMenuDescriptor\
  (\
   HOLEMENU                 *hOleMenu*,\
   HWND                     *hwndFrame*,\
   HWND                     *hwndActiveObject*,\
   LPOLEINPLACEFRAME        *lpFrame*,\
   LPOLEINPLACEACTIVEOBJECT *lpActiveObject*\
  )

## DESCRIPTION

Installs or removes **OLE** dispatching code for the containers frame window.

## PARAMS

*hOleMenu* Handle to composite menu descriptor

*hwndFrame* Handle to containers frame window

*hwndActiveObject* Handle to objects in-place activation window

*lpFrame* Pointer to IOleInPlaceFrame on containers window

*lpActiveObject* Pointer to IOleInPlaceActiveObject on active in-place object.

## RETURNS

**S\_OK** **-** menu installed correctly **E\_FAIL**, **E\_INVALIDARG**, **E\_UNEXPECTED** **-** failure.

## FIXME

The *lpFrame* and *lpActiveObject* parameters are currently ignored **OLE** should install context sensitive help **F1** filtering for the application when these are non **NULL**.

## IMPLEMENTATION

Declared in **"ole2.h"**.

Implemented in **"dlls/ole32/ole2.c"**.

Debug channel **"ole"**.
