CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Akron, Ohio
    Posts
    669

    OpenGLControl shuts down parent's timer

    I'm observing a strange behavior that I don't understand.

    The program I've uploaded into this thread is a watered-down version of a larger one. Recently, I had some assistance from VladimirF concerning the z order of child windows in this program, but now I have a new problem that leaves me scratching my head. I original thought it was a z-order problem again, but I'm not so sure.

    In the background of the parent window, I've embedded an OpenGLControl-derived object that I've called "m_DrawingScreen". The trouble is, when I create the object, the parent dialog never receives a timer message that it normally receives when you hit the "Expand" button at the bottom left.

    To see what I mean, comment out the following line located in MainDialog near the bottom of CreateDynamicControls function.

    Code:
    m_DrawingScreen.Create(OpenGLControlRect, this);
    When you comment out that line, you'll notice that hitting expand sets off a timer that slowly scrolls two dialogs into view. This behavior is shut down when you let m_DrawingScreen be created.

    (Incidently, there is a crude cage drawn in the DrawingScreen that you can sorta rotate around. It is probably not relevant to this problem, I think, but it is neat to me.)

    Anyway, if anyone can point me in the right direction for the solution, I would appreciate it. Also, please let me know if I've forgotten to include any files. Thank you.
    Attached Files Attached Files
    error C2146a : syntax error : nebulizer stained in the tower floppy apple rider. Go rubble in flee smite. Bleeble snip snip.

    Documentation says: error C2146a - This means there is an error somewhere in the course of human endeavor. Fix in the usual way.

  2. #2
    Join Date
    Aug 2011
    Posts
    28

    Re: OpenGLControl shuts down parent's timer

    Sorry, it doesn't contain the binary file.

  3. #3
    Join Date
    Jan 2005
    Location
    Akron, Ohio
    Posts
    669

    Re: OpenGLControl shuts down parent's timer

    I'm not sure I understand. What is the binary file? I don't see any files in my project that say binary file.
    error C2146a : syntax error : nebulizer stained in the tower floppy apple rider. Go rubble in flee smite. Bleeble snip snip.

    Documentation says: error C2146a - This means there is an error somewhere in the course of human endeavor. Fix in the usual way.

  4. #4
    Join Date
    Jan 2005
    Location
    Akron, Ohio
    Posts
    669

    Re: OpenGLControl shuts down parent's timer

    Does anyone have any ideas for this?
    error C2146a : syntax error : nebulizer stained in the tower floppy apple rider. Go rubble in flee smite. Bleeble snip snip.

    Documentation says: error C2146a - This means there is an error somewhere in the course of human endeavor. Fix in the usual way.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured