Implicit Pointers
An implicit pointer is used by Window Builder when no references to an object are made after the object has been created and you have not chosen to create a member or automatic pointer. In this case, Window Builder does not need to keep the address of the newly created child in any variable, and therefore uses an in-line, implicit pointer to pass the child's address to the Add() function. The following is an example of source code produced by Window Builder that uses an implicit pointer:
Add(new PegPrompt(ChildRect, "Text"));
Note that the return value from the new operator is not saved, but is passed directly to the Add() function. When no other pointer type is needed, this is the default pointer style used by Window Builder.
Pointer Name Control
Temporary Pointers
|