toolbar an InputPanel

  • Thread starter Thread starter Felix González
  • Start date Start date
F

Felix González

Hi,

I use a toolbar and automaticaly I have en imput panel in the toolbar, how
can hide this inputpanel?

thanks
 
It can be achieved by invoking SHFullScreen with SHFS_HIDESIPBUTTON
parameter. To retrieve window handle and to pass it to the first
parameter use:

this.Capture = true;
IntPtr hwnd = GetCapture();
this.Capture = false;

....

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

[DllImport("aygshell.dll")]
private static extern bool SHFullScreen(IntPtr hwndReq, int dwState);

private const int SHFS_SHOWSIPBUTTON = 0x0004;
private const int SHFS_HIDESIPBUTTON = 0x0008;


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
See the recent thread "help hiding the SIP triangle" for the solution using
SHFullscreen

Peter
 
Back
Top