WinReplaceObjectClass: Difference between revisions
Appearance
mNo edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 27: | Line 27: | ||
=== Example Code === | === Example Code === | ||
... | ... | ||
[[ | [[PSZ]] oldClassname; | ||
PSZ newClassname; | |||
[[ | [[BOOL]] fReplace; | ||
BOOL rc; | |||
... | ... | ||
rc = WinReplaceObjectClass (oldClassname, newClassname, fReplace); | rc = WinReplaceObjectClass (oldClassname, newClassname, fReplace); | ||
Line 36: | Line 36: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinCreateObject]] | ||
[[ | *[[WinDeregisterObjectClass]] | ||
[[ | *[[WinRegisterObjectClass]] | ||
=== Notes === | === Notes === |
Latest revision as of 13:39, 5 December 2019
Replaces a registered class with the new registered class.
Syntax
WinReplaceObjectClass(oldClassName, newClassName, functionReplacementFlag)
Parameters
- oldClassName - PSZ - input
- Old classname string.
- newClassName - PSZ - input
- New classname string.
- functionReplacementFlap -BOOL - input
- Flag for function replacement.
Constants
Flag values for functionality replacement:
- TRUE
- Replace the old class name with the new class name.
- FALSE
- Undo the replacement of the old class name with the new class name.
Returns
This function returns a APIRET with the values of:
Define (C/C++)
INCL_WINWORKPLACE
Calling Convention
Example Code
... PSZ oldClassname; PSZ newClassname; BOOL fReplace; BOOL rc; ... rc = WinReplaceObjectClass (oldClassname, newClassname, fReplace); ...
Related Functions
Notes
The new class name must be a descendant of old class name. If it isn't, an error will be returned.