Removing the Title bar of external application using c#

后端 未结 7 1179
眼角桃花
眼角桃花 2020-12-10 12:42

My application starts up another external application.

I want to remove the title bar of this external application once it has started.

Is this feasible, and

相关标签:
7条回答
  • 2020-12-10 13:19
    Process[] processes = Process.GetProcessesByName("notepad");
    IntPtr windowHandle = processes[0].MainWindowHandle;
    
    const int GWL_STYLE = (-16); 
    const UInt32 WS_VISIBLE = 0x10000000;
    SetWindowLong(windowHandle, GWL_STYLE, (WS_VISIBLE));`
    
    0 讨论(0)
提交回复
热议问题