From: fobefut fobefut (fobefut++at++msn.com)
Date: 04/06/2005 19:07:11
Hi, performers.
I have a question about getting the DC(device context) of
performer window(pfPipeWindow), which is created by the console program.
In case of using glut, the fragment of codes may be described as follows.
// glut
HWND hWnd = NULL;
HDC hDC = NULL;
hWnd = FindWindow(NULL, window_title);
hDC = GetDC(hWnd);
I tried a several method in console-based performer program like as...
1) call "wglGetCurrentDC()" in pfPipeWindow's configuration function
2) call "FindWindow->GetDC" in pfPipeWindow's configuration function
3) call "hWnd = (HWND)win->getWSDrawable();->GetDC(hWnd)" in pfPipeWindow's
configuration function
4) do 1), 2) after calling pfPipeWindow->open()
But, I failed in all cases, and didn't get right handles of window and DC;
i.e. still null values.
How can I get a DC of performer pfPipeWindow in console-based program ?
Is it not a sense to get a DC of visual pfPipeWindow in case of
console-based program,
instead of window based program ?
I want to use "WGL_NV_swap_group" extensions supported by Quadro 3000G for
frame synchorination. For this purposes, I indeed need the DC of performer
window.
In case of using glut, there is no problem, but I have no idea to solve this
problem in
performer; because I am pfRookie... ^.^;
Thanks in advance for any advise or hint about DC, Quadro 3000G.
Regards.
pfBye.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
This archive was generated by hypermail 2b29 : Wed Apr 06 2005 - 19:07:15 PDT