[英]Invisible main window
I'm working on a DirectX GUI library, and the main class works by creating a main window, and then porting the input to all the GUI windows, which will handle the events. 我正在使用DirectX GUI库,主类的工作方式是创建一个主窗口,然后将输入移植到所有将处理事件的GUI窗口。 The problem is, the main window is a Win32 window (to handle messages), and needs to be invisible.
问题是,主窗口是Win32窗口(用于处理消息),并且需要不可见。 Is there a way to create and invisible window and then be able to handle messages and draw things with DirectX?
有没有一种方法可以创建和隐藏窗口,然后可以使用DirectX处理消息并绘制内容?
在WindowProc的WM_CREATE中,执行以下操作:
ShowWindow( hwnd, SW_HIDE );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.