Пример #1
0
void 座位详情页::OnBnClickedButton4()//ding
{
	if (www)
	UpdateData(TRUE);
	if (flag == 1)
	{
		//flag++;
		if (x = 1)
			strcpy(fileDizhi, "res\\mv1.ini");
		if (x == 2)
			strcpy(fileDizhi, "res\\mv2.ini");
		if (x == 3)
			strcpy(fileDizhi, "res\\mv3.ini");
	}
	load();
	if (str[diDian][changCi][xuanWei - 1] != '1')
	{
		str[diDian][changCi][xuanWei-1] = '1';
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save();
		OnBnClickedButton1();
	}
	else
	{
		MessageBox(_T("该位置已经被预定。。。"));
	}
}
Пример #2
0
void CDlgWeiHong::OnBnClickedOk()
{
    m_Result.clear();
    vector<sData29>* DataList=CDataManageCenter::GetInstance()->GetData29List();
    m_Result=*DataList;

    OnBnClickedButton1();
}
Пример #3
0
// CModel 訊息處理常式
BOOL CModel::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	m_ModelList.SetExtendedStyle(LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT);
	m_ModelList.InsertColumn(0, _T("編號"), LVCFMT_CENTER, 36, -1);
	m_ModelList.InsertColumn(1, _T("檔案名稱"), LVCFMT_LEFT, 230, -1);
	OnBnClickedButton1();
	return TRUE;  // return TRUE unless you set the focus to a control
				  // EXCEPTION: OCX 屬性頁應傳回 FALSE
}
Пример #4
0
void CLogWindow::OnBnClickedButton2()
{
    // TODO: Add your control notification handler code here
    OnBnClickedMfcbutton1();
    isfind_ = true;

    if(pulling == false)
    {
        OnBnClickedButton1();
        OnBnClickedButton1();
    }
    else
    {
        OnBnClickedButton1();
        OnBnClickedButton1();
        OnBnClickedButton1();
    }

    pulling = false;
    isfind_ = false;
}
Пример #5
0
void 座位详情页::OnBnClickedButton2()
{
	comKou.put_CommPort(5);    //端口号  COM1 2 3 4 
	comKou.put_Settings(_T("9600,n,8,1"));  //波特率=9600,N 没有校验位, 8 数据位,1 停止位
	comKou.put_InBufferSize(1024);   //输入缓冲区
	comKou.put_InBufferCount(0);   //清空输入缓冲区
	comKou.put_InputMode(1);
	comKou.put_InputLen(0);
	comKou.put_RThreshold(1);
	comKou.put_PortOpen(1);
	OnBnClickedButton1();
	MessageBox(_T("通信开启!"));
}
Пример #6
0
// 初始化
BOOL CC2ZDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// 设置此对话框的图标。  当应用程序主窗口不是对话框时,框架将自动
	//  执行此操作
	SetIcon(m_hIcon, TRUE);			// 设置大图标
	SetIcon(m_hIcon, FALSE);		// 设置小图标

	OnBnClickedButton1();

	return TRUE;  // 除非将焦点设置到控件,否则返回 TRUE
}
Пример #7
0
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
		return -1;

	// create a view to occupy the client area of the frame
	if (!m_wndView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
		CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL))
	{
		TRACE0("Failed to create view window\n");
		return -1;
	}
	OnBnClickedButton1(m_hWnd);
	return 0;
}
Пример #8
0
/*刪除檔案*/
void CModel::OnDeletefile()
{        
	//找到該exe目錄
	CString path;
	GetModuleFileName(NULL, path.GetBufferSetLength(MAX_PATH + 1), MAX_PATH);
	path.ReleaseBuffer();
	int pos = path.ReverseFind('\\');
	path = path.Left(pos) + _T("\\Temp\\");
	LPTSTR lpszText = new TCHAR[path.GetLength() + 1];
	lstrcpy(lpszText, path);
	int iSelPos = m_ModelList.GetNextItem(-1, LVIS_SELECTED);
	DeleteFile(lpszText + AllModelName.at(iSelPos).Left(AllModelName.at(iSelPos).Find(_T("."))) + _T(".mod"));//刪除.mod檔
	DeleteFile(lpszText + AllModelName.at(iSelPos).Left(AllModelName.at(iSelPos).Find(_T("."))) + _T(".bmp"));//刪除.bmp檔
	AllModelName.erase(AllModelName.begin() + iSelPos);
	OnBnClickedButton1();
}
Пример #9
0
BOOL CNodeChangeDlg::PreTranslateMessage(MSG* pMsg)
{
	if((pMsg->message == WM_KEYDOWN) && 
		(pMsg->wParam == 0x43)) //C
	{
		if((GetKeyState(VK_SHIFT) & 0x8000)&& (GetKeyState(VK_CONTROL) & 0x8000))
		{
			OnBnClickedButton1();
			return TRUE;
		}

	}


	return CDialog::PreTranslateMessage(pMsg);
}
Пример #10
0
void 座位详情页::OnBnClickedButton5()//tui
{
	if (www)
	UpdateData(TRUE);
	if (flag == 1)
	{
		//flag++;
		if (x = 1)
			strcpy(fileDizhi, "res\\mv1.ini");
		if (x == 2)
			strcpy(fileDizhi, "res\\mv2.ini");
		if (x == 3)
			strcpy(fileDizhi, "res\\mv3.ini");
	}
	load();
	if (str[diDian][changCi][xuanWei - 1] == '1')
	{
		str[diDian][changCi][xuanWei-1] = 't';
		MessageBox(_T("已发送退票请求!"));
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save();
		OnBnClickedButton1();
	}
	else
	{
		if (str[diDian][changCi][xuanWei - 1]=='t')
		MessageBox(_T("该位置正在退票中。。。\n请等待管理原处理"));
		else
		{
			MessageBox(_T("该位置为空位,不接受退票请求"));
		}
	}
	
}
BOOL CTITIANII_OSD_TESTDlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    // Set the icon for this dialog.  The framework does this automatically
    //  when the application's main window is not a dialog
    SetIcon(m_hIcon, TRUE);			// Set big icon
    SetIcon(m_hIcon, FALSE);		// Set small icon

    CVR_CreateVideoRender(&m_pVr, NULL);

    m_pBackBuffer = malloc(4*m_dwWidth* m_dwHeight);
    if(m_pBackBuffer == NULL)
        return FALSE;

    while(1)
    {
        OnBnClickedButton1();
        Sleep(100);
    }
    return TRUE;  // return TRUE  unless you set the focus to a control
}
Пример #12
0
void 座位详情页::OnCommMscomm1()
{
	VARIANT input1;
	BYTE rxdata[2048];  //数据接收缓冲区,用于存放接受到的数据
	COleSafeArray safearray1;
	if (comKou.get_CommEvent() == 2)  //判断是否为串口数据到达事件
	{
		input1 = comKou.get_Input(); //读取串口内容
		safearray1 = input1;  //进行数据安全性转换
		long dataLength = safearray1.GetOneDimSize();  //读取数据的字节长度
		for (long k = 0; k < dataLength; k++)  //依次读取每一个字节
			safearray1.GetElement(&k, rxdata + k);//第一个参数是开始的数组指针,第二个是存放的数组指针
	}
	//if (rxdata[0] == 0x01)//0x01就是上一页。
	// MessageBox(_T("灯已开"));
	//	OnBnClickedpremoive();
	//else if (rxdata[0] == 0x02)//0x02表示下一页。
	// MessageBox(_T("灯已关"));
	//OnBnClickednextmoive();
	UpdateData(TRUE);
	if (flag == 1)
	{
		if (x = 1)
			strcpy(fileDizhi, "res\\mv1.ini");
		if (x == 2)
			strcpy(fileDizhi, "res\\mv2.ini");
		if (x == 3)
			strcpy(fileDizhi, "res\\mv3.ini");
	}
	load();
	if (flag == 1)
	{
		if (x = 1)
			strcpy(fileDizhi, "res\\mv1.ini");
		if (x == 2)
			strcpy(fileDizhi, "res\\mv2.ini");
		if (x == 3)
			strcpy(fileDizhi, "res\\mv3.ini");
	}
	xuanWei = rxdata[0];
	www = 0;
	//MessageBox(_T("hsdgafkashfkj"));
	switch (rxdata[0])
	{
	case 0: break;
	case 1: if (str[diDian][changCi][0] == '1')
				OnBnClickedButton5(); 
			else 
				OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 2: if (str[diDian][changCi][1] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 3: if (str[diDian][changCi][2] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 4: if (str[diDian][changCi][3] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 5:if (str[diDian][changCi][4] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 6: if (str[diDian][changCi][5] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1();  break;
	case 7: if (str[diDian][changCi][6] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1();  break;
	case 8: if (str[diDian][changCi][7] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 9: if (str[diDian][changCi][8] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 10: if (str[diDian][changCi][9] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 11: if (str[diDian][changCi][10] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 12: if (str[diDian][changCi][11] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 13: if (str[diDian][changCi][12] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 14: if (str[diDian][changCi][13] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 15: if (str[diDian][changCi][14] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 16: if (str[diDian][changCi][15] == '1')OnBnClickedButton5(); else OnBnClickedButton4();
		if (flag == 1)
		{
			if (x = 1)
				strcpy(fileDizhi, "res\\mv1.ini");
			if (x == 2)
				strcpy(fileDizhi, "res\\mv2.ini");
			if (x == 3)
				strcpy(fileDizhi, "res\\mv3.ini");
		}
		save(); load(); OnBnClickedButton1(); break;
	case 17: UpdateData(TRUE);
		if (diDian > 0)
		{
			diDian--;
			UpdateData(FALSE);
			OnBnClickedButton1();
		}
			
		else
		{
			MessageBox(_T("已到达首项!"));
		}
		break;
			
	case 18: UpdateData(TRUE);
		if (diDian < 2)
		{
			diDian++;
			UpdateData(FALSE);
			OnBnClickedButton1();
		}
			
		else
			 MessageBox(_T("已到达尾项!"));
		break;
	case 19: UpdateData(TRUE);
		if (changCi>0)
		{
			changCi--;
			UpdateData(FALSE);
			OnBnClickedButton1();
		}
		else
			MessageBox(_T("已到达首项"));
		break;
	case 20: UpdateData(TRUE);
		if (changCi < 4)
		{
			changCi++;
			UpdateData(FALSE);
			OnBnClickedButton1();
		}
		else
			MessageBox(_T("已到达尾项"));
		break;
	default:  break;
	}
	www = 1;
}
Пример #13
0
void Dg_HeadNeck::Increment(bool isIncrementing)
{
	// Sign will cause the function to increment or decrement,
	//		depending on the value of isIncrementing
	int sign, minval = -90, maxval = 90;
	double newVal, oldVal;

	if(isIncrementing)
		sign = 1;
	else	// Decrementing
		sign = -1;

	if (this->Current_Control_ID == 0)
	{
		::MessageBox(	NULL,
							"No joint angle active.",
							"Increment/Decrement",
							MB_OK | MB_ICONEXCLAMATION	);
		return;
	}

	if(!this->UpdateData(TRUE)) //Make sure data OK
		return;

	if (this->Current_Control_ID == IDC_HEAD_FLEXION_DYN)
		oldVal = HeadFlexion;
	else if (this->Current_Control_ID == IDC_NECK1_FLEXION_DYN)
		oldVal = UpperNeckFlexion;
	else if (this->Current_Control_ID == IDC_NECK1_LATERAL_DYN)
		oldVal = UpperNeckLateralBending;
	else if (this->Current_Control_ID == IDC_NECK1_ROT_DYN)
		oldVal = UpperNeckAxialRotation;
	else if (this->Current_Control_ID == IDC_NECK2_FLEXION_DYN)
		oldVal = LowerNeckFlexion;
	else if (this->Current_Control_ID == IDC_NECK2_ROT_DYN)
		oldVal = LowerNeckAxialRotation;
	else if (this->Current_Control_ID == IDC_NECK2_LATERAL_DYN)
		oldVal = LowerNeckLateralBending;

	//if (this->Increment_Group == 0)	// "1" selected
	newVal = oldVal + sign * 1;
	//else
		//newVal = newVal + sign * 5 * (this->Increment_Group);

	/*if (this->Current_Control_ID == IDC_FOREARM_LV_DYN || this->Current_Control_ID == IDC_UPPERARM_LV_DYN || this->Current_Control_ID == IDC_CLAVICLE_LV_DYN || 
		this->Current_Control_ID == IDC_UPPERLEG_LV_DYN || this->Current_Control_ID == IDC_LOWERLEG_LV_DYN || this->Current_Control_ID == IDC_FOOT_LV_DYN ||
		this->Current_Control_ID == IDC_FOREARM_RV_DYN || this->Current_Control_ID == IDC_UPPERARM_RV_DYN || this->Current_Control_ID == IDC_CLAVICLE_RV_DYN ||
		this->Current_Control_ID == IDC_UPPERLEG_RV_DYN || this->Current_Control_ID == IDC_LOWERLEG_RV_DYN || this->Current_Control_ID == IDC_FOOT_RV_DYN){
			minval = -90;
			maxval = 90;
	}
	else{
		minval = -180;
		maxval = 180;
	}*/

	if (newVal >= minval && newVal <= maxval){
		if (this->Current_Control_ID == IDC_HEAD_FLEXION_DYN)
			HeadFlexion = newVal;
		else if (this->Current_Control_ID == IDC_NECK1_FLEXION_DYN)
			UpperNeckFlexion = newVal;
		else if (this->Current_Control_ID == IDC_NECK1_LATERAL_DYN)
			UpperNeckLateralBending = newVal;
		else if (this->Current_Control_ID == IDC_NECK1_ROT_DYN)
			UpperNeckAxialRotation = newVal;
		else if (this->Current_Control_ID == IDC_NECK2_FLEXION_DYN)
			LowerNeckFlexion = newVal;
		else if (this->Current_Control_ID == IDC_NECK2_ROT_DYN)
			LowerNeckAxialRotation = newVal;
		else if (this->Current_Control_ID == IDC_NECK2_LATERAL_DYN)
			LowerNeckLateralBending = newVal;
		CString newangle = DblToCStr(newVal, 4, 4);
		SetDlgItemText(this->Current_Control_ID, newangle);
	}
	OnBnClickedButton1();
}
Пример #14
0
void CDlgWeiHong::OnCbnSelchangeCombo1()
{
    OnBnClickedButton1();
}
Пример #15
0
BOOL CDlg5::OnInitDialog()
{
	    CDialog::OnInitDialog();
		 //PcStart();      ////初始化中发送开机提示邮件

		m_bt1.SubclassDlgItem(IDC_BUTTON1, this);
		m_bt1.SetIcon(IDI_XKJS);
		m_bt1.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt1.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt1.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt1.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt1.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt1.EnableBalloonTooltip();
		m_bt1.SetTooltipText(_T("星空极速密码破解\r\n内含MD5转换"));
		m_bt1.SetRounded(TRUE,FALSE);		

		m_bt2.SubclassDlgItem(IDC_BUTTON11, this);
		m_bt2.SetIcon(IDI_JSBH);
		m_bt2.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt2.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt2.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt2.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt2.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt2.EnableBalloonTooltip();
		m_bt2.SetTooltipText(_T("极速拨号\r\n拨号成功后不再占用系统资源!"));
		m_bt2.SetRounded(TRUE,FALSE);

		m_bt3.SubclassDlgItem(IDC_BUTTON13, this);
		m_bt3.SetIcon(IDI_JHGJ);
		m_bt3.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt3.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt3.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt3.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt3.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt3.EnableBalloonTooltip();
		m_bt3.SetTooltipText(_T("设置定时关闭计算机"));
		m_bt3.SetRounded(TRUE,FALSE);

		m_bt4.SubclassDlgItem(IDC_BUTTON2, this);
		m_bt4.SetIcon(IDI_Web);
		m_bt4.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt4.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt4.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt4.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt4.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt4.EnableBalloonTooltip();
		m_bt4.SetTooltipText(_T("飞秋,随时随地聊天"));
		m_bt4.SetRounded(TRUE,FALSE);

		m_bt5.SubclassDlgItem(IDC_BUTTON12, this);
		m_bt5.SetIcon(IDI_JP);
		m_bt5.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt5.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt5.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt5.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt5.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt5.EnableBalloonTooltip();
		m_bt5.SetTooltipText(_T("Keybor截屏\r\n优秀的截屏工具,不一样的体验!"));
		m_bt5.SetRounded(TRUE,FALSE);

		m_bt6.SubclassDlgItem(IDC_BUTTON14, this);
		m_bt6.SetIcon(IDI_PIN);
		m_bt6.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt6.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt6.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt6.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt6.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt6.EnableBalloonTooltip();
		m_bt6.SetTooltipText(_T("锁屏"));
		m_bt6.SetRounded(TRUE,FALSE);

		m_bt7.SubclassDlgItem(IDC_BUTTON15, this);
		m_bt7.SetIcon(IDI_SET);
		m_bt7.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt7.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt7.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt7.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt7.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt7.EnableBalloonTooltip();
		m_bt7.SetTooltipText(_T("桌面盒子"));
		m_bt7.SetRounded(TRUE,FALSE);

		m_bt8.SubclassDlgItem(IDC_BUTTON17, this);
		m_bt8.SetIcon(IDI_MESSAGE);
		m_bt8.SetAlign(CButtonST::ST_ALIGN_VERT,FALSE);
		m_bt8.SetColor(CButtonST::BTNST_COLOR_FG_IN,0xFF0000,FALSE);
		m_bt8.SetColor(CButtonST::BTNST_COLOR_BK_IN,0x33CC70,FALSE);
		m_bt8.SetColor(CButtonST::BTNST_COLOR_BK_OUT,0xFFFFFF,FALSE);
		m_bt8.SetColor(CButtonST::BTNST_COLOR_BK_FOCUS,0xFFFFFF,FALSE);
		m_bt8.EnableBalloonTooltip();
		m_bt8.SetTooltipText(_T("短信提醒"));
		m_bt8.SetRounded(TRUE,FALSE);

		if(GetPrivateProfileIntA(_T("System"),_T("BeginHide"),0,CAfx::filepath))
		{
			m_set.SetWindowText(_T("启动隐藏"));
			m_set.SetToolTipText(_T("启动扩展应用将隐藏主窗口"));
		}
		else
		{
			m_set.SetWindowText(_T("启动不隐藏"));
			m_set.SetToolTipText(_T("启动扩展应用将不再隐藏主窗口"));
		}
		m_set2.SetToolTipText(_T("Keybor启动时加载应用项设置"));

		//Keybor启动加载项目
		if(GetPrivateProfileIntA(_T("Load"), _T("星空破解"),0,CAfx::filepath))
			OnBnClickedButton1();
		if(GetPrivateProfileIntA(_T("Load"), _T("急速拨号"),0,CAfx::filepath))
			OnBnClickedButton11();
		if(GetPrivateProfileIntA(_T("Load"),_T("计划关机"),0,CAfx::filepath))
			OnBnClickedButton13();
		if(GetPrivateProfileIntA(_T("Load"),_T("Web生活"),0,CAfx::filepath))
			OnBnClickedButton2();
		if(GetPrivateProfileIntA(_T("Load"), _T("Keybor截屏"),0,CAfx::filepath))
			OnBnClickedButton12();
		if(GetPrivateProfileIntA(_T("Load"),_T("Keybor锁屏"),0,CAfx::filepath))
			OnBnClickedButton14();
		if(GetPrivateProfileIntA(_T("Load"),_T("桌面盒子"),0,CAfx::filepath))
			OnBnClickedButton15();
		if(GetPrivateProfileIntA(_T("Load"),_T("短信提醒"),0,CAfx::filepath))
			OnBnClickedButton17();


		return TRUE;
}