积极答复者
如何获取窗口句柄

问题
答案
-
Hi 黄涛121,
感谢在MSDN论坛发帖。
>>如何获取窗口句柄
请将你的问题描述的更具体一些,方便我们提供准确的帮助。根据你的问题,我猜测你可能会需要以下函数。
如果是Win32程序的话,你可以考虑使用Window functions,例如FindWindow ,GetWindow 等等。
如果是MFC程序的话,你可以考虑使用CWnd Class中的CWnd::FindWindow,CWnd::GetWindow 等等。
详细函数列表,参考以下文档。
https://msdn.microsoft.com/en-us/library/windows/desktop/ff468919(v=vs.85).aspx
https://msdn.microsoft.com/library/49a832ee-bc34-4126-88b3-bc1d9974f6c4.aspx#cwnd__getwindow
希望可以帮助到你。
Best Regards,
Sera YuMSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
全部回复
-
Hi 黄涛121,
感谢在MSDN论坛发帖。
>>如何获取窗口句柄
请将你的问题描述的更具体一些,方便我们提供准确的帮助。根据你的问题,我猜测你可能会需要以下函数。
如果是Win32程序的话,你可以考虑使用Window functions,例如FindWindow ,GetWindow 等等。
如果是MFC程序的话,你可以考虑使用CWnd Class中的CWnd::FindWindow,CWnd::GetWindow 等等。
详细函数列表,参考以下文档。
https://msdn.microsoft.com/en-us/library/windows/desktop/ff468919(v=vs.85).aspx
https://msdn.microsoft.com/library/49a832ee-bc34-4126-88b3-bc1d9974f6c4.aspx#cwnd__getwindow
希望可以帮助到你。
Best Regards,
Sera YuMSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.