Main menu with out SIP button?

  • Thread starter Thread starter David Glover
  • Start date Start date
D

David Glover

Hi all,

I fear that I may know the answer to this, and what I am trying to
achieve is not possible however:

Both myself and a collegue of mine working on different projects are
in the position where we have an application with a few items on the
Main Menu, however we do not need the SIP button to be displayed,
which would in turn allow a greater space for menu items.

My question is this, is it possible to remove the SIP display/hide
button which appears in the right hand corner of a MainMenu control
from the .NET compact framework?

Many thanks

David Glover
 
AFAIK, you'll need to do some P/Inoking...



Private Const SHFS_HIDESIPBUTTON As Integer = &H8

Dim hWnd As IntPtr = FindWindow(Nothing, strWindowName)

Return SHFullScreen(hWnd, SHFS_HIDESIPBUTTON)

<DllImport("coredll.dll")> _

Private Shared Function FindWindow(ByVal lpCLassName As String, ByVal
lpWindowsName As String) As IntPtr

End Function

<DllImport("aygshell.dll")> _

Private Shared Function SHFullScreen(ByVal hwndRequester As IntPtr, ByVal
dwState As Integer) As Boolean

End Function

This subject is discussed in depth in Dan Fergus And Larry Roof's The
Definitive Guide to the COmpact Framework by Apress...it's a great book and
something you'll definitely want if you are going to get into CF
development...
 
Back
Top