Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: vc++ 6 mfc, dialog with child, messed up Pin
Mark Salsbery6-Aug-08 9:18
Mark Salsbery6-Aug-08 9:18 
AnswerRe: vc++ 6 mfc, dialog with child, messed up [modified] Pin
rolfhorror6-Aug-08 10:04
rolfhorror6-Aug-08 10:04 
GeneralRe: vc++ 6 mfc, dialog with child, messed up Pin
Mark Salsbery7-Aug-08 4:45
Mark Salsbery7-Aug-08 4:45 
GeneralRe: vc++ 6 mfc, dialog with child, messed up Pin
rolfhorror7-Aug-08 8:18
rolfhorror7-Aug-08 8:18 
QuestionRe: vc++ 6 mfc, dialog with child, messed up Pin
David Crow7-Aug-08 3:38
David Crow7-Aug-08 3:38 
Question2005 C++ Resource editor replaces #defs with strings Pin
anand91966-Aug-08 7:24
anand91966-Aug-08 7:24 
AnswerRe: 2005 C++ Resource editor replaces #defs with strings Pin
Joe Woodbury6-Aug-08 10:43
professionalJoe Woodbury6-Aug-08 10:43 
QuestionOpenGL and HW acceleration [modified] Pin
Dave Calkins6-Aug-08 3:45
Dave Calkins6-Aug-08 3:45 
I'm using the below code to enumerate the available pixel formats. For each pixel format, I'm checking the flags to see if this format provides HW accelerated rendering. I'm getting "NONE" for half the formats and "GENERIC" for the other half. I don't get "ACCELERATED" for any of them. I've tried this on multiple machines which have hardware that I would expect to provide HW accelerated OpenGL rendering.

PIXELFORMATDESCRIPTOR pfd;

int maxpf = DescribePixelFormat(hDC,0,0,NULL);
for (int i = 1; i <= maxpf; i++)
{
   if (DescribePixelFormat(hDC,i,sizeof(PIXELFORMATDESCRIPTOR),&pfd) == 0)
      continue;
   if ((pfd.dwFlags & PFD_SUPPORT_OPENGL) == 0)
      continue;

   if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) != 0)
   {
      TRACE1("%d: ACCELERATED\n", i);
   }
   else if ((pfd.dwFlags & PFD_GENERIC_FORMAT) != 0)
   {
      TRACE1("%d: GENERIC\n", i);
   }
   else
   {
      TRACE1("%d: NONE\n", i);
   }
}


So my question is what is the correct way to determine which pixel formats support HW accelerated rendering? Are the flags in the pixel format even the right place to look?

One site I found which discusses this is below:

here

Seems pretty vague though unfortunately.

modified on Wednesday, August 6, 2008 9:53 AM

QuestionError message observed while using Standard User Analyzer Pin
V K 26-Aug-08 2:18
V K 26-Aug-08 2:18 
Questionnewbie C question Pin
johnny alpaca6-Aug-08 2:12
johnny alpaca6-Aug-08 2:12 
AnswerRe: newbie C question Pin
toxcct6-Aug-08 2:32
toxcct6-Aug-08 2:32 
GeneralRe: newbie C question Pin
_AnsHUMAN_ 6-Aug-08 2:36
_AnsHUMAN_ 6-Aug-08 2:36 
GeneralRe: newbie C question Pin
toxcct6-Aug-08 2:38
toxcct6-Aug-08 2:38 
GeneralRe: newbie C question Pin
johnny alpaca6-Aug-08 2:39
johnny alpaca6-Aug-08 2:39 
GeneralRe: newbie C question Pin
Kwanalouie6-Aug-08 2:55
Kwanalouie6-Aug-08 2:55 
GeneralRe: newbie C question Pin
Maximilien6-Aug-08 2:58
Maximilien6-Aug-08 2:58 
GeneralRe: newbie C question Pin
David Crow6-Aug-08 3:00
David Crow6-Aug-08 3:00 
Questionenteries in add remove program Pin
VCProgrammer6-Aug-08 1:56
VCProgrammer6-Aug-08 1:56 
AnswerRe: enteries in add remove program Pin
nisha000006-Aug-08 2:24
nisha000006-Aug-08 2:24 
GeneralRe: enteries in add remove program Pin
toxcct6-Aug-08 2:35
toxcct6-Aug-08 2:35 
AnswerRe: enteries in add remove program Pin
_AnsHUMAN_ 6-Aug-08 2:46
_AnsHUMAN_ 6-Aug-08 2:46 
GeneralRe: enteries in add remove program Pin
nisha000006-Aug-08 2:57
nisha000006-Aug-08 2:57 
QuestionXP Styles in Visual Studio 2003 Pin
__DanC__6-Aug-08 1:04
__DanC__6-Aug-08 1:04 
AnswerRe: XP Styles in Visual Studio 2003 Pin
Sarath C6-Aug-08 1:29
Sarath C6-Aug-08 1:29 
GeneralRe: XP Styles in Visual Studio 2003 Pin
__DanC__6-Aug-08 23:45
__DanC__6-Aug-08 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.