强制创建控制手柄 [英] Force create handle for Control
本文介绍了强制创建控制手柄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在建立一个无声的打印模块。我使用的电流控制,它确保控制手柄已经创建( IsHandleCreated
)。我所做的一切都没有运气欺骗这一点。
I'm currently creating a silent print module. The current control I'm using is, it's making sure that the control handle is already created (IsHandleCreated
). I did everything to cheat this with no luck at all.
你对我如何可以创建一个句柄没有显示在屏幕任意控制心中的想法?
Do you have ideas in mind on how can I create a handle for the control without displaying any in the screen?
推荐答案
尝试过载的CreateParams
属性的getter。在明确了 WS_VISIBLE
标记。
Try to overload CreateParams
property getter. In it clear the WS_VISIBLE
flag.
这篇关于强制创建控制手柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文