// SelDress.cpp : implementation file // #include "stdafx.h" #include "ylgl.h" #include "SelDress.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // SelDress dialog SelDress::SelDress(CWnd* pParent /*=NULL*/) : CDialog(SelDress::IDD, pParent) { //{{AFX_DATA_INIT(SelDress) //}}AFX_DATA_INIT } void SelDress::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(SelDress) DDX_Control(pDX, IDC_LIST2, m_List2); DDX_Control(pDX, IDC_LIST1, m_List1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(SelDress, CDialog) //{{AFX_MSG_MAP(SelDress) ON_BN_CLICKED(IDC_BUTTON1, OnButton1) ON_BN_CLICKED(IDC_BUTTON2, OnButton2) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // SelDress message handlers BOOL SelDress::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here g_sendhead.bsql=0; g_sendhead.code[0]=72; g_sendhead.tabcount=1; g_pMainWnd->ProcessChatMessageRequest2(0); if(g_bSendOK==0) { CDialog::OnCancel (); return 0; } DataToArray(&m_List1array); m_List1.ResetContent (); for(int i=0; i