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??
Printable View
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??
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));
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.
Yes I'm making an activeX control but I Don't get you? IDispatch? cominterfaces?
VIP
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'