Changeset 767 for trunk/src


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

Add: little improvement of console properties

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

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

    r120 r767  
    1 /* $Id: conprop.cpp,v 1.7 1999-06-19 10:54:40 sandervl Exp $ */
     1/* $Id: conprop.cpp,v 1.8 1999-08-31 22:44:33 phaller Exp $ */
    22
    33/*
     
    18941894
    18951895
     1896/*****************************************************************************
     1897 * Name      : APIRET EXPENTRY ConsolePropertyLoad
     1898 * Funktion  : load properties from registry
     1899 * Parameter : PICONSOLEOPTIONS pConsoleOptions
     1900 * Variablen :
     1901 * Ergebnis  : APIRET
     1902 * Bemerkung :
     1903 *
     1904 * Autor     : Patrick Haller [1998/06/13 23:20]
     1905 *****************************************************************************/
     1906
     1907APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions)
     1908{
     1909  dprintf (("KERNEL32: Console:ConsolePropertyLoad(%08xh) not implemented.\n",
     1910            pConsoleOptions));
     1911
     1912  // HKEY_CURRENT_USER/SOFTWARE/ODIN/<process name>/<option name>
     1913
     1914  return (NO_ERROR);
     1915}
     1916
     1917
     1918
     1919/*****************************************************************************
     1920 * Name      : APIRET EXPENTRY ConsolePropertySave
     1921 * Funktion  : save properties from registry
     1922 * Parameter : PICONSOLEOPTIONS pConsoleOptions
     1923 * Variablen :
     1924 * Ergebnis  : APIRET
     1925 * Bemerkung :
     1926 *
     1927 * Autor     : Patrick Haller [1998/06/13 23:20]
     1928 *****************************************************************************/
     1929
     1930APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions)
     1931{
     1932  dprintf (("KERNEL32: Console:ConsolePropertySave(%08xh) not implemented.\n",
     1933            pConsoleOptions));
     1934
     1935  return (NO_ERROR);
     1936}
     1937
     1938
     1939/*****************************************************************************
     1940 * Name      : APIRET EXPENTRY ConsolePropertyApply
     1941 * Funktion  : apply properties in memory to the console window
     1942 * Parameter : PICONSOLEOPTIONS pConsoleOptions
     1943 * Variablen :
     1944 * Ergebnis  : APIRET
     1945 * Bemerkung :
     1946 *
     1947 * Autor     : Patrick Haller [1998/06/13 23:20]
     1948 *****************************************************************************/
     1949
     1950APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions)
     1951{
     1952  dprintf (("KERNEL32: Console:ConsolePropertyApply(%08xh) not implemented.\n",
     1953            pConsoleOptions));
     1954
     1955  return (NO_ERROR);
     1956}
     1957
     1958
     1959
    18961960
    18971961
  • trunk/src/kernel32/conprop.h

    r111 r767  
    1 /* $Id: conprop.h,v 1.4 1999-06-17 18:21:39 phaller Exp $ */
     1/* $Id: conprop.h,v 1.5 1999-08-31 22:44:33 phaller Exp $ */
    22
    33/*
     
    5656
    5757
    58                                          /* read console properties from EAs */
    59 APIRET EXPENTRY ConsolePropertyRead(PICONSOLEOPTIONS pConsoleOptions);
     58                                                  /* read console properties */
     59APIRET EXPENTRY ConsolePropertyLoad(PICONSOLEOPTIONS pConsoleOptions);
    6060
     61                                                 /* write console properties */
     62APIRET EXPENTRY ConsolePropertySave(PICONSOLEOPTIONS pConsoleOptions);
    6163
    62                                           /* write console properties to EAs */
    63 APIRET EXPENTRY ConsolePropertyWrite(PICONSOLEOPTIONS pConsoleOptions);
    64 
     64                                                 /* apply console properties */
     65APIRET EXPENTRY ConsolePropertyApply(PICONSOLEOPTIONS pConsoleOptions);
    6566
    6667#ifdef __cplusplus
  • 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.