Update WndMainWindow.cpp

Preparations