开发者

How do you compare two HWND pointers?

开发者 https://www.devze.com 2022-12-17 22:24 出处:网络
Is it开发者_JS百科 possible to do if(HWND1 == HWND2) or is there a function that I need to use to see if two hwnd point to the same window?A HWND is just a long value, so yes you can compare them

Is it开发者_JS百科 possible to do

if(HWND1 == HWND2)

or is there a function that I need to use to see if two hwnd point to the same window?


A HWND is just a long value, so yes you can compare them that way.


Depends how stale your data is. Windows re-uses hwnds (eventually), so there's no guarantee that 1005A is both a valid window and the window you expected, it might be another window that re-used 1005A.

0

精彩评论

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