mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:05:42 +00:00
Cleanup after first check-in.
svn path=/trunk/; revision=3174
This commit is contained in:
parent
7fe69e5501
commit
2c0cbaa9e2
9 changed files with 40 additions and 44 deletions
|
@ -1,6 +1,6 @@
|
||||||
// stdafx.cpp : source file that includes just the standard includes
|
// stdafx.cpp : source file that includes just the standard includes
|
||||||
// regedit.pch will be the pre-compiled header
|
// regedit.pch will be the pre-compiled header
|
||||||
// stdafx.obj will contain the pre-compiled type information
|
// stdafx.obj will contain the pre-compiled type information
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#endif // _MSC_VER > 1000
|
#endif // _MSC_VER > 1000
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
|
|
||||||
|
|
||||||
// Windows Header Files:
|
// Windows Header Files:
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#else
|
#else
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#else
|
#else
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -189,7 +189,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
|
|
||||||
// Create the status bar
|
// Create the status bar
|
||||||
hStatusWnd = CreateStatusWindow(WS_VISIBLE|WS_CHILD|WS_CLIPSIBLINGS|SBT_NOBORDERS,
|
hStatusWnd = CreateStatusWindow(WS_VISIBLE|WS_CHILD|WS_CLIPSIBLINGS|SBT_NOBORDERS,
|
||||||
"", hMainWnd, STATUS_WINDOW);
|
"", hMainWnd, STATUS_WINDOW);
|
||||||
if (!hStatusWnd)
|
if (!hStatusWnd)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -202,11 +202,11 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
/*
|
/*
|
||||||
hSplitWnd = CreateWindow(szFrameClass, "splitter window", WS_VISIBLE|WS_CHILD,
|
hSplitWnd = CreateWindow(szFrameClass, "splitter window", WS_VISIBLE|WS_CHILD,
|
||||||
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
|
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
|
||||||
hMainWnd, (HMENU)SPLIT_WINDOW, hInstance, NULL);
|
hMainWnd, (HMENU)SPLIT_WINDOW, hInstance, NULL);
|
||||||
if (!hSplitWnd)
|
if (!hSplitWnd)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
*/
|
*/
|
||||||
hTreeWnd = CreateTreeView(hMainWnd, "c:\\foobar.txt");
|
hTreeWnd = CreateTreeView(hMainWnd, "c:\\foobar.txt");
|
||||||
if (!hTreeWnd)
|
if (!hTreeWnd)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -250,8 +250,8 @@ void OnSize(UINT nType, int cx, int cy)
|
||||||
|
|
||||||
GetWindowRect(hStatusWnd, &rc);
|
GetWindowRect(hStatusWnd, &rc);
|
||||||
|
|
||||||
MoveWindow(hTreeWnd,0,0,cx/2,cy-(rc.bottom - rc.top),TRUE);
|
MoveWindow(hTreeWnd,0,0,cx/2,cy-(rc.bottom - rc.top),TRUE);
|
||||||
MoveWindow(hListWnd,cx/2,0,cx,cy-(rc.bottom - rc.top),TRUE);
|
MoveWindow(hListWnd,cx/2,0,cx,cy-(rc.bottom - rc.top),TRUE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,11 +291,11 @@ void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
|
||||||
TCHAR str[100];
|
TCHAR str[100];
|
||||||
|
|
||||||
strcpy(str, TEXT(""));
|
strcpy(str, TEXT(""));
|
||||||
if (nFlags & MF_POPUP) {
|
if (nFlags & MF_POPUP) {
|
||||||
if (hSysMenu != GetMenu(hWnd)) {
|
if (hSysMenu != GetMenu(hWnd)) {
|
||||||
if (nItemID == 2) nItemID = 5;
|
if (nItemID == 2) nItemID = 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LoadString(hInst, nItemID, str, 100)) {
|
if (LoadString(hInst, nItemID, str, 100)) {
|
||||||
// load appropriate string
|
// load appropriate string
|
||||||
LPTSTR lpsz = str;
|
LPTSTR lpsz = str;
|
||||||
|
@ -324,7 +324,7 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
switch (wmId) {
|
switch (wmId) {
|
||||||
case IDM_ABOUT:
|
case IDM_ABOUT:
|
||||||
// ShowAboutBox(hWnd);
|
// ShowAboutBox(hWnd);
|
||||||
{
|
{
|
||||||
HICON hIcon = LoadIcon(hInst, (LPCTSTR)IDI_REGEDIT);
|
HICON hIcon = LoadIcon(hInst, (LPCTSTR)IDI_REGEDIT);
|
||||||
ShellAbout(hWnd, szTitle, "FrameWndProc", hIcon);
|
ShellAbout(hWnd, szTitle, "FrameWndProc", hIcon);
|
||||||
//if (hIcon) DestroyIcon(hIcon); // NOT REQUIRED
|
//if (hIcon) DestroyIcon(hIcon); // NOT REQUIRED
|
||||||
|
@ -386,16 +386,16 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
//PageSetupDlg(&psd);
|
//PageSetupDlg(&psd);
|
||||||
break;
|
break;
|
||||||
case ID_REGISTRY_OPENLOCAL:
|
case ID_REGISTRY_OPENLOCAL:
|
||||||
{
|
{
|
||||||
HWND hChildWnd;
|
HWND hChildWnd;
|
||||||
// hChildWnd = CreateWindow(szFrameClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CHILD,
|
// hChildWnd = CreateWindow(szFrameClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CHILD,
|
||||||
// CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, hWnd, NULL, hInst, NULL);
|
// CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, hWnd, NULL, hInst, NULL);
|
||||||
hChildWnd = CreateWindow(szFrameClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CHILD,
|
hChildWnd = CreateWindow(szFrameClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CHILD,
|
||||||
0, 0, 150, 170, hWnd, NULL, hInst, NULL);
|
0, 0, 150, 170, hWnd, NULL, hInst, NULL);
|
||||||
if (hChildWnd) {
|
if (hChildWnd) {
|
||||||
ShowWindow(hChildWnd, 1);
|
ShowWindow(hChildWnd, 1);
|
||||||
UpdateWindow(hChildWnd);
|
UpdateWindow(hChildWnd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDM_ABOUT:
|
case IDM_ABOUT:
|
||||||
|
|
|
@ -130,7 +130,7 @@ STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "About"
|
CAPTION "About"
|
||||||
FONT 8, "System"
|
FONT 8, "System"
|
||||||
BEGIN
|
BEGIN
|
||||||
ICON IDI_REGEDIT,IDC_MYICON,14,9,16,16
|
ICON IDI_REGEDIT,IDI_REGEDIT,14,9,16,16
|
||||||
LTEXT "ReactOS regedit Version 1.0",IDC_STATIC,49,10,119,8,
|
LTEXT "ReactOS regedit Version 1.0",IDC_STATIC,49,10,119,8,
|
||||||
SS_NOPREFIX
|
SS_NOPREFIX
|
||||||
LTEXT "Copyright (C) 2002 ReactOS Team",IDC_STATIC,49,20,119,8
|
LTEXT "Copyright (C) 2002 ReactOS Team",IDC_STATIC,49,20,119,8
|
||||||
|
|
|
@ -128,7 +128,7 @@ HTREEITEM AddItemToTree(HWND hwndTV, LPSTR lpszItem, int nLevel)
|
||||||
|
|
||||||
BOOL InitTreeViewItems(HWND hwndTV, LPSTR lpszFileName)
|
BOOL InitTreeViewItems(HWND hwndTV, LPSTR lpszFileName)
|
||||||
{
|
{
|
||||||
HTREEITEM hItem;
|
HTREEITEM hItem;
|
||||||
|
|
||||||
hItem = AddItemToTree(hwndTV, "My Computer", 1);
|
hItem = AddItemToTree(hwndTV, "My Computer", 1);
|
||||||
AddItemToTree(hwndTV, "HKEY_CLASSES_ROOT", 2);
|
AddItemToTree(hwndTV, "HKEY_CLASSES_ROOT", 2);
|
||||||
|
@ -137,7 +137,7 @@ BOOL InitTreeViewItems(HWND hwndTV, LPSTR lpszFileName)
|
||||||
AddItemToTree(hwndTV, "HKEY_USERS", 2);
|
AddItemToTree(hwndTV, "HKEY_USERS", 2);
|
||||||
AddItemToTree(hwndTV, "HKEY_CURRENT_CONFIG", 2);
|
AddItemToTree(hwndTV, "HKEY_CURRENT_CONFIG", 2);
|
||||||
|
|
||||||
TreeView_Expand(hwndTV, hItem, TVE_EXPAND);
|
TreeView_Expand(hwndTV, hItem, TVE_EXPAND);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,13 @@
|
||||||
// Microsoft Developer Studio generated include file.
|
// Microsoft Developer Studio generated include file.
|
||||||
// Used by regedit.rc
|
// Used by regedit.rc
|
||||||
//
|
//
|
||||||
#define IDC_MYICON 2
|
#define ID_REGISTRY_MENU 0
|
||||||
#define IDD_REGED_DIALOG 102
|
#define ID_EDIT_MENU 1
|
||||||
|
#define ID_FILE_MENU 2
|
||||||
|
#define ID_VIEW_MENU 3
|
||||||
|
#define ID_FAVOURITES_MENU 4
|
||||||
|
#define ID_EDIT_NEW_MENU 5
|
||||||
|
|
||||||
#define IDD_ABOUTBOX 103
|
#define IDD_ABOUTBOX 103
|
||||||
#define IDS_APP_TITLE 103
|
#define IDS_APP_TITLE 103
|
||||||
#define IDM_ABOUT 104
|
#define IDM_ABOUT 104
|
||||||
|
@ -13,20 +18,11 @@
|
||||||
#define IDI_SMALL 108
|
#define IDI_SMALL 108
|
||||||
#define IDC_REGEDIT 109
|
#define IDC_REGEDIT 109
|
||||||
#define IDC_REGEDIT_FRAME 110
|
#define IDC_REGEDIT_FRAME 110
|
||||||
#define IDR_MAINFRAME 128
|
|
||||||
#define IDR_REGEDIT_MENU 130
|
#define IDR_REGEDIT_MENU 130
|
||||||
#define IDD_DIALOG1 131
|
#define IDD_DIALOG1 131
|
||||||
|
#define IDB_OPEN_FILE 132
|
||||||
#define ID_REGISTRY_MENU 0
|
#define IDB_CLOSED_FILE 133
|
||||||
#define ID_EDIT_MENU 1
|
#define IDB_ROOT 134
|
||||||
#define ID_FILE_MENU 2
|
|
||||||
#define ID_VIEW_MENU 3
|
|
||||||
#define ID_FAVOURITES_MENU 4
|
|
||||||
#define ID_EDIT_NEW_MENU 5
|
|
||||||
|
|
||||||
#define IDB_OPEN_FILE 97
|
|
||||||
#define IDB_CLOSED_FILE 98
|
|
||||||
#define IDB_ROOT 99
|
|
||||||
|
|
||||||
#define ID_HELP_HELPTOPICS 32771
|
#define ID_HELP_HELPTOPICS 32771
|
||||||
#define ID_FAVOURITES_ADDTOFAVOURITES 32772
|
#define ID_FAVOURITES_ADDTOFAVOURITES 32772
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue