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.
Hi roticv
I guess you process WM_COMMAND. If you do you must call DefFrameProc if you dont process the message.
KetilO
I guess you process WM_COMMAND. If you do you must call DefFrameProc if you dont process the message.
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
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
Have you used DefMDIChildProc in your child window procedure?
Thomas
Thomas
Yeah.. i did
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:
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:
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
yeah.. thanks for your help smurf. It did sure solve all my problems. So the problems lies on that you must return DefFrameProc.