Page 466 OpenGL Super Bible! else SelectObject(hdc, RocksUpBitmap); (Web servers)

Page 466 OpenGL Super Bible! else SelectObject(hdc, RocksUpBitmap); break; case IDC_MOUNTAINS : if (lpdis- >itemState & ODS_SELECTED) SelectObject(hdc, MountainsDownBitmap); else if (TerrainCurrent == IDC_MOUNTAINS) SelectObject(hdc, MountainsSelectBitmap); else SelectObject(hdc, MountainsUpBitmap); break; }; /* * Stretch the bitmap to fit the button area */ StretchBlt(lpdis->hDC, lpdis- >rcItem.left, lpdis->rcItem.top, lpdis->rcItem.right, lpdis->rcItem.bottom, hdc, 0, 0, 24, 24, SRCCOPY); DeleteDC(hdc); break; case WM_CLOSE : /* * Close the window (hide it) and turn the check mark off * in the main menu. */ ShowWindow(TerrainWindow, SW_HIDE); CheckMenuItem(GetMenu(SceneWindow), IDM_WINDOW_TERRAIN, MF_BYCOMMAND | MF_UNCHECKED); break; case WM_COMMAND : /* * A button was selected - choose the new current terrain * type. */ switch (LOWORD(wParam)) { case IDC_GRASS : case IDC_TREES : case IDC_ROCKS : case IDC_WATER : case IDC_MOUNTAINS : TerrainCurrent = LOWORD(wParam); InvalidateRect(TerrainWindow, NULL, TRUE); UpdateWindow(TerrainWindow); return (TRUE); }; break;
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply