Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Question about automatically choosing current OpenGL window

  1. #1
    Newbie Newbie
    Join Date
    Oct 2012
    Posts
    2

    Question about automatically choosing current OpenGL window

    Hello,

    I have a question about automatically switching from command window to my current OpenGL window. I have a program which first asks the user to choose several parameters then entering to full screen mode image rendering. However, when I want to press a button, I always need to first click mouse to choose the current full screen window and then the button response will work. Do you know if there is some ways to directly choose the current window when entering the full screen mode without clicking mouse?

    Thanks,

    Jihang

  2. #2
    Newbie Newbie
    Join Date
    Oct 2012
    Posts
    2
    Problem solved using the sentence below

    HWND hWnd = GetActiveWindow();
    howWindow(hWnd,SW_SHOW);
    SetForegroundWindow(hWnd);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •