ye sorry i didnt do a proper fix but things are a bit on the busy side.
i also noticed in avsenc.cpp that there is both a showwindow() and enablewindow() together. the showwindow() should(i say should) enable it anyway so the enable is a bit redundant. just something you may want to try Peter.