G
Guest
I'm trying to resize the TaskBar. I can successfully hide and show it but
can't get it to respond to the SetWindowPos call to User32.
I am using the following definition for SetWindowPos:
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
public static extern bool SetWindowPos(
IntPtr hWnd, // handle to window
int hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
uint uFlags // window-positioning options
);
And I am calling it as follows:
x = User32.SetWindowPos
(
hwnd
, 0
, -2
, -2
, 52
, 1026
, User32.SW_SHOWNORMAL
);
Am I doing something obviously wrong??
can't get it to respond to the SetWindowPos call to User32.
I am using the following definition for SetWindowPos:
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
public static extern bool SetWindowPos(
IntPtr hWnd, // handle to window
int hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
uint uFlags // window-positioning options
);
And I am calling it as follows:
x = User32.SetWindowPos
(
hwnd
, 0
, -2
, -2
, 52
, 1026
, User32.SW_SHOWNORMAL
);
Am I doing something obviously wrong??