const AFX_MSGMAP *pMessageMap=this->GetMessageMap();
const AFX_MSGMAP_ENTRY* lpEntry=pMessageMap->lpEntries;
CDC*pDC=GetDC();
int y=10;
for(;lpEntry-> nSig!=AfxSig_end;lpEntry++)
{
y+=20;
UINT n=lpEntry->nMessage;
CString str;
str.Format("The message's nMessage is:%x",n);
pDC->TextOut(100,y,str);
}
ReleaseDC(pDC);