This is a migrated thread and some comments may be shown as answers.

To the Telerik team

0 Answers 56 Views
Form
This is a migrated thread and some comments may be shown as answers.
george
Top achievements
Rank 1
george asked on 19 Mar 2009, 01:08 PM

I have been noticing that on your RadForm there is a problem with how you get your GetDCEx. To keep it short I'll give you a short piece of code that can help you.

if

(msg.Msg != (int)WindowMessages.WM_NCPAINT)

 

{

 

return GetWindowDC(msg.HWnd);

 

}

 

int flags = (int)(DCX.DCX_CACHE | DCX.DCX_CLIPSIBLINGS

 

|

DCX.DCX_WINDOW );

 

 

 

 

IntPtr zero = IntPtr.Zero;

 

 

if (msg.WParam.ToInt32() != 1)

 

{

flags |= (

int)DCX.DCX_INTERSECTRGN;

 

 

 

zero = msg.WParam;

 

 

 

 

}

 

return GetDCEx(msg.HWnd, zero, flags);

 

 

No answers yet. Maybe you can help?

Tags
Form
Asked by
george
Top achievements
Rank 1
Share this question
or