15/03/01
Claudio Rocchini, Visual Computing Group
15
Funzione di switch
•inline BOOL SetGL()
•{ if(m_glOwner!=this)
•  { if(!wglMakeCurrent(m_pDC->GetSafeHdc(),m_hrc))
• {
• AfxMessageBox("GlMakeCurrent Error");
• return FALSE;
• }
• m_glOwner = this;
• }
• return TRUE;
•}