Thread: wndclass.style

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    wndclass.style

    OKay probably a simple question for most of you guys here. When you are defining a window the line

    Code:
    wndclass.style = bla;
    this line basically tells the window when it needs to be redrawn, is the correct?
    Oi Oi Oi!!!!

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb Not really...

    Not quite. You can use that for many values. One of them(CS_NOCLOSE), disables the "X" button, so it can't be closed. There's a lot more, but I don't know them all. Look for window class styles on MSDN.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Basically, Microsoft decided to use a long used technique to store several instructions in a single number. This saves memory and allows a more manageable parameter passing method rather than using, say, strings to do the work. Check out bit shifting/packing techniques on the web...
    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