Help Center

CWindow.InstanceHandleproperty

Gets/sets the instance handle.

WindowspropertyCWindow.incdocumented

Syntax

PROPERTY InstanceHandle () AS HINSTANCE
PROPERTY InstanceHandle (BYVAL hInst AS HINSTANCE)

Parameters

NameDescription
hInstThe instance handle.

Return value

The instance handle.

Description

Gets/sets the instance handle.

Examples

DIM hInstance = pWindow.InstanceHandle

pWindow.InstanceHandle = pInstance

Reference

  • Include file CWindow.inc
  • Defined in AfxNova/CWindow.inc:785
  • Documented in Windows/Windows GUI/CWindow Class.md
  • Topic: CWindow Class