C ++中的“原 子”是什么?

问题描述 投票:0回答:1

在本文中,C ++中的atom是什么:

Member: lpszClassName

Type: LPCTSTR

A pointer to a null-terminated string or is an **atom**. If 
this parameter is an **atom**, it must be a class 
**atom** created by a previous call to the RegisterClass 
or RegisterClassEx function. The **atom** must be in 
the low-order word of lpszClassName; the high-order 
word must be zero.

If lpszClassName is a string, it specifies the window 
class name. The class name can be any name 
registered with RegisterClass or RegisterClassEx, or any 
of the predefined control-class names.

The maximum length for lpszClassName is 256. If 
lpszClassName is greater than the maximum length, the 
RegisterClass function will fail."

发件人:https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-wndclassa

我用谷歌搜索。但是我没有找到满足上下文答案的令人满意的方法。我在C ++中多次使用单词,但是我仍然不明白它是什么。有人可以解释或链接一些有用的相关信息。提前感谢

在本文中,C ++中的原子是什么:成员:lpszClassName类型:LPCTSTR指向以空字符结尾的字符串的指针,或者是“原子”。如果此参数是** atom **,则必须是** ...

c++ winapi terminology
1个回答
0
投票
ATOM是16位Windows句柄状原语。它的值对于用户模式是完全不透明的。它不是指针或索引。

typedef无符号短ATOM;

© www.soinside.com 2019 - 2024. All rights reserved.