🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2512

Forced Update (WM_PAINT) of Window

#2512
From: James L. Waletzky
Date: Wed, 06 Jan 1993 16:14
15 lines
1093 bytes
I'm using Borland C++ 3.1 to create my app and here's the problem:

I have this main window which contains about 20 children, with each
child being a box containing a particular color. Up pops a dialog
asking the user to respond to some questions and once this dialog
disappears, I would like to update all of the children with their
new colors (ie. force a WM_PAINT message).

I thought all I had to do was Invalidate the parent window and call
UpdateWindow, but this doesn't seem to work. I then tried Invalidating
all of the children and calling UpdateWindow, but this didn't work
either. Any ideas?

James.
umwaletz@ccu.umanitoba.ca
Technical Details
Message-ID: <C0Fx4F.6Cs@ccu.umanitoba.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umwaletz

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umwaletz
From: umwaletz@ccu.umanitoba.ca (James L. Waletzky)
Subject: Forced Update (WM_PAINT) of Window
Message-ID: <C0Fx4F.6Cs@ccu.umanitoba.ca>
Sender: news@ccu.umanitoba.ca
Nntp-Posting-Host: vader.cc.umanitoba.ca
Organization: University of Manitoba, Winnipeg, Canada
Date: Wed, 6 Jan 1993 16:14:36 GMT
Lines: 16