how to add MFC CStatic to a ATL project?
-
hiho@ll i try to do something like a newsticker on a browser helper object the problem is that the helper object is made using ATL and i want to use CStatic (because there are some classes, which scroll text using a CStatic) my problem is that CStatic is a MFC class and i need it for my ATL browser object!? are there alternatives or other controls i could use for my problem? btw, is it possible to convert my BHO to a MFC BHO? or is MFC BHO not supported by IE? if it's possible, how can i do it (easily, without troubles?) I'm using Visual Studio .NET thx
-
hiho@ll i try to do something like a newsticker on a browser helper object the problem is that the helper object is made using ATL and i want to use CStatic (because there are some classes, which scroll text using a CStatic) my problem is that CStatic is a MFC class and i need it for my ATL browser object!? are there alternatives or other controls i could use for my problem? btw, is it possible to convert my BHO to a MFC BHO? or is MFC BHO not supported by IE? if it's possible, how can i do it (easily, without troubles?) I'm using Visual Studio .NET thx
ThinkingPrometheus wrote: my problem is that CStatic is a MFC class and i need it for my ATL browser object!? You can not directly add a mfc class to ATL. John
-
ThinkingPrometheus wrote: my problem is that CStatic is a MFC class and i need it for my ATL browser object!? You can not directly add a mfc class to ATL. John
and how can i make just a simple static text control in ATL?
-
and how can i make just a simple static text control in ATL?
You already have one. A static control (
STATIC
) is a regular Windows control, just likeBUTTON
,EDIT
, etc. You are still going to have to do some drawing yourself; the regular static control works by characters, and does not "smooth scroll" like a news/stock ticker. Peace! -=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
You already have one. A static control (
STATIC
) is a regular Windows control, just likeBUTTON
,EDIT
, etc. You are still going to have to do some drawing yourself; the regular static control works by characters, and does not "smooth scroll" like a news/stock ticker. Peace! -=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)How do i use the STATIC in my ATL projects i am new to ATL. Vikas Amin Embin Technology Bombay vikas.amin@embin.com
-
How do i use the STATIC in my ATL projects i am new to ATL. Vikas Amin Embin Technology Bombay vikas.amin@embin.com
Using CreateWindow, you just specify the string
_T( "STATIC" )
as the window class name, IIRC. I think that ATL's window classes have a wrapper class for the static control. Peace! -=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)