首页上一页 1 下一页尾页 4 条记录 1/1页
为什么有Flags & FBOTTOMBAR作为判断的条件啊
发表在C语言图书答疑
2009-09-02
是否精华
是
否
版块置顶:
是
否
if(Flags & FBOTTOMBAR)
{
DeleteObject(LeftLine);
LeftLine.LoadBitmap(IDB_BOTTOMBAR);
//获取位图大小
LeftLine.GetObject(sizeof(bitinfo),&bitinfo);
OldObj = memDC.SelectObject(&LeftLine);
x = bitinfo.bmiHeader.biWidth;
y = bitinfo.bmiHeader.biHeight;
bLineHeight = m_BorderHeight + m_FrameHeight;
bLineHeight = bLineHeight>y? bLineHeight:y;
WindowDC.StretchBlt(leftlinewidth,FactRC.Height()-bLineHeight,m_RTitleRc.right
-rLineWidth-leftlinewidth, bLineHeight,&memDC,0,0,x,y,SRCCOPY);
memDC.SelectObject(OldObj);
LeftLine.Detach();
} VC++项目全程开发实录 第一个案例
{
DeleteObject(LeftLine);
LeftLine.LoadBitmap(IDB_BOTTOMBAR);
//获取位图大小
LeftLine.GetObject(sizeof(bitinfo),&bitinfo);
OldObj = memDC.SelectObject(&LeftLine);
x = bitinfo.bmiHeader.biWidth;
y = bitinfo.bmiHeader.biHeight;
bLineHeight = m_BorderHeight + m_FrameHeight;
bLineHeight = bLineHeight>y? bLineHeight:y;
WindowDC.StretchBlt(leftlinewidth,FactRC.Height()-bLineHeight,m_RTitleRc.right
-rLineWidth-leftlinewidth, bLineHeight,&memDC,0,0,x,y,SRCCOPY);
memDC.SelectObject(OldObj);
LeftLine.Detach();
} VC++项目全程开发实录 第一个案例