resizing OpenGL picture control in MFC window

This is a discussion on resizing OpenGL picture control in MFC window within the Windows Programming forums, part of the Platform Specific Boards category; I have adapted a project from CodeGuru regarding creating a window with OpenGL rendering picture control in the window in ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    222

    resizing OpenGL picture control in MFC window

    I have adapted a project from CodeGuru regarding creating a window with OpenGL rendering picture control in the window in http://www.codeguru.com/cpp/g-m/open...le.php/c10975/. I have imported EASYSIZE macros from CodeProject (http://www.codeproject.com/KB/dialog/easysize.aspx) to ensure that resizing the window would not result in the buttons disappearing. However, while I have managed to move the buttons properly, I have trouble resizing the OpenGL window properly. I know I would have to do something properly to reset the OpenGL picture control properly again in the OnSize message handler functions, but having trouble doing so properly. If you need to have a source code of what I've done so far, it's attached to this post. Please change the extension from txt to zip. Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    Nevermind about this question. Already found a workaround solution.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 04:07 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. my wndProc is out of scope
    By Raison in forum Windows Programming
    Replies: 35
    Last Post: 06-25-2004, 08:23 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21