cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

How to get Window HWND from dialID

nishida_jp
Participant

I am making Modal Dialog By Archicad27 API.
Windows 10 and VisualStudio C++2019.
I hope get Window HWND from dialID.
Pilease teach me.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Miklos Vegh
Graphisoft
Graphisoft

You can get the HWND of a dialog by calling the

DG_DLL_EXPORT void* CCALL DGGetDialogWindow (short dialId)

function.

The return value should be casted to HWND. This function returns an NSWindow* on macintosh.

View solution in original post

1 REPLY 1
Solution
Miklos Vegh
Graphisoft
Graphisoft

You can get the HWND of a dialog by calling the

DG_DLL_EXPORT void* CCALL DGGetDialogWindow (short dialId)

function.

The return value should be casted to HWND. This function returns an NSWindow* on macintosh.