Accessing Presentation Manager Resources From a Workplace Shell Object

A Workplace Shell object may access and make use of Presentation Manager resources such as icons, bitmaps, strings and dialogs. These resources may reside in the same DLL as the object's code, or in another DLL. However, since the resources must reside in a DLL, the code that loads the resources must use the DosLoadModule or DosGetModuleHandle() functions to obtain module handles, as described in Loading Resources From a DLL. This is typically done by obtaining the module handles as part of the _wpclsInitData method, and storing them either in global variables or in class data until needed.


[Back: Deregistering an Object Class]
[Next: Transient Objects]