Skip to content

Commit

Permalink
fix exception for StylableListView (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframhaussig authored Feb 27, 2024
1 parent 9e6a598 commit 89ecc4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ private IntPtr drawItem(IntPtr mHWnd, int itemIndex, NativeMethods.NMLVCUSTOMDRA

private IntPtr drawGroupHeader(IntPtr mHWnd, NativeMethods.NMLVCUSTOMDRAW pnmlv)
{
//fix "failed to do native call 'SendMessage' (msg = LVM_GETGROUPINFO, wParam = 16)"
if (pnmlv.nmcd.dwItemSpec == IntPtr.Zero)
{
return new IntPtr((int)NativeMethods.CDRF.SkipDefault);
}
NativeMethods.RECT rectHeader = new()
{
top = NativeConstants.LVGGR_HEADER
Expand Down

0 comments on commit 89ecc4f

Please sign in to comment.