Results 1 to 5 of 5

Thread: Fonts

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115

    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??
    ICQ :137108715
    MSN Messenger : [email protected]

  2. #2
    Junior Member
    Join Date
    Mar 2002
    Location
    Miami
    Posts
    22

    Wink

    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));

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115
    Yes I'm making an activeX control but I Don't get you? IDispatch? cominterfaces?

    VIP
    ICQ :137108715
    MSN Messenger : [email protected]

  5. #5
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width