News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MDI child + tetx box - strange behavor

Started by lamer, November 19, 2005, 05:41:06 PM

Previous topic - Next topic

lamer

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]