CreateFont and CreateWindowEx

This is a discussion on CreateFont and CreateWindowEx within the Windows Programming forums, part of the Platform Specific Boards category; I'm using CreateWindowEx to create a static control. Is there anyway that can be calculate the exact dimensions that should ...

  1. #1
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    305

    Red face CreateFont and CreateWindowEx

    I'm using CreateWindowEx to create a static control. Is there anyway that can be calculate the exact dimensions that should be use in the control so CreateFont displays the static's caption propertly?

    Thanks

    * Debian 6.0.1 on Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM.
    * lighttpd, php5, perl, eruby, python.
    * geany, XHTML & CSS & JavaScript, C, C++.
    * GTK+ C & perl-gtk2

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    GetTextExtentPoint

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21