简体   繁体   中英

how to make dialog stay on the screen all the time

I am very new to 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:

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

Cheers,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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