Hello again,
First thing first : Excuse my English.
Second :) : I am a programmer from Romania.
Risking to bore some people I must start a new thread here because the old one "DWM, Win7, How about MDI ?" seems to be left out because of "Since this issue has been pending for such a long time,could you please reopen a new thread so that I can reforward it to make up for this scenario?" reason an MSFT CSG gave to me.
the old thread link is :
so back on problem :
Trying to put a menu in example http://msdn.microsoft.com/en-us/library/windows/desktop/bb688195(v=vs.85).aspx will result in "disappearing" of menu when changing TOPEXTENDWIDTH constant to a bigger value (let's say 72).
DWM will not position correct menu even for SDI Application, I think Microsoft came with that wonderful Ribbon just to hide this problem with classic menu on Extended Frame.
More, I am interested to make this work for a MDI application ....
I want to position MDI client in respect with coordinates at which I Extended Frame Into Client Area.
At this point:
1. I get drawing artifacts (pixels for old size/position of MDI Client drawn by DWM over the glass when I minimize/restore app main window).
2. Not to mention menu which I want to put on MDI Frame Application, it's not visible (accessible).
just a thought:
I think DWM should come with DwmDefFrameProc : if we have DefWindowProc for SDI and DefFrameProc for MDI maybe we should have a "DwmDefFrameProc" for MDI as we have DwmDefWindowProc for SDI.
Answers or suggestions for how to have a "Custom Window Frame Using DWM" for MDI application which also has a classic menu will be highly appreciated.
Thank you in advance.
Catalin