Danny24
October 1st, 1999, 08:05 AM
Hy there,
I'm working on a mfc-mdi application, in which I nearly all CChildFrame(not view!)-elements replaced by ownerdrawn
objects (titlebar, titlebuttons, sysmenu, window borders and so on). I'm now trying to also replace the scrollbars.
Well, and that's my problem. I'm not able to add a control into the non-client area of the CMDIChildWnd. In my
tests I tried to add a simple CButton to the bottom of the CMDIChildWnd. But all I got was a button in the
client-area of the window (which didn't work, of course).
In the OnNcCalcSize I calculate the size of the clientarea that way, that there is space at the right/lower
border to place my controls there. But I didn't get them into the nc-area... bad thing, please help if you
have an idea...
many thanx,
Danny
I'm working on a mfc-mdi application, in which I nearly all CChildFrame(not view!)-elements replaced by ownerdrawn
objects (titlebar, titlebuttons, sysmenu, window borders and so on). I'm now trying to also replace the scrollbars.
Well, and that's my problem. I'm not able to add a control into the non-client area of the CMDIChildWnd. In my
tests I tried to add a simple CButton to the bottom of the CMDIChildWnd. But all I got was a button in the
client-area of the window (which didn't work, of course).
In the OnNcCalcSize I calculate the size of the clientarea that way, that there is space at the right/lower
border to place my controls there. But I didn't get them into the nc-area... bad thing, please help if you
have an idea...
many thanx,
Danny