From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 04/11/2005 12:28:36
fobefut fobefut wrote:
> I have a question about getting the DC(device context) of
> performer window(pfPipeWindow), which is created by the console program.
<snip>
>
> 3) call "hWnd = (HWND)win->getWSDrawable();->GetDC(hWnd)" in
> pfPipeWindow's configuration function
> 4) do 1), 2) after calling pfPipeWindow->open()
#3 should work after opening the window (I've used that method before).
However, you have to make sure the window is open (just calling open()
won't necessarily do it). What we do to make sure it's open is
something like this:
pWin->open();
while (!(pWin->isOpen())
pfFrame();
Another thing you may have to be careful with is that pfPipeWindows
actually have two MS Windows objects associated with them. One is the
HWND returned by getWSWindow(), and the other is a HANDLE which is
returned by getWSDrawable(). Each of these may have a separate DC
associated with it. I'm not sure which one would be the appropriate one
to pass to the WGL_NV_swap_group extension.
Hope this helps...
--"J"
This archive was generated by hypermail 2b29 : Mon Apr 11 2005 - 12:28:45 PDT