.net - What is &HA0000 constant in this code -


public class form1   protected overrides readonly property createparams() createparams           dim cp createparams = mybase.createparams       cp.style = &ha0000       return cp     end   end property end class 

i did google search , found &ha0000 appcommand_volume_up. code minimize , restore non-border form when click on taskbar icon. please give me explain. thanks.

these window styles. list of can found on over msdn.

window styles bit flags combined using bitwise or. so, first decompose 000a0000 constituent parts: 00080000 , 00020000. now, ws_sysmenu 00080000 , ws_minimizebox 00020000.

whoever wrote code using magic constants should given suitably humiliating punishment. code should read:

cp.style = ws_sysmenu or ws_minimizebox 

obviously you'll need define ws_* constants, take time benefit of future readers of code.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -