Changeset 11721
- Timestamp:
- 2006-04-27T13:34:31+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsdl-2_70-distribution-branch/gsdl/src/w32server/fnord.cpp
r11319 r11721 135 135 HWND GoButton = NULL; 136 136 HWND Enter = NULL; 137 HWND EnterRestricted = NULL;138 HWND InfoRestricted = NULL;137 // HWND EnterRestricted = NULL; 138 // HWND InfoRestricted = NULL; 139 139 int init_type = 0; 140 140 int init_done = 0; … … 543 543 init_type = 1; 544 544 545 } else if ((EnterRestricted != NULL) && ((HWND)LParam == EnterRestricted)) {546 init_done = 1;547 init_type = 0;548 549 } else if ((InfoRestricted != NULL) && ((HWND)LParam == InfoRestricted)) {550 MessageBox (NULL, "The Greenstone system automatically determines whether your computer has\n"551 "network software installed or is connected to a network. It operates correctly\n"552 "under any of these conditions.\n\n"553 "The restricted version is intended for use when the standard one\n\n"554 " (a) causes an unwanted telephone dialup operation;\n"555 " (b) fails to run because network software is installed, but installed\n"556 " incorrectly.\n\n"557 "The restricted version only works with Netscape (not Internet Explorer).\n\n"558 "Unless these problems arise, you should always use the standard version\n"559 "(press the 'Enter Library' button).\n",560 "Greenstone Digital Library Software",561 MB_OK | MB_ICONINFORMATION | MB_APPLMODAL);545 // } else if ((EnterRestricted != NULL) && ((HWND)LParam == EnterRestricted)) { 546 // init_done = 1; 547 // init_type = 0; 548 549 // } else if ((InfoRestricted != NULL) && ((HWND)LParam == InfoRestricted)) { 550 // MessageBox (NULL, "The Greenstone system automatically determines whether your computer has\n" 551 // "network software installed or is connected to a network. It operates correctly\n" 552 // "under any of these conditions.\n\n" 553 // "The restricted version is intended for use when the standard one\n\n" 554 // " (a) causes an unwanted telephone dialup operation;\n" 555 // " (b) fails to run because network software is installed, but installed\n" 556 // " incorrectly.\n\n" 557 // "The restricted version only works with Netscape (not Internet Explorer).\n\n" 558 // "Unless these problems arise, you should always use the standard version\n" 559 // "(press the 'Enter Library' button).\n", 560 // "Greenstone Digital Library Software", 561 // MB_OK | MB_ICONINFORMATION | MB_APPLMODAL); 562 562 563 563 } else { … … 1007 1007 NULL); // pointer not needed 1008 1008 1009 EnterRestricted = CreateWindow("Button", // predefined class1010 "Restricted Version", // button text1011 WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_PUSHBUTTON, // styles1012 ALTERNATIVEBUTTONX, // starting x position1013 ALTERNATIVEBUTTONY, // starting y position1014 ALTERNATIVEBUTTONWIDTH-(INFOBUTTONWIDTH+SPACERWIDTH), // button width1015 ALTERNATIVEBUTTONHEIGHT, // button height1016 MainWindow, // parent window1017 (HMENU)NULL, // No menu1018 Instance,1019 NULL); // pointer not needed1020 1021 InfoRestricted = CreateWindow("Button", // predefined class1022 NULL,1023 WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_BITMAP, // styles1024 ALTERNATIVEBUTTONWIDTH-INFOBUTTONWIDTH+SPACERWIDTH, // starting x position1025 ALTERNATIVEBUTTONY, // starting y position1026 INFOBUTTONWIDTH, // button width1027 ALTERNATIVEBUTTONHEIGHT, // button height1028 MainWindow, // parent window1029 (HMENU)NULL, // No menu1030 Instance,1031 NULL); // pointer not needed1032 1033 HANDLE i_icon = LoadImage (Instance, MAKEINTRESOURCE(GSDL_ICBMP), IMAGE_BITMAP,1034 INFOBUTTONWIDTH-4, ALTERNATIVEBUTTONHEIGHT-4, LR_DEFAULTCOLOR);1035 SendMessage (InfoRestricted, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)i_icon);1009 // EnterRestricted = CreateWindow("Button", // predefined class 1010 // "Restricted Version", // button text 1011 // WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_PUSHBUTTON, // styles 1012 // ALTERNATIVEBUTTONX, // starting x position 1013 // ALTERNATIVEBUTTONY, // starting y position 1014 // ALTERNATIVEBUTTONWIDTH-(INFOBUTTONWIDTH+SPACERWIDTH), // button width 1015 // ALTERNATIVEBUTTONHEIGHT, // button height 1016 // MainWindow, // parent window 1017 // (HMENU)NULL, // No menu 1018 // Instance, 1019 // NULL); // pointer not needed 1020 1021 // InfoRestricted = CreateWindow("Button", // predefined class 1022 // NULL, 1023 // WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_BITMAP, // styles 1024 // ALTERNATIVEBUTTONWIDTH-INFOBUTTONWIDTH+SPACERWIDTH, // starting x position 1025 // ALTERNATIVEBUTTONY, // starting y position 1026 // INFOBUTTONWIDTH, // button width 1027 // ALTERNATIVEBUTTONHEIGHT, // button height 1028 // MainWindow, // parent window 1029 // (HMENU)NULL, // No menu 1030 // Instance, 1031 // NULL); // pointer not needed 1032 1033 // HANDLE i_icon = LoadImage (Instance, MAKEINTRESOURCE(GSDL_ICBMP), IMAGE_BITMAP, 1034 // INFOBUTTONWIDTH-4, ALTERNATIVEBUTTONHEIGHT-4, LR_DEFAULTCOLOR); 1035 // SendMessage (InfoRestricted, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)i_icon); 1036 1036 1037 1037 SetFocus (Enter); … … 1055 1055 // don't want these buttons anymore 1056 1056 DestroyWindow (Enter); 1057 DestroyWindow (EnterRestricted);1058 DestroyWindow (InfoRestricted);1057 // DestroyWindow (EnterRestricted); 1058 // DestroyWindow (InfoRestricted); 1059 1059 1060 1060 enterstring = strnothing;
Note:
See TracChangeset
for help on using the changeset viewer.