Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ok. thanks. Pin
Ravi Bhavnani7-Mar-03 2:48
professionalRavi Bhavnani7-Mar-03 2:48 
QuestionHow to change title bar? Pin
Jakob Bysewski6-Mar-03 4:10
Jakob Bysewski6-Mar-03 4:10 
AnswerRe: How to change title bar? Pin
Daniel Strigl6-Mar-03 4:13
Daniel Strigl6-Mar-03 4:13 
GeneralUps... ;) Pin
Jakob Bysewski6-Mar-03 4:22
Jakob Bysewski6-Mar-03 4:22 
AnswerRe: How to change title bar? Pin
Renjith Ramachandran6-Mar-03 5:19
Renjith Ramachandran6-Mar-03 5:19 
AnswerRe: How to change title bar? Pin
valikac6-Mar-03 8:40
valikac6-Mar-03 8:40 
GeneralQuery amount of memory on graphic card Pin
CodeBrain6-Mar-03 3:54
CodeBrain6-Mar-03 3:54 
GeneralRe: Query amount of memory on graphic card Pin
Daniel Strigl6-Mar-03 4:07
Daniel Strigl6-Mar-03 4:07 
I don't think that there is a simple API function to get the size of the video memory. But the way to get the size of the video memory with DirectDraw is not very hard.

Try the IDirectDraw::GetCaps function!

HRESULT GetCaps(
  LPDIRECTDRAW lpDD,
  LPDDCAPS lpDDDriverCaps,
  LPDDCAPS lpDDHELCap
  );


You can found the size in the DDCAPS structur:

typedef struct _DDCAPS { 
    DWORD    dwSize; 
    DWORD    dwCaps;                  // driver-specific caps 
    DWORD    dwCaps2;                 // more driver-specific caps 
    DWORD    dwCKeyCaps;              // color key caps 
    DWORD    dwFXCaps;                // stretching and effects caps 
    DWORD    dwFXAlphaCaps;           // alpha caps 
    DWORD    dwPalCaps;               // palette caps 
    DWORD    dwSVCaps;                // stereo vision caps 
    DWORD    dwAlphaBltConstBitDepths;       // alpha bit-depth members 
    DWORD    dwAlphaBltPixelBitDepths;       //  .
    DWORD    dwAlphaBltSurfaceBitDepths;     //  .
    DWORD    dwAlphaOverlayConstBitDepths;   //  .
    DWORD    dwAlphaOverlayPixelBitDepths;   //  .
    DWORD    dwAlphaOverlaySurfaceBitDepths; //  .
    DWORD    dwZBufferBitDepths;      // Z-buffer bit depth 
    DWORD    dwVidMemTotal;           // total video memory 
    DWORD    dwVidMemFree;            // total free video memory 
    DWORD    dwMaxVisibleOverlays;    // maximum visible overlays 
    DWORD    dwCurrVisibleOverlays;   // overlays currently visible 
    DWORD    dwNumFourCCCodes;        // number of supported FOURCC codes 
    DWORD    dwAlignBoundarySrc;      // overlay alignment restrictions 
    DWORD    dwAlignSizeSrc;          //  .
    DWORD    dwAlignBoundaryDest;     //  .
    DWORD    dwAlignSizeDest;         //  .
    DWORD    dwAlignStrideAlign;      // stride alignment 
    DWORD    dwRops[DD_ROP_SPACE];    // supported raster ops 
    DWORD    dwReservedCaps;          // reserved
    DWORD    dwMinOverlayStretch;     // overlay stretch factors 
    DWORD    dwMaxOverlayStretch;     //  .
    DWORD    dwMinLiveVideoStretch;   // obsolete
    DWORD    dwMaxLiveVideoStretch;   //  .
    DWORD    dwMinHwCodecStretch;     //  .
    DWORD    dwMaxHwCodecStretch;     //  .
    DWORD    dwReserved1;             // reserved
    DWORD    dwReserved2;             //  .
    DWORD    dwReserved3;             //  .
    DWORD    dwSVBCaps;               // system-to-video blit related caps 
    DWORD    dwSVBCKeyCaps;           //  .
    DWORD    dwSVBFXCaps;             //  .
    DWORD    dwSVBRops[DD_ROP_SPACE]; //  .
    DWORD    dwVSBCaps;               // video-to-system blit related caps 
    DWORD    dwVSBCKeyCaps;           //  .
    DWORD    dwVSBFXCaps;             //  .
    DWORD    dwVSBRops[DD_ROP_SPACE]; //  .
    DWORD    dwSSBCaps;               // system-to-system blit related caps 
    DWORD    dwSSBCKeyCaps;           //  .
    DWORD    dwSSBCFXCaps;            //  .
    DWORD    dwSSBRops[DD_ROP_SPACE]; //  .
    DWORD    dwMaxVideoPorts;         // maximum number of live video ports 
    DWORD    dwCurrVideoPorts;        // current number of live video ports 
    DWORD    dwSVBCaps2;              // additional system-to-video blit caps 
    DWORD    dwNLVBCaps;              // nonlocal-to-local video memory blit caps 
    DWORD    dwNLVBCaps2;             //  .
    DWORD    dwNLVBCKeyCaps;          //  .
    DWORD    dwNLVBFXCaps;            //  .
    DWORD    dwNLVBRops[DD_ROP_SPACE];//  .
    DDSCAPS2 ddsCaps;                 // general surface caps 
} DDCAPS,FAR* LPDDCAPS;  


Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralRe: Query amount of memory on graphic card Pin
CodeBrain6-Mar-03 21:45
CodeBrain6-Mar-03 21:45 
Generaldraw an ellipse given the coeffs Pin
affzan6-Mar-03 3:29
affzan6-Mar-03 3:29 
GeneralRe: draw an ellipse given the coeffs Pin
G. Steudtel6-Mar-03 4:54
G. Steudtel6-Mar-03 4:54 
GeneralRe: draw an ellipse given the coeffs Pin
affzan6-Mar-03 5:49
affzan6-Mar-03 5:49 
GeneralRe: draw an ellipse given the coeffs Pin
G. Steudtel8-Mar-03 6:40
G. Steudtel8-Mar-03 6:40 
GeneralRe: draw an ellipse given the coeffs Pin
G. Steudtel6-Mar-03 4:55
G. Steudtel6-Mar-03 4:55 
GeneralDesign question. Pin
Maximilien6-Mar-03 3:06
Maximilien6-Mar-03 3:06 
GeneralRe: Design question. Pin
Joel Lucsy6-Mar-03 13:51
Joel Lucsy6-Mar-03 13:51 
GeneralWrite Image of CD-ROM Pin
Andrea Ferraro6-Mar-03 2:53
Andrea Ferraro6-Mar-03 2:53 
GeneralRe: Write Image of CD-ROM Pin
Anonymous6-Mar-03 3:03
Anonymous6-Mar-03 3:03 
Generalproblem with new operator constructing GDI+ classes Pin
Baris Kurtlutepe6-Mar-03 2:40
Baris Kurtlutepe6-Mar-03 2:40 
GeneralRe: problem with new operator constructing GDI+ classes Pin
56789012346-Mar-03 2:58
56789012346-Mar-03 2:58 
GeneralRe: problem with new operator constructing GDI+ classes Pin
Joel Lucsy6-Mar-03 2:58
Joel Lucsy6-Mar-03 2:58 
GeneralRe: problem with new operator constructing GDI+ classes Pin
Baris Kurtlutepe6-Mar-03 3:47
Baris Kurtlutepe6-Mar-03 3:47 
Generalturn off "are you sure you want to delete?" NonVS question Pin
ns6-Mar-03 1:21
ns6-Mar-03 1:21 
GeneralRe: turn off "are you sure you want to delete?" NonVS question Pin
-Dy6-Mar-03 1:35
-Dy6-Mar-03 1:35 
Generalthanks! Pin
ns6-Mar-03 1:37
ns6-Mar-03 1:37 

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.