if you open the openFileDialog, not maximized, the extension is added to the right. Then maximize it by double clicking the title bar. Everything resizes ok.
Then press cancel.
Then open the dialog again, it will automatically open again maximized. But now the extension will not be added.
I know nothing about windows messages, but:
I see that in maximized case the WM_SHOWWINDOW in WholeDialogWrapper WndProc does not arrive. Therefore Initcontrol is not called.
I'added:
case Msg.WM_PAINT:
if (!mInitializated)
InitControls();
break;
now it works
if you open the openFileDialog, not maximized, the extension is added to the right. Then maximize it by double clicking the title bar. Everything resizes ok.
Then press cancel.
Then open the dialog again, it will automatically open again maximized. But now the extension will not be added.
I know nothing about windows messages, but:
I see that in maximized case the WM_SHOWWINDOW in WholeDialogWrapper WndProc does not arrive. Therefore Initcontrol is not called.
I'added:
now it works