/*----------------------------------------------------------------------------*/
/* Cfaderwnd header */
/*----------------------------------------------------------------------------*/
//
// File: faderwnd. h
// Author: Phil J. Pearson
// Created: 20 June 2000
// Last mod: 20 June 2000
//
/*----------------------------------------------------------------------------
/*
/* Copy right (c) 2000 by real world Software
/* All Rights Reserved.
/*
/*----------------------------------------------------------------------------*/
# Pragma once
# Ifndef ws_ex_layered
//////////////////////////////////////// /////////////////////////////////////
// Definitions copied from winuser. h
// They're normally available if you do:
// # DEFINE _ win32_winnt 0x0500
// But we don't need all that stuff for this class
//
# Define ws_ex_layered 0x00080000
# Define ulw_alpha 0x00000002
# Endif // ndef ws_ex_layered
Typedef bool (winapi * lpfnupdatelayeredwindow) (hwnd, HDC hdcdst, point * pptdst, size * psize, HDC hdcsrc,
Point * pptsrc, colorref crkey, blendfunction * pblend, DWORD dwflags );
//////////////////////////////////////// /////////////////////////////////////
// Cfaderwnd window
Class cfaderwnd: Public cwnd
{
// Construction
Public:
Cfaderwnd (cwnd * pwndtofade, uint nfadetime = 2000, byte byalpha = 255 );
// Attributes
Public:
// Operations
Public:
// Overrides
// Classwizard generated virtual function overrides
// {Afx_virtual (cfaderwnd)
Protected:
Virtual void postncdestroy () {Delete this ;}
//} Afx_virtual
// Implementation
PRIVATE:
Virtual ~ Cfaderwnd ();
// Generated message map Functions
Protected:
// {Afx_msg (cfaderwnd)
Afx_msg void ontimer (uint nidevent );
Afx_msg void onsetfocus (cwnd * poldwnd );
//} Afx_msg
Declare_message_map ()
Lpfnupdatelayeredwindow m_pupdatelayeredwindow;
Blendfunction m_blend;
Cwnd * m_pwndtofade;
};
//////////////////////////////////////// /////////////////////////////////////
// {Afx_insert_location }}
// Microsoft Visual C ++ will insert additional declarations immediately before the previous line.