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

To the people of the makers of RadForm

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
george
Top achievements
Rank 1
george asked on 19 Mar 2009, 12:16 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.

public

static IntPtr GetDC(Message msg)

 

{

 

 

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);

 

}


1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 20 Mar 2009, 06:08 PM
Hi george,

Please refer to your other forum post.

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
george
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or