Looking for the Holy Grail...

This is a discussion on Looking for the Holy Grail... within the Windows Programming forums, part of the Platform Specific Boards category; ...of owner-drawn styles that is. Here is my question. I have yet to locate all of these styles for all ...

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

    Looking for the Holy Grail...

    ...of owner-drawn styles that is.

    Here is my question. I have yet to locate all of these styles for all of the different controls. The thought came to me that perhaps there is an undocumented "universal" owner-drawn style, a secret integer that will cause any window to suddenly spurt forth WM_DRAWITEM messages...could it be so, or is my imagination getting the best of me?
    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;
    }

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Not AFAIK.

    Look in winuser.h for the defines.
    "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

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Yep, thanks. Thing is, both commctl.h and winuser.h together makes an incomplete list. Only 7 or so are listed...wierd. Thanks for the info, tho, mate.
    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. Holy moly!!!
    By caddy39 in forum C Programming
    Replies: 5
    Last Post: 07-22-2007, 02:21 PM
  2. holy keyboard batman!
    By Glirk Dient in forum Tech Board
    Replies: 4
    Last Post: 07-17-2005, 05:22 PM
  3. Holy crap
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 41
    Last Post: 12-08-2004, 10:14 AM
  4. holy error messages batman
    By drdodirty2002 in forum C++ Programming
    Replies: 5
    Last Post: 09-14-2004, 04:07 AM
  5. the holy grail for newbie programmers...
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 10-08-2003, 07:19 PM

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