Commit Graph

59 Commits (master)

Author SHA1 Message Date
Alistair Leslie-Hughes 006d3f3365 regedit: Don't expand items on initial tree creation.
The Message TVM_EXPAND is captured in treeview_notify, then passes
g_pChildWnd->hTreeWnd on to OnTreeExpanding which hasn't been
initialized yet.  The function get_last_key is already called after
the hTreeWnd has been assigned to select the previous selected
item (if it exists).

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:02:31 +02:00
Hugh McMaster a926e05446 regedit: Do not directly include stdio.h any longer.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 16:28:07 +02:00
Hugh McMaster 73220a3d6f regedit: Remove regproc.h.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 16:26:01 +02:00
Hugh McMaster 78732a6d46 regedit: Replace the COUNT_OF macro with ARRAY_SIZE.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 16:22:34 +02:00
Michael Stefaniuc 505a9e0283 regedit: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 10:06:12 +01:00
Hugh McMaster 793ddc992c regedit: Use the heap_*() functions in treeview.c where possible.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-28 15:42:18 +02:00
Huw Davies 6bc8ecafe8 regedit: Use the system metrics to retrieve the treeview icon sizes.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 19:00:25 +02:00
Jakub Bartmiński 9e35dd1545 regedit: Fall back to tree root on invalid path.
Signed-off-by: Jakub Bartmiński <jakub.bartm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 22:02:30 +02:00
Nikolay Sivov a9bae9629c regedit: Sort each of top level branches separately.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:32:13 +01:00
Hugh McMaster 7073e27fbd regedit: Sort treeview children on refresh.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-09 13:01:32 +01:00
Nikolay Sivov 7dea6fef61 regedit: Always show treeview selection.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 10:52:03 +01:00
Hugh McMaster 1e1bfba1c4 regedit: Only allow key renaming via the Edit or Popup menus.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 20:49:09 +01:00
Nikolay Sivov c9fb3b7f8f regedit: Fix potential buffer leak, simplify error handling (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 09:51:30 +01:00
Bernhard Übelacker cf6477ab27 regedit: Call RegEnumValueW with value and val_count parameters. 2015-07-08 16:02:24 +09:00
Francois Gouget 1402201cd6 regedit: Remove an unneeded NONAMELESSSTRUCT directive. 2015-04-03 00:33:30 +09:00
Daniel Jelinski 1565def7b9 regedit: Adding new subkey to a key with no subkeys now works with native comctl32. 2012-06-04 12:17:52 +02:00
Daniel Jelinski 14d4702c1b regedit: Make key names editable also with native comctl32. 2012-06-04 10:35:11 +02:00
Andrew Nguyen 3c0af2fcd1 regedit: Convert the treeview code to Unicode. 2011-04-18 11:50:39 +02:00
Andrew Nguyen 82796c565e regedit: Remove all Unicode macros in main.h. 2011-04-18 11:50:09 +02:00
Michael Stefaniuc 484a53574a regedit: Remove superfluous pointer casts. 2009-01-15 12:43:05 +01:00
Michael Stefaniuc 683c53db42 regedit: Remove some superfluous casts. 2008-12-04 12:08:27 +01:00
Michael Stefaniuc 4f199a10ad Remove the remaining casts of NULL. 2008-11-03 13:42:09 +01:00
Lei Zhang 86a4e99c04 regedit: Check return values, don't request unneeded value which always fails. 2008-10-02 10:29:06 -05:00
Lei Zhang 4389066754 regedit: Use W version of TreeView_GetItem. 2008-10-02 10:29:00 -05:00
Alexander Nicolaysen Sørnes c36fec1cd0 regedit: Set the unicode flag for the treeview. 2008-09-02 13:26:57 +02:00
Alexander Nicolaysen Sørnes e26b563ee1 regedit: Remove some ANSI functions. 2008-09-02 12:55:30 +02:00
Alexander Nicolaysen Sørnes 5915b49700 regedit: Use only SendMessageW in treeview.c. 2008-08-26 12:07:42 +02:00
Alexander Nicolaysen Sørnes be43131b49 regedit: Convert treeview init to Unicode. 2008-08-26 12:07:42 +02:00
Alexander Nicolaysen Sørnes 583bf6e4bf regedit: Convert searching to Unicode. 2008-08-26 12:07:42 +02:00
Alexander Nicolaysen Sørnes ded5b05e4a regedit: Fix memory leaks in favourites handling. 2008-08-25 11:39:02 +02:00
Alexander Nicolaysen Sørnes 455ce06d4f regedit: Convert favourites handling to unicode. 2008-08-25 11:38:56 +02:00
Alexander Nicolaysen Sørnes 039df36b16 regedit: Fix possible memory leaks. 2008-08-25 11:38:28 +02:00
Alexander Nicolaysen Sørnes 223c24bdbf regedit: Remove unneeded character conversions. 2008-08-25 11:38:20 +02:00
Alexander Nicolaysen Sørnes 74cae34da8 regedit: Convert AddEntryToTree to unicode. 2008-08-22 11:32:09 +02:00
Alexander Nicolaysen Sørnes a6a4109dd4 regedit: Convert key creation to unicode. 2008-08-22 11:32:09 +02:00
Alexander Nicolaysen Sørnes 6168a7c60c regedit: Convert clipboard handling to unicode. 2008-08-20 12:20:37 +02:00
Dmitry Timoshkov a5816064f0 regedit: Fix Win64 warnings. 2008-04-09 16:26:44 +02:00
Andrew Talbot 6ca620334a regedit: Write-strings warnings fix. 2006-08-11 11:56:21 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Michael Stefaniuc a87520036f janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Mike McCormack 01d99121e5 regedit: Fix some gcc 4.1 warnings. 2006-03-17 13:11:28 +01:00
Alexandre Julliard e21a97da85 Fixed some compiler warnings on Darwin. 2005-12-01 12:36:05 +01:00
Krzysztof Foltman e4e75a2a06 - Added Find functions
- Some refactoring that made Find functions possible
   - GetItemPath returns a heap-allocated string
   - subtree update put into a separate function UpdateExpandingTree
   - error() utility function made public
- Find functions are grayed/ungrayed based on context (which fixes
  invalid 'grayed' flag in some localizations).
- InvalidateRect to fix display glitches coming from using
  WM_SETREDRAW.
- English and Polish resource updates (Find dialog box and Find menu
  options, string not found message).
2005-10-26 12:07:55 +00:00
Vincent Béron 6e7cf127db Remove unused function from regedit/treeview.c. 2005-09-29 10:33:34 +00:00
Krzysztof Foltman 83edf20502 - Copy key name works.
- Favorites (adding, removing, going to) work.
- Added context sensitive graying to some menu options.
- Cleanup of status bar update.
2005-09-26 09:57:56 +00:00
Mike McCormack d73dad6630 Fixes for -Wmissing-declarations and -Wwrite-strings warnings. 2005-06-04 10:01:25 +00:00
Marcus Meissner 3e5b9b8d57 Removed inclusion of process.h (not needed and breaks with gcc4). 2005-04-11 12:59:17 +00:00
Crestez Leonard 94ce244555 Implement Refresh.
Fix bug with all HKEY_ roots always showing expandable.
2005-01-10 16:03:22 +00:00
Robert Reif cddb03e6b9 Added HKEY_DYN_DATA support. 2004-07-08 20:14:10 +00:00
Robert Shearman 9c93c484c5 - Use hourglass cursor for better feedback when expanding nodes.
- Turn off redrawing when expanding to make it faster.
2004-06-14 19:34:58 +00:00