Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Any programming language is at its best before it is implemented and used.


devel / comp.os.ms-windows.programmer.win32 / WS_BORDER interference on SC_DRAGMOVE - how to fix ?

SubjectAuthor
* WS_BORDER interference on SC_DRAGMOVE - how to fix ?R.Wieser
`* WS_BORDER interference on SC_DRAGMOVE - how to fix ?Paul N
 `- WS_BORDER interference on SC_DRAGMOVE - how to fix ?R.Wieser

1
WS_BORDER interference on SC_DRAGMOVE - how to fix ?

<tp9090$57i$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1172&group=comp.os.ms-windows.programmer.win32#1172

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: WS_BORDER interference on SC_DRAGMOVE - how to fix ?
Date: Fri, 6 Jan 2023 12:21:55 +0100
Organization: Aioe.org NNTP Server
Lines: 17
Message-ID: <tp9090$57i$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="5362"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
 by: R.Wieser - Fri, 6 Jan 2023 11:21 UTC

Hello all,

I'm dragging and/or resizing individual controls by sending them a
SC_DRAGMOVE family message. That works.

The problem is that when I give the control a WS_BORDER attribute (causing a
black, single-pixel wide border to be drawn) than a number of the basic
controls (static, edit, others) get a forced minimum size (which does seem
to match the minimum width and height of a dialog).

Question : Can, and if so how do I tell the move/size executing code *not*
to apply those minimum size contraints ?

Regards,
Rudy Wieser

Re: WS_BORDER interference on SC_DRAGMOVE - how to fix ?

<ab3b3601-3f96-425a-99a4-a0b2d043e61dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1173&group=comp.os.ms-windows.programmer.win32#1173

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ac8:47d0:0:b0:3a7:2963:f4e2 with SMTP id d16-20020ac847d0000000b003a72963f4e2mr2063049qtr.375.1673022285078;
Fri, 06 Jan 2023 08:24:45 -0800 (PST)
X-Received: by 2002:a05:620a:22f7:b0:6fe:e9e8:a812 with SMTP id
p23-20020a05620a22f700b006fee9e8a812mr1649238qki.32.1673022284877; Fri, 06
Jan 2023 08:24:44 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 6 Jan 2023 08:24:44 -0800 (PST)
In-Reply-To: <tp9090$57i$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=89.240.148.148; posting-account=0B-afgoAAABP6274zLUJKa8ZpdIdhsYx
NNTP-Posting-Host: 89.240.148.148
References: <tp9090$57i$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab3b3601-3f96-425a-99a4-a0b2d043e61dn@googlegroups.com>
Subject: Re: WS_BORDER interference on SC_DRAGMOVE - how to fix ?
From: gw7rib@aol.com (Paul N)
Injection-Date: Fri, 06 Jan 2023 16:24:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2156
 by: Paul N - Fri, 6 Jan 2023 16:24 UTC

On Friday, January 6, 2023 at 11:22:12 AM UTC, R.Wieser wrote:
> Hello all,
>
> I'm dragging and/or resizing individual controls by sending them a
> SC_DRAGMOVE family message. That works.
>
> The problem is that when I give the control a WS_BORDER attribute (causing a
> black, single-pixel wide border to be drawn) than a number of the basic
> controls (static, edit, others) get a forced minimum size (which does seem
> to match the minimum width and height of a dialog).
>
> Question : Can, and if so how do I tell the move/size executing code *not*
> to apply those minimum size contraints ?

Can you intercept the WM_GETMINMAXINFO message? As far as I can tell, Windows sends this to a window as part of its check that a proposed new window size is actually OK, you just need to grab this message and "reply" saying that the current size of the window is indeed OK so there's no need for Windows to apply an unwanted default.

Re: WS_BORDER interference on SC_DRAGMOVE - how to fix ?

<tp9kq3$sg9$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1174&group=comp.os.ms-windows.programmer.win32#1174

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: WS_BORDER interference on SC_DRAGMOVE - how to fix ?
Date: Fri, 6 Jan 2023 18:12:09 +0100
Organization: Aioe.org NNTP Server
Lines: 17
Message-ID: <tp9kq3$sg9$1@gioia.aioe.org>
References: <tp9090$57i$1@gioia.aioe.org> <ab3b3601-3f96-425a-99a4-a0b2d043e61dn@googlegroups.com>
Injection-Info: gioia.aioe.org; logging-data="29193"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Fri, 6 Jan 2023 17:12 UTC

"Paul N" <gw7rib@aol.com> wrote in message
news:ab3b3601-3f96-425a-99a4-a0b2d043e61dn@googlegroups.com...

> Can you intercept the WM_GETMINMAXINFO message?

Yep. And you hit the nail on the head. :-) Just setting the
mintrackposition_x and -y members to someting small does the trick.

Its a bit stupid though, I have put the handling of that message into my
"framework" program for a new dialog, but simply didn't think about it. :-|

Thanks.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor