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
Anonymous
Not applicable
Thanks Ralph. Got it.