Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

DWM, Win7, How about MDI ? again ...

$
0
0

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 :

http://social.msdn.microsoft.com/Forums/vstudio/en-US/4b543caa-db42-4054-9397-e32cd7c798d7/dwm-win7-how-about-mdi-?forum=vcgeneral

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


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>