View Full Version : always on the top?
I wanna know how I can set the openGL window always on the top.
Is there some solution?
Please let me know that.
08-05-2003, 10:18 PM
SetWindowPos(hwnd, HWND_TOPMOST, x, y, cx, cy, flags);
No offense, but you should be able to find these kind of answers by yourself. The MSDN is here (http://msdn.microsoft.com) .
want *TO*, FFS, not "wanna".
Thank you for your help. But I did know that.
My program doesn't use MFC, but is just command mode (has void main(void)) I'm so sorry I didn't know the name because I'm a beginner as a programmer.
Anyway do you understand me?
Could you tell me the solution? Thank you
08-06-2003, 01:22 PM
You must create a window somewhere, no? Thus you should have an HWND to that window. You can then use SetWindowPos() on it.
Hi~ Do you know the function WinExec()?
By this function, I call other program on my GUI environment.
There is void main(void) on the source code of other program. Could you understand?
The main function is following...
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
As my thought, I should change this main function to set openGL window alway on top.
Is it correct?
Please help me. T.T
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.