Changeset 11718


Ignore:
Timestamp:
2006-04-27T12:03:31+12:00 (18 years ago)
Author:
mdewsnip
Message:

Commented out the "Restricted Version" stuff, since it doesn't appear to work and we don't really care about Netscape anymore anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/fnord.cpp

    r11319 r11718  
    135135HWND GoButton = NULL;
    136136HWND Enter = NULL;
    137 HWND EnterRestricted = NULL;
    138 HWND InfoRestricted = NULL;
     137// HWND EnterRestricted = NULL;
     138// HWND InfoRestricted = NULL;
    139139int init_type = 0;
    140140int init_done = 0;
     
    543543      init_type = 1;
    544544
    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);
    562562
    563563    } else {
     
    10071007             NULL);                // pointer not needed
    10081008   
    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);
     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);
    10361036   
    10371037    SetFocus (Enter);
     
    10551055    // don't want these buttons anymore
    10561056    DestroyWindow (Enter);
    1057     DestroyWindow (EnterRestricted);
    1058     DestroyWindow (InfoRestricted);
     1057    // DestroyWindow (EnterRestricted);
     1058    // DestroyWindow (InfoRestricted);
    10591059   
    10601060    enterstring = strnothing;
Note: See TracChangeset for help on using the changeset viewer.