谢谢
解决方案 »
- MFC 给控件添加变量 弹出错误
- 屏幕取词 hook ExtTextOutW、BitBlt函数,如何获得正确的文本设备坐标
- vs2005中的Object Identity While Debugging如何设置?
- 如何得到单击菜单时所单击的菜单的npos
- 20分求《MFC经典问答》一书的光盘源代码!谢谢!EMAIL:[email protected]
- (急!)请教怎样设置STATIC TEXT控件的字体大小和颜色?
- VC程序的标题。
- MFC编写文件传输服务
- 关于建立工程的问题
- 一个人怎么只能连续留言3次呢
- windows media format sdk的一点问题
- *** 超级难题: DLL 中创建对话框Create失败, 我已经用了AFX_MANAGE_STATE(AfxGetStaticModuleState());
{
ModifyStyleEx(WS_EX_CLIENTEDGE,WS_EX_STATICEDGE);
ModifyStyle(-1,WS_CHILD|WS_VISIBLE);
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();}
CWindowDC dc(this);
CRect rectClient;
GetClientRect(rectClient);
CRect rectWindow;
GetWindowRect(rectWindow);
ScreenToClient(rectWindow);
rectClient.OffsetRect(-rectWindow.left, -rectWindow.top);
dc.ExcludeClipRect(rectClient);
rectWindow.OffsetRect(-rectWindow.left, -rectWindow.top); // Paint to a memory device context to help
// eliminate screen flicker...
// and draw a sunken border for the client area.
SendMessage(WM_ERASEBKGND, (WPARAM)dc.m_hDC);
dc.DrawEdge(rectWindow, BDR_RAISEDINNER, BF_RECT);