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 8 启动时输入密码一样。
谢谢
这是很容易做到的。 只需选择一个编辑控件,右键单击编辑控件,然后单击“添加变量”。 给出变量名称,例如“m_myEdit”。 现在“OnInitDialog()”你只需要写一行。
m_myEdit.SetCueBanner(_T("Password"),TRUE);
正如您提到的那样,这将像 Windows 8 启动一样工作。