VC++ MFC有关消息映射宏的问题
。。。。。。#ifndefWND#defineWND#include<commctrl.h>#include"ListCtrl.h"#defineMESSAGE_MAP_...
。。。。。。
#ifndef WND
#define WND
#include <commctrl.h>
#include "ListCtrl.h"
#define MESSAGE_MAP_DECLARE() \
public: \
static MSGMAP_ENTRY MessageEntry[];
#define MESSAGE_MAP_BEGIN(ClassName) \
MSGMAP_ENTRY Wnd::MessageEntry[] = \
{
#define MESSAGE(MSG, PEOC) \
{MSG, &PEOC},
#define MESSAGE_MAP_END() \
{0, 0} \
};
class Wnd;
typedef struct _MSGMAP_ENTRY
{
UINT nMessage;
void (Wnd::*pfn)();
}MSGMAP_ENTRY;
。。。。。。
中的如
#define MESSAGE_MAP_DECLARE() \
public: \
static MSGMAP_ENTRY MessageEntry[];
#define MESSAGE_MAP_BEGIN(ClassName) \
MSGMAP_ENTRY Wnd::MessageEntry[] = \
{
里的“\”是什么意思? 展开
#ifndef WND
#define WND
#include <commctrl.h>
#include "ListCtrl.h"
#define MESSAGE_MAP_DECLARE() \
public: \
static MSGMAP_ENTRY MessageEntry[];
#define MESSAGE_MAP_BEGIN(ClassName) \
MSGMAP_ENTRY Wnd::MessageEntry[] = \
{
#define MESSAGE(MSG, PEOC) \
{MSG, &PEOC},
#define MESSAGE_MAP_END() \
{0, 0} \
};
class Wnd;
typedef struct _MSGMAP_ENTRY
{
UINT nMessage;
void (Wnd::*pfn)();
}MSGMAP_ENTRY;
。。。。。。
中的如
#define MESSAGE_MAP_DECLARE() \
public: \
static MSGMAP_ENTRY MessageEntry[];
#define MESSAGE_MAP_BEGIN(ClassName) \
MSGMAP_ENTRY Wnd::MessageEntry[] = \
{
里的“\”是什么意思? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询