Results 1 to 4 of 4

Thread: Rendering Context With Docking

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I guess fChwnd is panel1.handle if this works
    And if there's a need to call the second part of code at all then I guess panel handle changes while docking/dragging?

  2. #2
    Long time Later i found where i do wrong
    if handle is change its need use SetPixelFormat and ActivateRenderingContext

    my wrong i tryed to delete RC,DC ..



    pfd.dwFlags := PFD_DRAW_TO_WINDOW OR PFD_SUPPORT_OPENGL OR PFD_DOUBLEBUFFER;
    SetPixelFormat ( DC, ChoosePixelFormat ( DC, @pfd ), @pfd );
    ActivateRenderingContext( DC, wglCreateContext ( DC ), TRUE );

    Last edited by serkank; 22-10-2014 at 07:06 PM.

Bookmarks

Posting Permissions

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