If the parameter is FALSE, the background remains unchanged. Invalidated areas accumulate in the update region until the next WM_PAINT message is processed or until the region is validated by using the Validate Rect or Validate Rgn function.
The system sends a WM_PAINT message to a window whenever its update region is not empty and there are no other messages in the application queue for that window.
Motorists are risking compensation claims by, for example, carrying a pet in the front of a car, eating while driving or parking a friend’s vehicle – but the insurance industry could be doing more to help, says firm Millions of drivers are flouting insurance rules, potentially risking losing their cover in the event of an accident, according to new research.
A survey of 1,243 UK motorists found that 70 per cent of drivers admitted to flouting common policy rules, which could leave them liable for compensation claims if an insurer voids their contract.
Extrapolating the data based on the number of households with a car in the UK means that as many as 15 million motorists could be invalidating their policies.
According to the research by temporary car insurer Cuvva, 43 per cent of drivers admitted to eating while driving, 18 per cent had carried a pet in the front seat, and about one in six had driven in flip-flops or barefoot.
Two in five drivers (43 per cent) eat while behind the wheel, while one in five (18 per cent) have had a pet in the front seat.The Invalidate Rgn function invalidates the client area within the specified region by adding it to the current update region of a window.The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_PAINT message occurs.Freddy Macnamara, chief executive and founder of Cuvva, said: “The insurance industry needs to start educating drivers so that more people can avoid making common mistakes.Some of these slip-ups, such as offering to park a car for a friend, seem fairly innocent but can still be met with crippling fines and licence penalty points.
The specified region must have been created by using one of the region functions.