Skip to content

Commit c65f7b4

Browse files
committed
fixed indentation (and IntPtr params.. again??)
1 parent 5dd97be commit c65f7b4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

RetailCoder.VBE/Common/RubberduckHooks.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -167,38 +167,38 @@ private IntPtr WindowProc(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam)
167167
return User32.CallWindowProc(_oldWndProc, hWnd, uMsg, wParam, lParam);
168168
}
169169

170-
private bool HandleHotkeyMessage(int wParam)
170+
private bool HandleHotkeyMessage(IntPtr wParam)
171171
{
172172
var processed = false;
173-
if (GetWindowThread(User32.GetForegroundWindow()) == GetWindowThread(_mainWindowHandle))
174-
{
173+
if (GetWindowThread(User32.GetForegroundWindow()) == GetWindowThread(_mainWindowHandle))
174+
{
175175
var hook = Hooks.OfType<Hotkey>().SingleOrDefault(k => k.HotkeyInfo.HookId == (IntPtr) wParam);
176-
if (hook != null)
177-
{
176+
if (hook != null)
177+
{
178178
hook.OnMessageReceived();
179-
processed = true;
180-
}
179+
processed = true;
180+
}
181181
}
182182
return processed;
183-
}
183+
}
184184

185-
private void HandleActivateAppMessage(int wParam)
185+
private void HandleActivateAppMessage(IntPtr wParam)
186186
{
187187
const int WA_INACTIVE = 0;
188188
const int WA_ACTIVE = 1;
189189
const int WA_CLICKACTIVE = 2;
190190

191-
switch (LoWord(wParam))
192-
{
193-
case WA_ACTIVE:
191+
switch (LoWord(wParam))
192+
{
193+
case WA_ACTIVE:
194194
case WA_CLICKACTIVE:
195-
Attach();
196-
break;
195+
Attach();
196+
break;
197197

198-
case WA_INACTIVE:
199-
Detach();
200-
break;
201-
}
198+
case WA_INACTIVE:
199+
Detach();
200+
break;
201+
}
202202
}
203203

204204
private static int LoWord(IntPtr dw)

0 commit comments

Comments
 (0)