[SOLVED] Where is DG::Image defined?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-05-29
03:56 AM
- last edited on
2023-07-13
03:49 PM
by
Doreena Deng
2015-05-29
03:56 AM
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
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
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-05-29 02:27 PM
2015-05-29
02:27 PM
MarkHenryC wrote:The DG::Image class is defined in DGUtility.hpp
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?
You would normally construct one by passing the resource module and image resource ID
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-05-29 10:26 PM
2015-05-29
10:26 PM
Thanks Ralph. Got it.