开发者

How I can determine when a window handle is valid?

开发者 https://www.devze.com 2023-03-10 13:32 出处:网络
I am writing a DLL whic开发者_如何学运维h make some operations on a particular window, but sometimes the handle passed is not valid. Does there exist any function to validate that the handle passed is

I am writing a DLL whic开发者_如何学运维h make some operations on a particular window, but sometimes the handle passed is not valid. Does there exist any function to validate that the handle passed is valid (belongs to a window)?


Try using the IsWindow function, which is declared in the Windows unit.

function IsWindow(hWnd: HWND): BOOL; stdcall;
0

精彩评论

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