|
I always use SW_MAXIMIZE it works for me but I also have the taskbar property "keep task bar on top .. " enabled as well so it doesnt cover the taskbar.
One way you could do it is to call SHAppBarMessage with ABM_GETTASKBARPOS
to get the taskbar position then adjust your windows size from there .
|