window-style

How to check if a window style exists in a hexadecimal?

Hi, I have a question regarding a window style hexadecimal. According to http://support.microsoft.com/kb/111011/en-us, 0x16CF0000 contains window styles of WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX. How do I check if a window style exist in a combination of...

Toggle Process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden at runtime

I want to toggle a process's visibility at runtime, I have a Windows Form app that starts via a process another console app hidden by default but I'd like to allow the admin user to toggle this state via a checkbox and show the console app if they choose. I have this but it's not working: private void checkBox1_CheckedChanged(object se...

Getting window style

I'm trying to check if a window has a certain style using GetWindowLong(hWnd, GWL_STYLE) but that gives me a LONG type of variable. how would you check for a specific style from that say a const value type 'WS_CAPTION'? ...