Hi!
I took the Iczelion's tutorial of MDI and added the following code to child window proc:
.elseif uMsg==WM_CREATE
;just add text box to child
invoke CreateWindowEx,NULL,addr szEdit,NULL,\
WS_CHILD or WS_VISIBLE or WS_CLIPCHILDREN or WS_CLIPSIBLINGS \
or ES_MULTILINE or WS_VSCROLL,0,0,CW_USEDEFAULT,\
CW_USEDEFAULT,hChild,NULL,hInstance,NULL
mov hText,eax
.elseif uMsg==WM_SIZE
;resize text box to fit the child
loword lParam
mov ecx,eax
hiword lParam
invoke MoveWindow,hText,0,0,ecx,eax,FALSE
As you see - nothing complicated, but when I maximize the child window, all it's control buttons ( minimize, maximize etc) just disappear, and it looks like main MDI window with text box.
What's wrong?
Thank you.
[attachment deleted by admin]