WndProc中没有可见的形式?形式、WndProc

2023-09-06 09:45:54 作者:安如少年初如梦

我想创建的第二个线程的形式,将收到的消息,在它的WndProc方法。什么是推荐的方式来创建这样一个无形的形式?是设置ShowInTaskbar =假和可见=假不够,还是有一个干净的方式?

I want to create a form on a second thread that will receive messages in it's WndProc method. What is the recommended way to create an invisible form like this? Is setting "ShowInTaskbar=false" and "Visible=false" enough, or is there a "cleaner" way?

推荐答案

我不知道你所说的干净的意思。该标准的方法来创建一个形式,是用户看不到的是设置可见和ShowInTaskbar为false。

I'm not sure what you mean by "cleaner". The standard way to create a form that is invisible to the user is to set Visible and ShowInTaskbar to false.