Article View: alt.comp.os.windows-11
Article #364Re: Choose close windopw or not
From: Paul
Date: Mon, 12 Oct 2026 20:07
Date: Mon, 12 Oct 2026 20:07
61 lines
4029 bytes
4029 bytes
On Mon, 10/12/2026 5:31 AM, scbs29 wrote:
> Hello all
> Is there any way af marking a window so that I have to confirm closing it.
> I have a post-it notes type window permanently open on my desktop with details of
> hospital appointments etc. Unfortunately I keep accidentally closing the window,
> when all the information disappears. Is there any way that I could set up the window so I am
> asked for confirmation when I press the close button ?
>
I was going to add to the previous post, you could get the
LLM-AI to write a PostIt note for you. And that it would be
"easy". Well, it wasn't easy. The LLM-AI wrote the program
in about two seconds. But it would not link under MinGW32.
GUI programs use WinMain() while console programs use Main(),
and MinGW32 doesn't seem to support WinMain().
I had to compile it under visual studio. This uses the J: partition
for storage. For these kinds of projects, I don't bother with the IDE.
cl appointment.c user32.lib gdi32.lib /FoJ:\TEMP\ /FeJ:\appointment.exe
One problem with the program, is it was about "half feature complete".
The TaskBar aspect is not working properly. I cannot Minimize and
Maximize the program from the Task Bar. If I select the top entry
in the TaskBar entry, it makes *another* instance of the program,
instead of iconifying the current instance. This is hardly good
news, as the program has no "X" in the corner now, and it's like
dealing with the Sorcerers Apprentice :-)
Purely for the comedy value, here is a PostIt Note written by an LLM-AI.
Just to demonstrate what no decorations looks like. It still has
some sort of Title Bar, as you can grab it by the Title Bar and move it.
It's just the Title Bar has no line, delimiting the title bar extent.
[Picture]
https://imgur.com/a/anM5Ho4
https://postimg.cc/jw1bQ7cS
https://i.postimg.cc/L598SkZL/appointment-exe-demo.gif
Things it does do:
1) No decorations on upper right.
2) Is resizable, via at least the lower right corner.
3) Responds to the View Desktop icon to the extreme right of the TaskBar.
4) If you left-click in the middle of the pane, it re-reads "appointments.txt"
from the current profile Downloads folder. You edit your "appointments.txt"
with Notepad, and then they appear over in the PostIT when you click to update.
Things it does not do:
5) TaskBar cannot minimize it or maximize it. Don't know why.
6) If you click the "appointment.exe" entry in the top of its
TaskBar entry, it causes a *second* instance of the program to appear :-)
Which does not damage anything, but is "unsightly". You know,
like an amateur programmer wrote it.
Some offsets and font sizes likely need to be adjusted.
Paul
Technical Details
Message-ID:
<11ajelg$3up38$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<os9pclh016ltja4m0pk6q1jke40iba2ki5@4ax.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Paul <nospam@needed.invalid> Newsgroups: alt.comp.os.windows-11 Subject: Re: Choose close windopw or not Date: Mon, 12 Oct 2026 16:07:10 -0400 Organization: A noiseless patient Spider Lines: 61 Message-ID: <11ajelg$3up38$1@dont-email.me> References: <os9pclh016ltja4m0pk6q1jke40iba2ki5@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 12 Oct 2026 20:07:16 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4154472"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uNH/5Sp7S/boKPATQhpP4Z7hKg+uA9ds="; posting-host="6b2d4bed976d8a2d881d6d17401dc345" User-Agent: THIS SPACE FOR RENT Cancel-Lock: sha1:pr8nny2XkVq3e0x70HaVoxtaBQs= sha256:qwP/mpQNlK/h/dN/lyCtSYX8TVZ8A90enXcwCq4efZ8= sha1:kwTdTxCJ0f3mNoFYf43XjTOnMbQ= sha256:fAP+RLWD15mNg7i4/rnzfSLgzwx2tKNdXId6MVT2TRc= In-Reply-To: <os9pclh016ltja4m0pk6q1jke40iba2ki5@4ax.com> Content-Language: en-US