License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Archicad C++ API
About Archicad add-on development using the C++ API.

[SOLVED] Where is DG::Image defined?

Anonymous
Not applicable
In the docs, the image parameter for DGSetItemImage is a void * which resolves to a platform-dependent bitmap handle (HBITMAP on Win). But the actual header defines this as a DG::Image class (namespace DG). It's forward-declared for the parameter reference but there is no actual definition for the class in the API Dev Kit (using 18.3006).

Basically, I just want to draw a custom image in an area of a modeless dialog.

Can anyone point me in the right direction?

Thanks.

UPDATE: I'm now trying DG::ModelessDialog. Perhaps this is a later API as all required defs are there
2 REPLIES 2
Ralph Wessel
Mentor
MarkHenryC wrote:
In the docs, the image parameter for DGSetItemImage is a void * which resolves to a platform-dependent bitmap handle (HBITMAP on Win). But the actual header defines this as a DG::Image class (namespace DG). It's forward-declared for the parameter reference but there is no actual definition for the class in the API Dev Kit (using 18.3006).
Basically, I just want to draw a custom image in an area of a modeless dialog.
Can anyone point me in the right direction?
The DG::Image class is defined in DGUtility.hpp
You would normally construct one by passing the resource module and image resource ID
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Thanks Ralph. Got it.