Jump to content

WinDestroyObject: Difference between revisions

From EDM2
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== WinDestroyObject ==
Dispose of a class from the Workplace Shell.
; WinDestroyObject (objHndle) : Dispose of a class from the Workplace Shell.


=== Parameters ===
==Syntax==
; objHandle - [[OS2 API:DataType:HOBJECT|HOBJECT]] - output : Handle to a Workplace object.
WinDestroyObject (objHndle)


=== Constants ===
==Parameters ==
; objHandle ([[HOBJECT]]) - output : Handle to a Workplace object.


=== Returns ===
== Constants ==
 
== Returns ==
True if successful, false if not successful.
True if successful, false if not successful.
* [[OS2 API:Constant:TRUE|TRUE]]
* [[TRUE]]
* [[OS2 API:Constant:FALSE|FALSE]]
* [[FALSE]]


=== Module ===
== Define (C/C++) ==
 
=== Define (C/C++) ===
INCL_WINWORKPLACE
INCL_WINWORKPLACE


=== Export name/Ordinal ===
== Calling Convention ==
 
=== Calling conversion ===
[[Cdecl32]]
[[Cdecl32]]


=== Example Code ===
== Example Code ==
  ...
  ...
  [[OS2 API:DataType:HOBJECT|HOBJECT]] objHndl;
  HOBJECT objHndl;
  [[OS2 API:DataType:BOOL|BOOL]]   rc;
  BOOL    rc;
  ...
  ...
  rc = WinDestroyObject (objHndl);
  rc = WinDestroyObject (objHndl);
  ...
  ...


=== Related Functions ===
== Related Functions ==
[[OS2 API:WinCreateObject|WinCreateObject]]
*[[WinCreateObject]]
[[OS2 API:WinSetObjectData|WinSetObjectData]]
*[[WinSetObjectData]]
 
=== Notes ===
 
=== OS Version Introduced ===
 
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Win]]

Latest revision as of 20:03, 7 April 2024

Dispose of a class from the Workplace Shell.

Syntax

WinDestroyObject (objHndle)

Parameters

objHandle (HOBJECT) - output
Handle to a Workplace object.

Constants

Returns

True if successful, false if not successful.

Define (C/C++)

INCL_WINWORKPLACE

Calling Convention

Cdecl32

Example Code

...
HOBJECT objHndl;
BOOL    rc;
...
rc = WinDestroyObject (objHndl);
...

Related Functions