Thread: Attach OpenGL to childwindows

  1. #1
    Politics&Cpp geek Da-Nuka's Avatar
    Join Date
    Oct 2004
    Posts
    104

    Attach OpenGL to childwindows

    I tried to post this under "Game Programming"... But noone seems to answer, so I try here...Maybe it fits better here.
    Hang me if I break some forum-rules now


    Is it possible to attach OpenGL to childwindows?
    Or in any easy way, make a OpenGL interact only as a part of a bigger WIN32API program..?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Sure. All windows are created using the CreateWindow() API's. If you know how to do for parent windows, then you know how to do it for child windows.

    gg

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Quote Originally Posted by Da-Nuka
    I tried to post this under "Game Programming"... But noone seems to answer, so I try here...Maybe it fits better here.
    Hang me if I break some forum-rules now
    Cross-posting is typically frowned upon (as is bumping your own threads); most cprog regulars read/skim most new posts/threads and will respond to what they want to. For future reference, rather than cross-post just pm one of our local, friendly neighbourhood mods and politely request that they move the original, possibly misplaced thread to a more appropriate board.
    Quote Originally Posted by Da-Nuka
    Is it possible to attach OpenGL to childwindows?
    Or in any easy way, make a OpenGL interact only as a part of a bigger WIN32API program..?
    Hopefully the attached example will go some way towards answering your questions.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Politics&Cpp geek Da-Nuka's Avatar
    Join Date
    Oct 2004
    Posts
    104

    thnx

    Thnx. That sure cleard up a lot.
    I liked the MSG-procedure... Nice

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. attach OpenGL to childwindows
    By Da-Nuka in forum Game Programming
    Replies: 0
    Last Post: 12-20-2004, 12:48 PM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM