Drawing Problem in ATL 
Author Message
 Drawing Problem in ATL

Hello,

i have draw the text in Full Control in ATL:

HRESULT OnDraw(ATL_DRAWINFO& di){
RECT& rc = *(RECT*)di.prcBounds;
rc.top= 20;
rc.left= 100;
HDC hDC= di.hdcDraw;
::DrawText(hDC, "hello" , -1, &rc,  DT_SINGLELINE );
return S_OK;

Quote:
}

However, the text appears many times and distorbed in the
browser. Also, it will redraw in different position when I
overlapped it by another browser. Can someone tell me what
is the problem ? And, how to solve it ?

I have changed the size of activeX by using <PARAM
NAME="_cx" Values= ...><PARAM NAME="_cy" Values= ...>
Will this cause unexpected result ?

Regards,
Wai



Fri, 29 Apr 2005 21:16:06 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ATL combobox - - drawing problem

2. Help - Problems with Drawing an MFC ActiveX control inside on ATL compsoite control

3. Problems with Drawing an MFC ActiveX control inside on ATL compsoite control

4. Sample owner-draw radio button with ATL

5. ATL ActiveX composite Control and drawing

6. Need help with Owner Drawn Button Class in ATL composite Control

7. Owner drawn listbox in ATL

8. Owner Draw in ATL/WTL Window Controls

9. ATL Drawing

10. ATL drawing for ce

11. Problem with ATL Sink class for catching another ATL's events

12. Problem converting VC6 ATL component to a .NET 2003 VC ATL component

 

 
Powered by phpBB® Forum Software