CXCtrlMan ctrlman = m_Map.GetCtrlMan();
CXControlState ctrlstate = ctrlman.GetControlState();
CXSize dpsize = ctrlstate.GetSizeDP();
long width_px = dpsize.GetCX()/2 - 250;
CString msg;
msg.Format(_T("BTN UIImage : [%lu]"), width_px);
AfxMessageBox(msg);