🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3739

Re: How do you take away all minimize abilities?

#3739
From: JF Jolin
Date: Mon, 01 May 2006 21:27
24 lines
1822 bytes
28 Apr 2006 09:33:21 -0700, Benjamin Pratt" at mail dot com <bdpratt> wrote:

> The window's message handler is passed a WM_SYSCOMMAND message when actions
> on the system menu are chosen. You can intercept the SC_MINIMIZE message
> here. Don't let it get passed to the DefWindowProc.

True.

Greying minimize's button and menu gives a better understanding of the action taken.

LONG lStyle = GetWindowLong(hWnd, GWL_STYLE);
lStyle &= ~WS_MINIMIZEBOX;
SetWindowLong(hWnd, GWL_STYLE, lStyle);
SetWindowPos( hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_FRAMECHANGED | SWP_NOZORDER );


> However savvy users will know that they can press [WindowsKey]-D to minimize
> all windows and show the desktop, regardless of whether the window is allow
> to be minimized or not. I don't know a way around this problem.

I don't know either.

-- 
JF Jolin
Technical Details
Message-ID: <ops8v5wqfiz6rw7b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44512afc$1@newsgroups.borland.com> <44512e00$1@newsgroups.borland.com> <445243ed$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,299e15a2ced7f7a1
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How do you take away all minimize abilities?
References: <44512afc$1@newsgroups.borland.com> <44512e00$1@newsgroups.borland.com> <445243ed$1@newsgroups.borland.com>
Message-ID: <ops8v5wqfiz6rw7b@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: JF Jolin <jfj@nospam.com>
MIME-Version: 1.0
Date: Mon, 01 May 2006 17:27:52 -0400
User-Agent: Opera7.11/Win32 M2 build 2887
NNTP-Posting-Host: 66.158.140.223
X-Trace: newsgroups.borland.com 1146518904 66.158.140.223 (1 May 2006 14:28:24 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail