可以在VC++中使用;非哥所作;哥整理并作说明;
1 弹出窗口类
CPopupTipWnd,封装了MFC CWnd类,创建窗口、显示窗口、隐藏窗口操作;
#include "stdafx.h"
#include "PwdSpy.h"
#include "PopupTipWnd.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define BORDER_X 5
#define BORDER_Y 5
//***********************************************
CPopupTipWnd::CPopupTipWnd()
{
m_pParentWnd = NULL;
}
//***********************************************
CPopupTipWnd::~CPopupTipWnd()
{
}
BEGIN_MESSAGE_MAP(CPopupTipWnd, CWnd)
//{
{AFX_MSG_MAP(CPopupTipWnd)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//*********************************************