简体   繁体   English

如何使对话框始终保持在屏幕上

[英]how to make dialog stay on the screen all the time

I am very new to borland c++. 我对Borland C ++非常陌生。 I have an assignment to do. 我有一个任务要做。 Ok, While the user is working on the main window, I want dialog which gives nice tips how to do things stay on the screen. 好的,当用户在主窗口上工作时,我需要一个对话框,该对话框给出了如何在屏幕上进行操作的不错的提示。

I really appreciate if anybody can help. 如果有人可以提供帮助,我非常感谢。

You should first get the window handle and then use the following Win API method: 您应该首先获取窗口句柄,然后使用以下Win API方法:

SetWindowPos(hwnd, HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);

More details: 更多细节:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545(v=vs.85).aspx http://msdn.microsoft.com/zh-cn/library/windows/desktop/ms633545(v=vs.85).aspx

Cheers, 干杯,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM