transparent windows for Windows

Hey there!

So…there is this post about creating transparent windows for OSX:

and there is this snippet:

    HWND m_hWnd = WindowFromDC(wglGetCurrentDC());  
    LONG style = ::GetWindowLong(m_hWnd, GWL_STYLE);  
    style &= ~WS_DLGFRAME;  
    style &= ~WS_CAPTION;  
    style &= ~WS_BORDER;  
    style &= WS_POPUP;  
    LONG exstyle = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);  
    exstyle &= ~WS_EX_DLGMODALFRAME;  
    ::SetWindowLong(m_hWnd, GWL_STYLE, style);  
    ::SetWindowLong(m_hWnd, GWL_EXSTYLE, exstyle);  
    SetWindowPos(m_hWnd, HWND_TOPMOST, 0,0,0,0,   SWP_NOSIZE|SWP_NOMOVE);  

(from this post:

for removing the window chrome (works fine), but how do I make the background transparent? Right now I am getting whatever I set the background color to.

From looking through the OSX transparent window stuff it looks like it is something to do with glClear(), but it looks like there is some Cocoa-specific stuff in there so I’m guessing I would need something Windows API-ish to get it flowing smoothly. If someone could point me in the right direction I’d appreciate it.

UP for this topic… is there any news?

I really need a way to solve this kind of “impossible transparent background” issue in order to start sleeping again :stuck_out_tongue:

I can’t find anything useful querying “GLUT TRANSPARENT BACKGROUND” on Goog…