I have attempted to create a MDI but was unsuccessful. The Child window created could not be seen when maximaised, and could not be closed by pressing the x button. Can anyone tell me wat went wrong, someone with similar experience.
Posted on 2002-06-02 07:08:20 by roticv
Hi roticv

I guess you process WM_COMMAND. If you do you must call DefFrameProc if you dont process the message.

KetilO
Posted on 2002-06-02 12:16:43 by KetilO
Hi KetilO,
I did process DefFrameProc. I still do not know what went wrong in my code. I do hope you can help me out. btw, thanks for your help
Posted on 2002-06-02 12:34:51 by roticv
Have you used DefMDIChildProc in your child window procedure?

Thomas
Posted on 2002-06-02 12:37:56 by Thomas
Yeah.. i did
Posted on 2002-06-02 12:44:26 by roticv
im just throwing this out there because i ran into a similar. i was able to create my mdi child windows but after being maximized the min/max/close buttons were unresponsive.

the problem was i was using a ret when handling the WM_COMMAND message. mine looked like this:
   .ELSEIF uMsg == WM_COMMAND

.if wParam == 8000
invoke MakeMDIchild
.endif
ret

i took the ret out and it worked fine. im curious about what the end of your wndproc procedure looks like. should look something like:
   .ENDIF


invoke DefFrameProc,hWin,hClient,uMsg,wParam,lParam
ret
Posted on 2002-06-02 13:10:20 by smurf
yeah.. thanks for your help smurf. It did sure solve all my problems. So the problems lies on that you must return DefFrameProc.
Posted on 2002-06-03 02:16:46 by roticv