draw non-fullscreen?

  • Thread starter Thread starter Roger McFadden
  • Start date Start date
R

Roger McFadden

Hello

Is is possible to get a form, which is not fullscreened?
I want to popup a menu-like form when I press a key...

Thanks

Roger
 
something like this should work:

[DllImport("coredll.dll")]
private extern static IntPtr GetForegroundWindow();

[DllImport("coredll.dll", EntryPoint = "SetWindowPos", SetLastError =
true)]
internal static extern bool SetWindowPos(IntPtr hwnd, IntPtr
hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);

.....in func...

IntPtr hwnd = GetForegroundWindow();
SetWindowPos(hwnd, IntPtr.Zero, x, y, width, height, SWP_NOZORDER);


Evan Camilleri
 
Back
Top