Page 1 of 1

hide Notepad's menubar

Posted: Sun Jun 12, 2011 12:54 pm
by Alireza
Is there a way for hide Notepad's menubar?
i think in first, i get a handle of menu bar :?:

Code: Select all

RunProgram("Notepad.exe")
Delay(150)
hwnd = FindWindow_(#Null, "Untitled - Notepad") ;
If hwnd
   ShowWindow_(GetMenu_(hwnd), #SW_HIDE)
Else
  Debug "Notepad not found!"
EndIf


Re: hide Notepad's menubar

Posted: Sun Jun 12, 2011 2:47 pm
by RASHAD
Alireza Hi
Very strange request
But......

Code: Select all

RunProgram("Notepad.exe")
Delay(150)
hwnd = FindWindow_(#Null, "Untitled - Notepad")
SetMenu_(hwnd,0)

Re: hide Notepad's menubar

Posted: Sun Jun 12, 2011 2:54 pm
by MachineCode
And note that it won't disable the keyboard shortcuts for the removed menu items.

Re: hide Notepad's menubar

Posted: Sun Jun 12, 2011 3:29 pm
by Alireza
Thank u my friends :D very gooooooooooooooood