Changeset 1203 for trunk/gsdl/src/w32server/fnord.cpp
- Timestamp:
- 2000-06-12T14:49:06+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/fnord.cpp
r1156 r1203 18 18 The author can be contacted via Email at [email protected] 19 19 */ 20 #include "text_t.h" 20 21 #include <windows.h> 21 22 #include <stdlib.h> … … 165 166 if (coltitledc == NULL) { 166 167 coltitledc = CreateCompatibleDC(pdc); 167 defcoltitlebitmap = SelectObject (coltitledc, coltitlebitmap);168 defcoltitlebitmap = (HBITMAP)SelectObject (coltitledc, coltitlebitmap); 168 169 } 169 170 170 171 if (logodc == NULL) { 171 172 logodc = CreateCompatibleDC(pdc); 172 deflogobitmap = SelectObject (logodc, logobitmap);173 deflogobitmap = (HBITMAP)SelectObject (logodc, logobitmap); 173 174 } 174 175 … … 219 220 statusRect.right = STATUSX+STATUSWIDTH; 220 221 statusRect.bottom = STATUSY+STATUSHEIGHT; 221 FillRect(pdc, &statusRect, GetStockObject(WHITE_BRUSH));222 FillRect(pdc, &statusRect, (HBRUSH)GetStockObject(WHITE_BRUSH)); 222 223 223 224 int cury = STATUSY; … … 259 260 infoRect.right = INFOX+INFOWIDTH; 260 261 infoRect.bottom = INFOY+INFOHEIGHT; 261 FillRect(pdc, &infoRect, GetStockObject(WHITE_BRUSH));262 FillRect(pdc, &infoRect, (HBRUSH)GetStockObject(WHITE_BRUSH)); 262 263 DrawText(pdc, infostring, -1, &infoRect, DT_CENTER); 263 264 } … … 558 559 // finally, get the host name (no error value 559 560 // is returned from this function) 560 GetLocalName( Instance);561 GetLocalName((HINSTANCE)Instance); 561 562 562 563 } else { … … 596 597 startbrowserdir[0] = '\0'; 597 598 netscapeneeded = 0; 598 int err = tryinitnetwork (Instance, MsgWindow, NULL);599 //int err = 1;599 // int err = tryinitnetwork (Instance, MsgWindow, NULL); 600 int err = 1; 600 601 601 602 // if an error occurred, try again with billsock … … 802 803 803 804 804 int __stdcall WinMain(H ANDLE Instance, HANDLE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {805 int __stdcall WinMain(HINSTANCE Instance, HINSTANCE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) { 805 806 HWND MainWindow; MSG Message; WNDCLASS MainClass; 806 807 … … 813 814 MainClass.hIcon = LoadIcon(Instance, MAKEINTRESOURCE(TRAY_ICON)); 814 815 MainClass.hCursor = LoadCursor(NULL, IDC_ARROW); 815 MainClass.hbrBackground = GetStockObject(WHITE_BRUSH);816 MainClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); 816 817 MainClass.lpszMenuName = MAKEINTRESOURCE(Main_Menu); 817 818 MainClass.lpszClassName = "Greenstone Digital Library Software";
Note:
See TracChangeset
for help on using the changeset viewer.