Please don't take this as defense of poor quality... but as long as SHALLOW people BUY based on how things look, the industry will
SELL to that. After all, the market must follow the money. It's a shame so many people are more worried about how their hair looks
than what kind of diseased crap that must put in it to make it look that way. I think the software industry is suffering mildly
from trying to cater to the shallow image-conscious knuckleheads.
Joseph M. Newcomer wrote:
Thanks for the pointer to Aero. I guess someone forgot to actually READ the documentation
when they implemented Aero! But isn't it cool that the caption bars are transparent? (It
doesn't matter if it works right, as long as it looks cool! The new Gold Standard For
Software Quality)
joe
On Tue, 11 Aug 2009 22:18:38 +0200, Giovanni Dicanio
<giovanniDOTdicanio@REMOVEMEgmail.com> wrote:
Harald ha scritto:
Turns out the window can't be moved simply by adding two lines in
OnInitDialog()
CMenu *pMenu = GetSystemMenu(FALSE);
pMenu->DeleteMenu(SC_MOVE,MF_BYCOMMAND);
With these two lines, LRESULT CYourDlg::OnNcHitTest(CPoint point)
is not even needed. Can't explain why it is not needed, but the window
can't be moved by just adding these two lines. Thanks!
I did some tests with a simple dialog app with MFC and Vista, and I
inferred the following results:
1. If you use Ali's method of removing SC_MOVE from system menu, the
dialog box is unmovable.
2. If you use the WM_NCHITTEST method, there are two sub-cases:
2.1 if Aero is enabled in Vista, the WM_NCHITTEST seems to not work;
2.2 if Aero is disabled, the WM_NCHITTEST method does work, but it is
still possible to move the dialog-box using the keyboard.
Giovanni
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm