tcpclien.h

来自「早期的WINDOWS编程,适合刚接触WINDOWS编程的初学者」· C头文件 代码 · 共 44 行

H
44
字号
                                                                        //
//Function and data declaration for main module
//
//From What Every Windows 95 Programmer Should Know
//Lawrence Harris
//SAMS Publishing
//

#ifndef __TCPCLIENTMAIN_H__
#define __TCPCLIENTMAIN_H__

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

//To handle the Message Crackers
void  TCPCLIENT_OnDestroy(HWND hWnd);
BOOL  TCPCLIENT_OnCreate(HWND hWnd, CREATESTRUCT FAR *lpCreateStruct);
void  TCPCLIENT_OnCommand(HWND hWnd,int wmID, HWND hWndCtl, UINT wmEvent);
void  TCPCLIENT_OnRButtonDown(HWND hWnd,BOOL fDoubleClick,int x,int y, UINT uflags);
void  TCPCLIENT_OnNCRButtonUp(HWND hWnd,int x,int y, UINT uflags);
void  TCPCLIENT_OnDisplayChange(HWND hWnd, BOOL fChanged, int x, int y);
void  TCPCLIENT_OnEvent(HWND hWnd,WPARAM wParam, LPARAM lParam);


void  OnRead(SOCKET s, int iEvent, int iError);
void  OnWrite(SOCKET s, int iEvent, int iError);
void  OnClose(SOCKET s, int iEvent, int iError);
void  OnOutOfBand(SOCKET s, int iEvent, int iError);
void  OnConnect(SOCKET s, int iEvent, int iError);

#ifndef __COMMON_H__
#include "common.h"
#endif
 
class CTCPClientAppObject
{
public:
    HINSTANCE hInstApp;          // current instance
    CAppType TCPClientAppType;
};

extern CTCPClientAppObject TCPClientAppObject;

#endif

⌨️ 快捷键说明

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