⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util_pop.cpp

📁 比较详尽的介绍了短信的发送与接收的实现模块与程序
💻 CPP
字号:

// util_pop.cpp

#include "stdafx.h"
#include "util_pop.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif



GPopupWindow::GPopupWindow()
{
}


GPopupWindow::~GPopupWindow()
{

}


void GPopupWindow::PostNcDestroy()
{
   delete this;
}


BOOL GPopupWindow::OnLButtonDownCheck(UINT nFlags, CPoint pt)
{
   CRect cr;
   GetClientRect(cr);

   if(!cr.PtInRect(pt))
      return TRUE;

   return FALSE;
}


BEGIN_MESSAGE_MAP(GPopupWindow, CWnd)
   ON_WM_CREATE()
   ON_WM_DESTROY()
   ON_WM_CAPTURECHANGED()
   ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()



void GPopupWindow::OnCaptureChanged(CWnd *pWnd)
{
   PostMessage(WM_CLOSE);
}


int GPopupWindow::OnCreate(LPCREATESTRUCT lpcs)
{
   int nCreate = CWnd::OnCreate(lpcs);
   
   SetCapture();
   return nCreate;
}




void GPopupWindow::OnLButtonDown(UINT nFlags, CPoint pt)
{
   if(OnLButtonDownCheck(nFlags, pt))
   {
      ::ReleaseCapture();
   }
}



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -