[Bug 23303] Reducing window size fails to generate WM_PAINT when complete

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jun 22 08:24:50 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=23303





--- Comment #5 from Jonathan Andrews <jon at jonshouse.co.uk>  2010-06-22 08:24:49 ---
Sorry for the confusion, im not explaining this well. I'm trying to program 3
window systems at once I get my names confused.

What im trying to do is get a window that reformats its contents dependant on
the window size.

After being a bit more careful with testing my code I've found it was not doing
quite what I thought. 

What I get from windowsXP is a set of messages that look like this :

width=320  height=180
Got msg.message 00A0
Got msg.message 00A1
width=532  height=375
^^^^ Window got larger, mouse button released.
Got msg.message 00A0
Got msg.message 02A2
Got msg.message 00A0
Got msg.message 00A1
width=422  height=284
^^^^ Window got smaller, mouse button released.
Got msg.message 00A0

In my code im using 0xA1 (WM_NCLBUTTONDOWN) to cause the window contents to
reformat (as does WM_PAINT and a few other messages).

On XP when a window size is increased OR decreased I get the 0xA1 message.  On
wine I only get the message when the window size in increased.

Wine generates quite a few WM_PAINT messages, but again does not generate one
when a window is is reduced in size (I would expect it to stick one in for
luck) 

Upshot, my code works on "real windows" but not wine as I get no suitable
message to tell the program to redraw after a window is reduced in size.

Another way of looking at it is "If I reduce a window in size and let go of the
mouse I get zero messages from wine, I get some messages from XP."

Did you manage to view the videos?, mplayer will play them if nothing else
does:
windowsxp.mpg: RIFF (little-endian) data, AVI, 636 x 356, video: FFMpeg MPEG-4,
audio: MPEG-1 Layer 1 or 2 (stereo, 44100 Hz)

Many thanks,
Jon

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list