如何 重画 vc的 菜单的外边线
整个menu的外部的边线
和 列表框的外边线
谢谢!
整个menu的外部的边线
和 列表框的外边线
谢谢!
解决方案 »
- 有办法把蓝色变成红色吗?
- 打开、保存对话框有编码下拉框?!
- idispatch error #3079
- 关于电源选项(Power options)
- 计算SOCKET每秒的传送速度,请专家们来这里看看我哪里写得不对.
- 急!!HRESULT testarray([in,out]long *lArraySize,[in,out,size_is(* lArraySize)]char *lArray)com数组问题
- 问一个很菜的问题。。。。。。
- to table:錯在那裡?
- 怎样动态创建一个Combobox后设置其下拉框的高度?
- 已知适配器的MAC地址以及对应的编号(如0000,0001之类的),怎样获得其对应的IP地址?
- 有關 GetLastError(VOID) 問題
- 请问如何才能获取网页里applet中的数据?
{
CRect rItem(lpdis->rcItem);
CDC* pDC = CDC::FromHandle(lpdis->hDC); pDC->FillSolidRect(CRect(rItem.left - 1, rItem.top, rItem.left, rItem.bottom), crShadow);
pDC->FillSolidRect(CRect(rItem.right - 1, rItem.top, rItem.right, rItem.bottom), crShadow);
}void xxxMenu::DrawItem(LPDRAWITEMSTRUCT lpdis)
{
CPaintDC dc(this); // device context for painting
// prepare dc
dc.SelectObject(GetFont());
DRAWITEMSTRUCT dis;
dis.CtlType = ODT_MENU;
dis.CtlID = GetDlgCtrlID();
dis.hwndItem = GetSafeHwnd();
dis.hDC = dc.GetSafeHdc();
dis.itemAction = ODA_DRAWENTIRE;
// draw the rest of the border
CRect rClient, rPage;
GetClientRect(&dis.rcItem);
rPage = dis.rcItem;
AdjustRect(FALSE, rPage);
dis.rcItem.top = rPage.top - 2;
DrawMainBorder(&dis);
// paint the tabs first and then the borders
int nTab = GetItemCount();
int nSel = GetCurSel();
// now selected tab
dis.itemID = nSel;
dis.itemState = ODS_SELECTED;
VERIFY(GetItemRect(nSel, &dis.rcItem));
dis.rcItem.bottom += 2;
dis.rcItem.top -= 2;
DrawItem(&dis);
DrawItemBorder(&dis);
}
里面的 呢 ?
好像这个代码里面没有
麻烦了
? 谢谢指教