vs2005 MFC界面自绘图形BMP按钮时,设置按钮的位置问题
步骤1:按钮button的属性Owner Draw设置为True;
步骤2:在BOOL CChargeDlg::OnInitDialog()函数中调用SetWindowPos(HWNDhWnd,HWNDhWndInsertAfter,intX,intY,intcx,_In_intcy,UINTuFlags)设置按钮的位置,如下
CWnd *pWnd;
//以下为修改按钮位置
pWnd = GetDlgItem( IDC_BUTTON__B ); //切到B
pWnd-