Thread: DirectX and C#
View Single Post
Old 09-03-2007, 07:11 AM   #2 (permalink)
MalGanis
Forum Novice
 
MalGanis's Avatar
 
Join Date: Dec 2005
Location: Slovenia
Age: 23
Posts: 339
Send a message via MSN to MalGanis
Default

Figured part of the first issue. I had to invalidate PageTab after paint and set its style in ctor:

Code:
SetStyle( ControlStyles.AllPaintingInWmPaint, true );
If true, the control ignores the window message WM_ERASEBKGND to reduce flicker. Now when i open a new tab it shows correctly, but if i change to another tab it still goes blank.
__________________
A lawyer with a briefcase can steal more than a thousand men with guns.


Do NOT PM me asking if I will script for your shard or send you files or anything else along those lines.

Last edited by MalGanis; 09-03-2007 at 07:14 AM.
MalGanis is offline   Reply With Quote