What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [API question?] Forcing a repaint

[API question?] Forcing a repaint
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [API question?] Forcing a repaint
quote:
Originally posted by Matty
If I am not mistaken its recommended to use window messages over other apis or is it vice versa I forget.
Depends on what you wanna do.

----------------------------------


If the window’s update region is not empty, UpdateWindow sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent. This is the preferred method since it does internal checks on its own etc, all other methods are derived from this one in one way or the other...


The RedrawWindow function updates the specified rectangle or region in a window's client area. If the intention is to redraw the entire window, you better use UpdateWindow...


The WM_PAINT message is sent when the system or another application makes a request to paint a portion of an application's window. The message is sent when the UpdateWindow or RedrawWindow function is called...


InvalidateRect adds a rectangle to the specified window’s update region. The update region represents the portion of the window’s client area that must be redrawn. The invalidated areas accumulate in the update region until the region is processed when the next WM_PAINT message occurs or until the region is validated by using the ValidateRect function. InvalidateRect on its own does not repaint anything...

This post was edited on 01-17-2007 at 06:38 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-17-2007 06:33 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[API question?] Forcing a repaint - by Chestah on 01-16-2007 at 01:45 AM
RE: [API question?] Forcing a repaint - by matty on 01-16-2007 at 01:52 AM
RE: [API question?] Forcing a repaint - by deAd on 01-16-2007 at 01:53 AM
RE: RE: [API question?] Forcing a repaint - by CookieRevised on 01-17-2007 at 06:33 AM
RE: [API question?] Forcing a repaint - by Chestah on 01-16-2007 at 01:58 AM
RE: [API question?] Forcing a repaint - by matty on 01-16-2007 at 02:11 AM
RE: [API question?] Forcing a repaint - by Chestah on 01-16-2007 at 04:15 AM
RE: [API question?] Forcing a repaint - by Ash_ on 01-16-2007 at 07:51 AM
RE: [API question?] Forcing a repaint - by Chestah on 01-16-2007 at 08:10 AM
RE: [API question?] Forcing a repaint - by felipEx on 01-17-2007 at 05:36 AM
RE: [API question?] Forcing a repaint - by felipEx on 01-17-2007 at 03:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On