Click here to Skip to main content
15,913,132 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Stock Font Persist? Pin
E. del Ayre28-Mar-05 20:19
E. del Ayre28-Mar-05 20:19 
QuestionHow to find which mouse button is clicked on MS Word Document? Pin
ajalilqarshi17-Mar-05 4:09
ajalilqarshi17-Mar-05 4:09 
QuestionHow to Handle Menu event? Pin
ajalilqarshi17-Mar-05 4:04
ajalilqarshi17-Mar-05 4:04 
Generalbind2nd with mem_fun_ref Pin
babouin16-Mar-05 23:56
babouin16-Mar-05 23:56 
GeneralRe: bind2nd with mem_fun_ref Pin
Mike Dimmick17-Mar-05 2:17
Mike Dimmick17-Mar-05 2:17 
GeneralRe: bind2nd with mem_fun_ref Pin
Christof Schardt24-Mar-05 9:36
Christof Schardt24-Mar-05 9:36 
GeneralStock Font in ATL ActiveX Control using VS.NET Pin
greekgoddj16-Mar-05 23:27
greekgoddj16-Mar-05 23:27 
GeneralRe: Stock Font in ATL ActiveX Control using VS.NET Pin
greekgoddj17-Mar-05 2:17
greekgoddj17-Mar-05 2:17 
So it turnes out the only way to achive the above is to manualy create a new project where you state the stock properties from the vary begining, and then copy the code segments over to your existing project code.... tsk tsk tsk WTF | :WTF:

And now the latest problem for the past 2 hours has been that I have added the font stock property and a member variable
CComPtr<ifontdisp> m_pFont; which gets set at OnFontChanged().

Now in my OnDraw() function I would like to select this font and use it,
however I cannot simply do pdc.SelectObject(m_pFont) as m_pFont is not a
CFont. In the MFC only version of ActiveX I could call SelectStockFont(pDC);
but this is no longer suitable in ATL ActiveX.

I cannot figure out how to convert a font refered to by IFontDisp to a CFont
so that I can select it for the drawing code. Could somebody point me in the
right direction please?

Thanks
GeneralRe: Stock Font in ATL ActiveX Control using VS.NET Pin
Jörgen Sigvardsson20-Mar-05 8:58
Jörgen Sigvardsson20-Mar-05 8:58 
GeneralRe: Stock Font in ATL ActiveX Control using VS.NET Pin
greekgoddj20-Mar-05 21:42
greekgoddj20-Mar-05 21:42 
QuestionWhy IPersistStreamInitImpl::Load Method is not called? Pin
ajalilqarshi16-Mar-05 21:24
ajalilqarshi16-Mar-05 21:24 
GeneralMultiple instances of Active X control don't paint correctly Pin
rdeekonda14-Mar-05 1:10
rdeekonda14-Mar-05 1:10 
GeneralActiveX in Windows Service Pin
Ravi Jadhav12-Mar-05 1:06
Ravi Jadhav12-Mar-05 1:06 
GeneralRe: ActiveX in Windows Service Pin
ThatsAlok14-Mar-05 19:19
ThatsAlok14-Mar-05 19:19 
GeneralProblem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi11-Mar-05 0:52
ajalilqarshi11-Mar-05 0:52 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
Anonymous11-Mar-05 11:53
Anonymous11-Mar-05 11:53 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi14-Mar-05 0:02
ajalilqarshi14-Mar-05 0:02 
GeneralString constanst to integer mapping Pin
ComplexLifeForm10-Mar-05 11:28
ComplexLifeForm10-Mar-05 11:28 
GeneralRe: String constanst to integer mapping Pin
Michael Dunn10-Mar-05 12:00
sitebuilderMichael Dunn10-Mar-05 12:00 
GeneralRe: String constanst to integer mapping Pin
Joaquín M López Muñoz10-Mar-05 12:14
Joaquín M López Muñoz10-Mar-05 12:14 
GeneralRe: String constanst to integer mapping Pin
Michael Dunn10-Mar-05 13:16
sitebuilderMichael Dunn10-Mar-05 13:16 
GeneralRe: String constanst to integer mapping Pin
Joaquín M López Muñoz10-Mar-05 12:06
Joaquín M López Muñoz10-Mar-05 12:06 
GeneralRe: String constanst to integer mapping Pin
Christian Graus10-Mar-05 12:12
protectorChristian Graus10-Mar-05 12:12 
GeneralRe: String constanst to integer mapping Pin
Jörgen Sigvardsson14-Mar-05 12:35
Jörgen Sigvardsson14-Mar-05 12:35 
GeneralRe: String constanst to integer mapping Pin
Christian Graus14-Mar-05 13:01
protectorChristian Graus14-Mar-05 13:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.