0 | | - | 123 | FUNCTION CCubeView::Dump() |
0 | | - | 126 | } |
|
1 | | | 161 | FUNCTION CCubeView::OnCreate() |
0 | 1 | - | 163 | if (CView::OnCreate ( lpCreateStruct ) == - 1) |
0 | | - | 164 | return - 1 |
|
1 | | | 171 | FUNCTION CCubeView::OnDestroy() |
1 | 0 | - | 181 | if (hrc) |
0 | 1 | - | 184 | if (m_pOldPalette) |
1 | 0 | - | 187 | if (m_pDC) |
|
3 | | | 193 | FUNCTION CCubeView::OnSize() |
- | - | 201 | MC/DC (cond 1): 1 - 3 |
|
84 | | | 214 | FUNCTION CCubeView::OnTimer() |
0 | 84 | - | 222 | while (::PeekMessageA ( & msg , m_hWnd , 0x0113 , 0x0113 , 0x0001 )) |
|
1 | | | 228 | FUNCTION CCubeView::Init() |
0 | 1 | - | 240 | if (! bSetupPixelFormat ( )) |
0 | | - | 241 | return |
0 | 1 | - | 255 | if (m_oldRect . bottom) |
|
1 | | | 270 | FUNCTION CCubeView::bSetupPixelFormat() |
0 | 1 | - | 295 | if (( pixelformat = ChoosePixelFormat ( m_pDC -> GetSafeHdc ( ) , & pfd ) ) == 0) |
0 | | - | 298 | return 0 |
0 | 1 | - | 301 | if (SetPixelFormat ( m_pDC -> GetSafeHdc ( ) , pixelformat , & pfd ) == 0) |
0 | | - | 304 | return 0 |
|
0 | | - | 310 | FUNCTION CCubeView::ComponentFromIndex() |
0 | | - | 318 | case 1: |
0 | | - | 320 | return oneto8 [ val ] |
0 | | - | 321 | case 2: |
0 | | - | 323 | return twoto8 [ val ] |
0 | | - | 324 | case 3: |
0 | | - | 326 | return threeto8 [ val ] |
0 | | - | 328 | default: |
0 | | - | 329 | return 0 |
|
1 | | | 334 | FUNCTION CCubeView::CreateRGBPalette() |
0 | 1 | - | 343 | if (pfd . dwFlags & 0x00000080) |
0 | 0 | - | 352 | for (;i < n;) |
0 | 0 | - | 367 | if (( pfd . cColorBits == 8 ) && ( pfd . cRedBits == 3 ) && ( pfd . cRedShift == 0 ) && ( pfd . cGreenBits == 3 ) && ( pfd . cGreenShift == 3 ) && ( pfd . cBlueBits == 2 ) && ( pfd . cBlueShift == 6 )) |
- | - | 367 | MC/DC (cond 1): 1 - 8 |
- | - | 367 | MC/DC (cond 2): 1 - 7 |
- | - | 367 | MC/DC (cond 3): 1 - 6 |
- | - | 367 | MC/DC (cond 4): 1 - 5 |
- | - | 367 | MC/DC (cond 5): 1 - 4 |
- | - | 367 | MC/DC (cond 6): 1 - 3 |
- | - | 367 | MC/DC (cond 7): 1 - 2 |
0 | 0 | - | 370 | for (;i <= 12;) |
|
85 | | | 383 | FUNCTION CCubeView::DrawScene() |
0 | 85 | - | 390 | if (bBusy) |
0 | | - | 391 | return |