mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 02:43:38 +00:00
[REGEDIT] Fix and improvement in TreeView (Null handle check, incorrect display after edit, WM_NOTIFY refactor) (#2733)
* - Fix of missing invalid handle check - Fix of Address & status bar incorrect display after rename - Refactoring of Treeview WM_NOTIFY code, for better consistency with WM_NOTIFY management for ListView * Fix following review (space in #define) * Cleanup following review * fix following review * Fix of round 3 of review comments * UpdateAdress kept in its original location * fix * fix (extern missing) * both extern removed * Review comments Error message being added in order to support CORE-17048
This commit is contained in:
parent
3fd6dbd943
commit
4d1cd72317
4 changed files with 143 additions and 109 deletions
|
@ -27,8 +27,8 @@
|
|||
#define TREE_WINDOW 2002
|
||||
#define LIST_WINDOW 2003
|
||||
|
||||
#define SPLIT_WIDTH 5
|
||||
#define SPLIT_MIN 30
|
||||
#define SPLIT_WIDTH 5
|
||||
#define SPLIT_MIN 30
|
||||
|
||||
#define COUNT_OF(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
|
@ -94,6 +94,7 @@ extern void ShowAboutBox(HWND hWnd);
|
|||
extern LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
extern void ResizeWnd(int cx, int cy);
|
||||
extern LPCWSTR get_root_key_name(HKEY hRootKey);
|
||||
VOID UpdateAddress(HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath);
|
||||
|
||||
/* error.c */
|
||||
extern int ErrorMessageBox(HWND hWnd, LPCWSTR lpTitle, DWORD dwErrorCode, ...);
|
||||
|
@ -115,6 +116,7 @@ extern HWND CreateListView(HWND hwndParent, HMENU id, INT cx);
|
|||
extern BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCWSTR keyPath);
|
||||
extern LPCWSTR GetValueName(HWND hwndLV, int iStartAt);
|
||||
extern BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result);
|
||||
extern BOOL TreeWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result);
|
||||
extern BOOL IsDefaultValue(HWND hwndLV, int i);
|
||||
|
||||
/* regedit.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue