开发者

Window Manager API dont work on 64bit Apps. What to use instead?

开发者 https://www.devze.com 2023-03-16 11:52 出处:网络
Apples 64 bit documentation says, The Window Manager is 开发者_Go百科not available to 64-bit applications. For information about using windows in a Cocoa user interface, see Window Programming Guide.

Apples 64 bit documentation says, The Window Manager is 开发者_Go百科not available to 64-bit applications. For information about using windows in a Cocoa user interface, see Window Programming Guide.

I am not using cocoa so Window Programming Guide is no good for me. I need to use API like HIWindowGetBounds() so that I can get the window position with a coordinate space defined by the screen size in pixels. Or any other way to fetch the window position on screen?

Thank you


I need to support both 32 bit and 64 bit platform and keep code portable.

You cannot.

Carbon is dead. It will never be extended to be 64-bit. It has been dead for years now.

Cocoa is the only option you have.

I'm sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消