   Setting up multisampling with OpenGL and MFC
  Hello,I am having problems settings up multisampling with OpenGL and MFC.In order to setup multisampling I have to first get a multisampling pixel format. To do this I have to create a dummy window, get the pixel format, destroy the dummy window and then I can create the window with multisampling.I did it easily with Windows API, but I just can't make it work with MFC.Can someone show me how to create a dummy window with MFC?[Edited by - shmok123 on May 7, 2010 6:09:38 AM]
  Create a class derived from CWnd. You would need some code in there to create a GL context, make GL current, get function pointers, get GL pixel formats.CMyClassWnd tempwindow;tempwindow.CreateEx(.......);and when you are donetempwindow.DestroyWindow();it's pretty easy to create a window.   