We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Is there an C++ interface to know if the surface window is open?

WalterWhite
Contributor

 

Snipaste_2024-10-11_18-36-11.pngSnipaste_2024-10-11_18-55-15.png

2 REPLIES 2

I'm not aware of any ACAPI function that can do this.

However I think it's possible to do it OS specific. E.g. on Windows you could use SetWindowsHookEx as described in this stackoverflow answer. It's an old answer, but WinAPI functionality is often still usable in the same way as some time ago in my experience. Haven't tested this specific function though.

Okay, I'll take a look