Skip to content

Commit b48356f

Browse files
committed
Fix stupid error that left Hwnd property unassigned.
1 parent 54b7032 commit b48356f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Rubberduck.VBEEditor/WindowsApi/SubclassingWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class SubclassingWindow : IDisposable
3131
[DllImport("ComCtl32.dll", CharSet = CharSet.Auto)]
3232
private static extern int DefSubclassProc(IntPtr hWnd, IntPtr msg, IntPtr wParam, IntPtr lParam);
3333

34-
public IntPtr Hwnd { get; set; }
34+
public IntPtr Hwnd { get { return _hwnd; } }
3535

3636
protected SubclassingWindow(IntPtr subclassId, IntPtr hWnd)
3737
{
@@ -91,8 +91,9 @@ public virtual int SubClassProc(IntPtr hWnd, IntPtr msg, IntPtr wParam, IntPtr l
9191
}
9292

9393
Debug.Assert(IsWindow(_hwnd));
94+
//TODO: This should change to WM.DESTROY once subclassing\hooking consolidation is complete.
9495
if ((uint)msg == (uint)WM.RUBBERDUCK_SINKING)
95-
{
96+
{
9697
ReleaseHandle();
9798
}
9899
return DefSubclassProc(hWnd, msg, wParam, lParam);

0 commit comments

Comments
 (0)