Article View: alt.comp.os.windows-11
Article #365Re: Choose close windopw or not
From: knuttle
Date: Mon, 12 Oct 2026 21:52
Date: Mon, 12 Oct 2026 21:52
70 lines
4639 bytes
4639 bytes
On 10/12/2026 4:07 PM, Paul wrote: > 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 For a similar purpose, I use the standard Windows Notepad. It warns you of when you are closing Windows with out saving the note. A frequent use of Cntrl S, saves the note. The notepad can be placed on the Desktop, or a shortcut to the specific notepad in a different location also works. If you want the Icon can be placed on the tool bar. I have all of my frequently used program pinned to the taskbar.
Technical Details
Message-ID:
<11ajkrm$13d3$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> <11ajelg$3up38$1@dont-email.me>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: knuttle <keith_nuttle@yahoo.com> Newsgroups: alt.comp.os.windows-11 Subject: Re: Choose close windopw or not Date: Mon, 12 Oct 2026 17:52:51 -0400 Organization: A noiseless patient Spider Lines: 70 Message-ID: <11ajkrm$13d3$1@dont-email.me> References: <os9pclh016ltja4m0pk6q1jke40iba2ki5@4ax.com> <11ajelg$3up38$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 12 Oct 2026 21:52:56 +0000 (UTC) Injection-Info: dont-email.me; logging-data="36259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VtVidyEK3DN4qf+OkQVNO"; posting-host="bd4fd63e7cde766161f78dfa2b023532" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:msMT2nCFLK3Okp3bPH7W+kpLnPY= sha256:tunZAksYV0/C9CNQEnG2YwVqcfptbjiEEPfVYvle00M= sha1:fGo8b/RXdpuwdarSOtk4PM06TbU= sha256:eR9mJ9Arg2OVrOfcxzh8Nulew7+8a34Lwiedfp0cb2E= In-Reply-To: <11ajelg$3up38$1@dont-email.me> Content-Language: en-US