搜索资源列表
VCjiemian
- ①、重载对话框的消息函数: void OnNcLButtonDown(UINT nHitTest, CPoint point) //单击标题栏时是响应 void OnNcMouseMove(UINT nHitTest, CPoint point) //Mous 在标题移动时响应 LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) ②、添加关键成员函数为:BOOL D
puture
- 可以扮演的角色有主域控制器(PDC)、备份域控制器(BDC)、独立的服务器,请先简述一下三种角色的功能,再判断本服务器应选择的角色。-could play a role as a primary domain controller (PDC) and backup domain controller (BDC), independent server, please briefly describe the role of the three functions, then judge shou
newasp200611413439593
- int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF c
多彩窗口
- 可通过改变窗口大小来改变窗口颜色详见CColorWindowView::OnDraw(CDC* pDC)-can change the window size to change the window colors detailed CColorWindowView : : OnDraw (CDC * pDC)
liaozhigan0873
- // CDC::FillSolidRect is faster, but it does not handle 8-bit color depth VERIFY(brush.CreateSolidBrush( RGB(r+rStep*iOnBand, g + gStep*iOnBand, b + bStep * iOnBand))) pDC->FillRect(&rectFill,&brush) VERIFY(brush.Delet
VPFT
- visual prolog for tyros是PDC公司的一个比较经典的prolog教程。
Arrow.rar
- 在视图中画箭头的函数。DrawArrow(CDC *pDC, CPoint ptStart/*起始点*/, CPoint ptEnd/*终点*/),In view of the function arrow painting. DrawArrow (CDC* pDC, CPoint ptStart/* starting point* /, CPoint ptEnd/* end* /)
BkgndSDI
- 在单文档框架结构的背景窗口上显示图案。重载视图OnEraseBkgnd函数,添加代码:if(!m_bAnimatedBkgnd) pDC->StretchBlt(0,0, rcClient.right-rcClient.left, rcClient.bottom-rcClient.top, &dcMem, 0,0, bm.bmWidth, bm.bmHeight, SRCCOPY) else {
Sample
- 界面编程 好多小例子 界面编程 好多小例子-if (nCtlColor=CTLCOLOR_BTN) if (nCtlColor=CTLCOLOR_BTN) { pDC->SetBkMode(TRANSPARENT) }
1
- 生成一个标准的单文档应用程序框架,假设应用程序的名称为Color。我将利用它的About对话框做示范。 在About dialog中添加两个Edit control,设定其ID为IDC_EDIT1与IDC_EDIT2;-((pWnd->GetDlgCtrlID() == IDC_EDIT1) && (nCtlColor == CTLCOLOR_EDIT)) { COLORREF clr = RGB(255,0,0) pDC->SetTextColor(cl
DrawBackground
- 对多文档窗口应用程序中的主框架,可改变窗口的背景,使程序看起来更专业,窗口改变背景不能简单地用ClassWizard重载OnEraseBkgnd(CDC* pDC)函数的方法 实现。 因为多文档窗口应用程序中的主框架窗口的背景区是一个MDIClient类的窗口,因 此改变背 景与这个MDIClient类的窗口有关。MDIClient类的窗口的句柄是m_hWndMDIClient(在CMDifr a meWnd中)-Multi-document window in the applicat