.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
Post a Comment