• 大小: 13.94MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-30
  • 语言: 其他
  • 标签: 即时通讯  IM  

资源简介

目前即时通讯软件实现了如下功能(这里只列举网络相关的功能,其他客户端已经实现的功能不统计在列,请自行发现): 注册 登录 查找好友、查找群 添加好友、添加群 好友列表、群列表、最近会话 单人聊天功能(包括发文字、表情、窗口抖动、离线文件) 群聊功能(包括发文字、表情) 修改密码 修改个人信息(自定义昵称、签名、个性头像等个人信息) 自动升级功能

资源截图

代码片段和文件信息

// CatchScreen.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “CatchScreen.h“
#include “CatchScreenDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CCatchScreenApp

BEGIN_MESSAGE_MAP(CCatchScreenApp CWinApp)
//{{AFX_MSG_MAP(CCatchScreenApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCatchScreenApp construction

CCatchScreenApp::CCatchScreenApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
m_hwndDlg=NULL;

m_nSucceedExitCode = 0;
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CCatchScreenApp object

CCatchScreenApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCatchScreenApp initialization

BOOL CCatchScreenApp::InitInstance()
{
if(__argc >= 2)
{
TCHAR* argv = __wargv[1];
m_nSucceedExitCode = _ttol(argv);
}

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

CCatchScreenDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}
//********************************************************************************
#define SHIFTED 0x8000 
//********************************************************************************

BOOL CCatchScreenApp::ProcessMessageFilter(int code LPMSG lpMsg) 
{
// TODO: Add your specialized code here and/or call the base class
if(m_hwndDlg!=NULL)
{   //判断消息,如果消息是从对话框发出的或者其子控件发出的,就进行处理
if((lpMsg->hwnd==m_hwndDlg) || ::IsChild(m_hwndDlglpMsg->hwnd))
{
//如果消息是WM_KEYDOWN
//用方向键调整位置
if(lpMsg->message==WM_KEYDOWN)
{
CRect rect(0000);
CCatchScreenDlg* pDlg=(CCatchScreenDlg*)AfxGetMainWnd();

rect=pDlg->m_rectTracker.m_rect;

if(pDlg->m_bFirstDraw)
{

//如果Shift键按下则方向键调整大小
BOOL isShifeDowm=FALSE;
int nVirtKey;
nVirtKey = GetKeyState(VK_SHIFT); 
if (nVirtKey & SHIFTED) 
isShifeDowm=TRUE;

switch(lpMsg->wParam)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-07 13:25  Bin\
     目录           0  2016-06-22 17:42  Bin\config\
     文件         357  2017-03-23 10:20  Bin\config\AboutInfo.txt
     文件         121  2017-04-07 11:57  Bin\config\iu.ini
     目录           0  2016-06-22 17:42  Bin\Face\
     文件        4116  2016-06-22 17:42  Bin\Face\0.gif
     文件        1582  2016-06-22 17:42  Bin\Face\1.gif
     文件        3834  2016-06-22 17:42  Bin\Face\10.gif
     文件        4323  2016-06-22 17:42  Bin\Face\100.gif
     文件        1571  2016-06-22 17:42  Bin\Face\101.gif
     文件        4692  2016-06-22 17:42  Bin\Face\102.gif
     文件        5162  2016-06-22 17:42  Bin\Face\103.gif
     文件        3820  2016-06-22 17:42  Bin\Face\104.gif
     文件        1755  2016-06-22 17:42  Bin\Face\105.gif
     文件        6361  2016-06-22 17:42  Bin\Face\106.gif
     文件        3073  2016-06-22 17:42  Bin\Face\107.gif
     文件        3731  2016-06-22 17:42  Bin\Face\108.gif
     文件        1532  2016-06-22 17:42  Bin\Face\109.gif
     文件        8033  2016-06-22 17:42  Bin\Face\11.gif
     文件        2085  2016-06-22 17:42  Bin\Face\110.gif
     文件        2381  2016-06-22 17:42  Bin\Face\111.gif
     文件        2406  2016-06-22 17:42  Bin\Face\112.gif
     文件        5002  2016-06-22 17:42  Bin\Face\113.gif
     文件        2596  2016-06-22 17:42  Bin\Face\114.gif
     文件        1533  2016-06-22 17:42  Bin\Face\115.gif
     文件        1369  2016-06-22 17:42  Bin\Face\116.gif
     文件        2195  2016-06-22 17:42  Bin\Face\117.gif
     文件        1591  2016-06-22 17:42  Bin\Face\118.gif
     文件        3424  2016-06-22 17:42  Bin\Face\119.gif
     文件        2247  2016-06-22 17:42  Bin\Face\12.gif
     文件        1581  2016-06-22 17:42  Bin\Face\120.gif
............此处省略996个文件信息

评论

共有 条评论