Commit Graph

203 Commits (90831ea16f607f16dc7f6f863552d025026c7121)

Author SHA1 Message Date
dahall 0bb9797e2f BREAKING CHANGES: I have dramatically reduced dependencies of almost all assemblies on .NET runtime assemblies not part of core System assemblies, most specifically System.Drawing and System.Windows.Forms. This forced the removal of some overloaded methods and the replacement of leveraged structures and enums with native equivalents. I added Vanara.Windows.Shell.Common which has all the content from Vanara.WIndows.Shell that did not have dependencies. I extracted all extension methods from Gdi32 and User32 and moved them to Vanara.Windows.Extensions. 2022-01-14 07:32:51 -07:00
dahall e15ee53a0a Removed dependencies on WinForms and WPF for Gdi32 and User32 assemblies. This forced the removal of extension methods to convert HBITMAP and HICON to System.Windows.Media.Imaging.BitmapSource. 2022-01-04 07:27:12 -07:00
dahall 7026a893f9 Removed PackageReference details for .NET 5 and 6 projects with System.Drawing.Common. 2021-12-29 10:16:04 -07:00
dahall b9614e7eb2 Rolled version to 3.4.0 and added support for .NET 6.0 2021-12-27 16:34:25 -07:00
dahall eb338abbc2 Made changes to address #255. Untested. 2021-11-22 07:48:41 -07:00
dahall 2307a2ba7d Added WindowStylesEx.WS_EX_NOREDIRECTIONBITMAP (#254) 2021-11-13 10:21:57 -07:00
dahall 34580ccf7f Updated project files for 3.3.14 2021-10-25 21:49:50 -06:00
dahall 3f64f6d9d4 Added new functions from Win11 2021-10-25 18:35:13 -06:00
dahall a0c1e82962 Fixed parameter and field types for User32 mouse functions (#248) 2021-09-09 07:31:58 -06:00
dahall a29af2185b Adjusted SystemEventHandler after removing BasicMessageWindow events 2021-08-29 15:07:27 -06:00
dahall 1c15f088f2 Removed BasicMessageWindows events (not relevant) and fixed some null handle potential 2021-08-29 15:06:40 -06:00
dahall 476b02ba21 Added SystemEventHandler.MessageWindowHandleCreated event 2021-08-17 13:02:39 -06:00
dahall 561400a001 Added BasicMessageWindow.HandleCreated and HandleDestroyed events. 2021-08-17 12:54:16 -06:00
dahall e693b4b11e Added CorrespondingType attributes to StandardClipboardFormat values. 2021-08-17 11:07:23 -06:00
dahall e504a40d84 Updated User32.INPUT structure for better usability, changed UIntPtr fields to IntPtr in a few structures and functions, added VK_* constants. 2021-08-02 09:58:54 -06:00
dahall 46c8e028a7 Added parameter attributes 2021-05-29 08:06:43 -06:00
dahall fec3fcbbe0 Fix #223 due to INPUT alignment problem 2021-04-11 20:27:45 -06:00
NN 28822bab9e
Use explicit framework reference. Remove transitive TFM requirement. (#212)
Co-authored-by: NN <NN---@users.noreply.github.com>
2021-03-23 07:26:03 -06:00
dahall 8aa4e7d96e Updated package descriptions with briefer syntax 2021-03-07 11:24:58 -07:00
dahall 3e00f2743c Updated referenced NuGet package versions 2021-03-07 11:15:52 -07:00
dahall fa63350031 Updated project files for 3.3.4 2021-02-11 13:33:26 -07:00
dahall bf1cbcf3ca Improved parameter attributes and overloads for CreateWindowEx and GetClassInfoEx 2021-02-08 15:33:07 -07:00
dahall 03cb7bdda6 Fixed issues with BasicMessageWindow that caused creation failures and WndProc call failures. 2021-02-08 15:31:59 -07:00
dahall 6c4a37655b Added `WindowClass` to ensupsulate information about a window class. 2021-02-08 15:30:54 -07:00
dahall 72e792928f Fixed XML comment problems 2021-02-01 09:08:31 -07:00
dahall a6d225b6b8 Updated project files with `ImportWindowsDesktopTargets` feature to prevent NETSDK1136 build error (#200) 2021-01-26 07:49:48 -07:00
dahall adf48e9d4f Added CreateWindowEx overload taking IntPtr for class name 2021-01-24 18:58:58 -07:00
dahall 3109a2ebbf Fixed disposal bug in BasicMessageWindow 2021-01-24 18:58:16 -07:00
dahall 608e0f7d53 Updated project information 2021-01-05 21:55:12 -07:00
dahall a8730903e3 More SendMessage work 2021-01-01 15:05:32 -07:00
dahall eefe24a771 Moved HOTKEYF from ComCtrl32 to User32 to align with WM_GETHOTKEY location 2021-01-01 15:03:01 -07:00
dahall 6dc8b6a749 Updated SendMessage dependencies in ListView code 2020-12-31 20:46:27 -07:00
dahall 4e44329587 Added owner-draw structures and enum to User32. 2020-12-31 20:14:04 -07:00
dahall 1ef28a890a POTENTIALLY BREAKING CHANGE: Revamped SendMessage overloads to reduce accidential use of wrong overload. Most uses still work except passing a class in as lParam. 2020-12-31 20:13:35 -07:00
dahall feba58dafb Added new SendMessage overload for WM_GETTEXT use case (#191). 2020-12-31 10:50:54 -07:00
dahall f0fd3f0334 Moved MouseButtonState from User32 to Shared assembly and up to PInvoke namespace. Fixed dependencies. 2020-12-27 17:30:06 -07:00
dahall 2066523bd0 BREAKING CHANGE: Changed AppendMenu param from UIntPtr to IntPtr for easier conversion from HMENU and int command ids. Change MENUINFO.dwMenuData to IntPtr for easier conversions. 2020-12-27 16:51:46 -07:00
dahall c1c20171e7 Added IDC_ cursor resource id constants 2020-12-27 16:50:05 -07:00
dahall f526adbdf6 Doc fixes 2020-12-26 20:34:36 -07:00
dahall 4307eaa01a Added CW_USEDEFAULT constant and fixed return value of CreateWindow function 2020-12-26 16:01:51 -07:00
dahall a9ed619504 Added constants for static controls (msgs, notifications and styles) 2020-12-26 16:00:55 -07:00
dahall 662c8a18c1 Added IDI_* values for static icons and overloaded LoadIcon function to accept a ResourceId param. 2020-12-26 16:00:25 -07:00
dahall 96ab21f382 Added param to SystemEventHandler constructor to force creation of the message pump in a thread and a PreprocessMessage method that pre-processes messages in the pump. 2020-12-25 20:41:20 -07:00
dahall d119c5adbd Updated project information 2020-12-24 11:00:18 -07:00
dahall 8acca80194 Updated project information 2020-12-22 19:13:59 -07:00
dahall 8e1057e676 Exposed public properties in SystemEventHandler 2020-12-22 11:45:04 -07:00
dahall 1196a4ed48 Added abstract `SystemEventHandler` which provides a smart message window that will automatically spin up a thread, if needed, for the message pump. 2020-12-22 09:59:32 -07:00
dahall 5c0f92d07c More work on BasicMessageWindow 2020-12-20 09:16:10 -07:00
dahall c70614bd19 Added BROADCAST_QUERY_DENY return value. 2020-12-20 08:36:22 -07:00
dahall 6aa6d3fd70 More work and tests for BasicMessageWindow 2020-12-20 08:29:09 -07:00