Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在windows编程中这是什么意思?
MSG msg = { };
MSG 是在 Windows SDK 标头中声明的结构,它存储 Windows 消息。
语句的= { }一部分是初始化表达式,它设置 MSG 结构的值。由于它在大括号之间不包含任何内容,因此结构的所有成员都将设置为 0。这是对变量进行零初始化的简单方法。
= { }