MFC SS_Sunken 下凹 代码发布

来源:互联网 发布:烽火网络机顶盒hg680j 编辑:程序博客网 时间:2024/04/30 01:16

void CplayerTestDlg::OnStnClickedIcon1()
{
 // TODO: Add your control notification handler code here

 bCanDrawRegion = true;
 drawType = LINE;
 CStatic* h_sta1 =(CStatic*) GetDlgItem(IDI_ICON1);
 h_sta1->ModifyStyleEx(NULL,SS_SUNKEN|WS_EX_STATICEDGE,0);
 CStatic* h_sta2 =(CStatic*) GetDlgItem(IDI_ICON2);
 h_sta2->ModifyStyleEx(SS_SUNKEN|WS_EX_STATICEDGE,NULL,0);
}

void CplayerTestDlg::OnStnClickedIcon2()
{
 // TODO: Add your control notification handler code here
 bCanDrawRegion = true;
 drawType = RECTANGLE;

 CStatic* h_sta2 =(CStatic*) GetDlgItem(IDI_ICON2);
 h_sta2->ModifyStyleEx(NULL,SS_SUNKEN|WS_EX_STATICEDGE,0);
 CStatic* h_sta1 =(CStatic*) GetDlgItem(IDI_ICON1);
 h_sta1->ModifyStyleEx(SS_SUNKEN|WS_EX_STATICEDGE,NULL,0);

}


 

原创粉丝点击