|
-
Apr 1st, 2002, 12:39 PM
#1
Thread Starter
Lively Member
Fonts
I'm creating a control and I want to place text in it.
With the classwizzard I created a property named Font, which returns a LPFONTDISP value.
how to diplay the text with the chosen font??
please help me??
-
Apr 2nd, 2002, 01:36 AM
#2
Junior Member
Don't know if this would help you but this is what I do to set a created font on a control.
SendMessage(hwndEdit, WM_SETFONT, (WPARAM)FontYouCreated, MAKELPARAM(FALSE, 0));
-
Apr 2nd, 2002, 01:54 PM
#3
It seems to be an activeX control. It should have a property named text (or something like that). You can use the automation IDispatch or other COM interfaces to set the text.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 2nd, 2002, 02:00 PM
#4
Thread Starter
Lively Member
Yes I'm making an activeX control but I Don't get you? IDispatch? cominterfaces?
VIP
-
Apr 2nd, 2002, 02:36 PM
#5
If you make a COM server (ActiveX control is one) it has to support some basic COM interfaces - IDispatch is one of the ones that has to be there or COM cannot work at all.
If you don't understand any of this, you need to read something on COM before you go any further - ie., make something that crashes the system, or will not behave reliably. In other words, don't make yourself a pile of problems.
If you're using VB - try the book 'VB COM'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|