Thread: Tradional Q on DialogBox

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    12

    Unhappy Tradional Q on DialogBox

    Hi,

    How should one change or use different fonts and styles and colors in a dialog-box(for labels I think!), in a MFC/Non-MFC dialog based application.

    Please note this question is from Meow!, my friend(He usues MS VS6, just like me), not from me.
    I told him:-
    (1)to read about WM_SETFONT & others... in the documentation...
    (2)Create and use fancy pictures(TEXT??!!) in place of label(static) texts...
    (3)Cannot be done...

    --- Well, he seems doesn't like any of them.

    So hoping if you guys can cool him down!

    On behalf of Meow!,
    Thanks.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    To create a individual dialog compleatly customised in font, colour, and shape...

    Search here for 'window skinning', double buffering and GDI (GDI+).

    It is easily possible, but is in the medium to advanced area of MFC / WIN32.

    Simple changes are easily possible....
    ie change an edits font by creating a new font, selecting it into the edit and cleaning up when the dialog closes by releasing, then deleting the font.


    >>(2)Create and use fancy pictures(TEXT??!!) in place of label(static) texts...

    Like a button with a picture instead of text?

    run a search here for CBitmapButton as I posted code recently.
    Look at Picture control in MFC.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dialogbox as subwindow
    By kevin_cat in forum Windows Programming
    Replies: 5
    Last Post: 07-12-2005, 07:02 AM
  2. Adding a Menu to a Dialogbox?
    By TCM in forum Windows Programming
    Replies: 2
    Last Post: 08-24-2004, 02:12 PM
  3. DialogBox and BITMAPS
    By ventolin in forum Windows Programming
    Replies: 3
    Last Post: 07-27-2004, 01:58 PM
  4. Proper way to end a dialogbox.
    By spoon_ in forum Windows Programming
    Replies: 2
    Last Post: 01-06-2003, 05:47 PM
  5. Putting a DialogBox into a DLL?
    By xds4lx in forum Windows Programming
    Replies: 1
    Last Post: 11-17-2002, 12:59 AM