void CStockControlDlg::OnBnClickedButtonpricearea()
{
// TODO: 在此添加控件通知处理程序代码
price_area_flag = 1;
ShowWindow(SW_SHOWMAXIMIZED);
/* method1
//加入WS_EX_LAYERED扩展属性,以下用于对话框透明显示
BYTE byteAlpha = 150;
LONG nRet = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);
nRet = nRet | WS_EX_LAYERED;
::SetWindowLong(m_hWnd, GWL_EXSTYLE, nRet);
SetLayeredWindowAttributes(nRet, byteAlpha,LWA_ALPHA );
*/
/* method 2
{
// TODO: 在此添加控件通知处理程序代码
price_area_flag = 1;
ShowWindow(SW_SHOWMAXIMIZED);
/* method1
//加入WS_EX_LAYERED扩展属性,以下用于对话框透明显示
BYTE byteAlpha = 150;
LONG nRet = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);
nRet = nRet | WS_EX_LAYERED;
::SetWindowLong(m_hWnd, GWL_EXSTYLE, nRet);
SetLayeredWindowAttributes(nRet, byteAlpha,LWA_ALPHA );
*/
/* method 2