Ignore:
Timestamp:
Sep 1, 1999, 12:45:08 AM (26 years ago)
Author:
phaller
Message:

Add: little improvement of console properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/console.cpp

    r705 r767  
    1 /* $Id: console.cpp,v 1.12 1999-08-26 12:55:35 sandervl Exp $ */
     1/* $Id: console.cpp,v 1.13 1999-08-31 22:44:33 phaller Exp $ */
    22
    33/*
     
    443443  ConsoleGlobals.hConsoleBufferDefault = INVALID_HANDLE_VALUE;
    444444  ConsoleGlobals.hConsoleBuffer        = INVALID_HANDLE_VALUE;
     445
     446
     447  // defaults are effective, try to read and apply stored properties
     448  if (ConsolePropertyLoad(&ConsoleGlobals.Options) == NO_ERROR)
     449    ConsolePropertyApply(&ConsoleGlobals.Options);
    445450
    446451
     
    11001105                               DLG_CONSOLE_PROPERTIES,
    11011106                               (PVOID)&ConsoleGlobals.Options);
     1107          switch (ulResult)
     1108          {
     1109            case ID_BTN_SAVE:
     1110              ConsolePropertySave(&ConsoleGlobals.Options);
     1111              ConsolePropertyApply(&ConsoleGlobals.Options);
     1112              break;
     1113
     1114            case ID_BTN_APPLY:
     1115              ConsolePropertyApply(&ConsoleGlobals.Options);
     1116              break;
     1117
     1118            default:           break;
     1119          }
     1120
    11021121          return (MPARAM) FALSE;
    11031122        }
Note: See TracChangeset for help on using the changeset viewer.