PageWidth Example for C++ 5.0 and later
void CSample_COMDlg::OnButton6()
{
CString csBuffer;
int nBitsPerPixel = pRasterDoc->PageBitsPerPixel [0];
int nPageWidth = pRasterDoc->PageWidth [0];
int nPageHeight = pRasterDoc->PageHeight [0];
csBuffer.Format (TEXT("Page Width = %d\nPage Height = %d\nPage Bits Per Pixel = %d\n"),
nPageWidth,
nPageHeight,
nBitsPerPixel);
AfxMessageBox(csBuffer);
}