开发者

How do you compare two HWND pointers?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜