Thread: DRAWITEMSTRUCT confusion.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    DRAWITEMSTRUCT confusion.

    I am trying to get different fonts into a combobox. I have a pointer to the DRAWITEMSTRUCT, but I'm not sure what to do with it! Do I need to draw the text to an HDC, and blit it via the pointer's HDC? But then how will the user select the text normally? I'm just not sure how to go about this - even though I've read a lot of documentation about it, very unsure...any help appreciated.

    [edit]

    Ok. I have all that sorted out now. Now my problem is that I want to signal to Windows that the user is changing fonts so that I can update the measure of each item. I tried sending a CB_SETITEMDATA message, etc, but this obviously isn't the way. Any ideas?
    Last edited by Sebastiani; 12-08-2002 at 10:58 PM.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer confusion
    By rits in forum C Programming
    Replies: 3
    Last Post: 03-12-2009, 08:00 AM
  2. Terrible confusion with time variables
    By LowlyIntern in forum C++ Programming
    Replies: 12
    Last Post: 08-01-2008, 07:23 AM
  3. C++ Classes: Use, Misuse...Confusion.
    By Snorpy_Py in forum C++ Programming
    Replies: 4
    Last Post: 10-23-2006, 01:46 AM
  4. for loop confusion
    By Enges in forum C++ Programming
    Replies: 6
    Last Post: 04-26-2006, 08:21 AM
  5. confusion with increment and decrement operators
    By cBegginer in forum C Programming
    Replies: 6
    Last Post: 03-19-2005, 03:45 PM