|
|
1.1 ! root 1: ! 2: //----------------------------------------------------------------------------- ! 3: // This is a part of the Microsoft Source Code Samples. ! 4: // Copyright (C) 1993 Microsoft Corporation. ! 5: // All rights reserved. ! 6: // ! 7: // This source code is only intended as a supplement to ! 8: // Microsoft Development Tools and/or WinHelp documentation. ! 9: // See these sources for detailed information regarding the ! 10: // Microsoft samples programs. ! 11: //----------------------------------------------------------------------------- ! 12: ! 13: #include "windows.h" ! 14: #include "getsys.h" ! 15: ! 16: ! 17: getsysDlg DIALOG 30, 30, 285, 155 ! 18: STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU ! 19: CAPTION "Get System Information" ! 20: BEGIN ! 21: PUSHBUTTON "GetSysColors()", DID_SYSCOLORS, 5, 10, 100, 15, WS_TABSTOP ! 22: PUSHBUTTON "GetSystemDirectory()", DID_DIRECTORY, 5, 30, 100, 15, WS_TABSTOP ! 23: PUSHBUTTON "GetSystemInfo()", DID_INFO , 5, 50, 100, 15, WS_TABSTOP ! 24: PUSHBUTTON "GetSystemMetrics()", DID_METRICS , 5, 70, 100, 15, WS_TABSTOP ! 25: PUSHBUTTON "GetSystemPaletteEntries()", DID_PALETTE , 5, 90, 100, 15, WS_TABSTOP ! 26: PUSHBUTTON "GetLocalTime()", DID_LOCALTIME, 5, 110, 100, 15, WS_TABSTOP ! 27: PUSHBUTTON "GetSystemTime()", DID_TIME , 5, 130, 100, 15, WS_TABSTOP ! 28: LISTBOX DID_LISTBOX , 120, 20, 160, 120, ! 29: WS_VSCROLL | WS_TABSTOP | LBS_USETABSTOPS ! 30: CTEXT "Text", DID_TEXT , 120, 8, 160, 8 ! 31: END
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.