Invalidate()是Cwnd的成员函数,与DOC-VIEW无关; UpdateAllViews是CDocument的成员函数,具体体现DOC-VIEW的精神。 如果仅重画当前窗口用 this->Invalidate(); 如果通知所有和当前文档相关的窗口重画用GetDocument()->UpdateAllViews(this)(在View中)或this->UpdateAllViews(NULL)(在Doc中)。 Invalidate()函数产生一条WM_...
CMFCToolBarButton* InvalidateButton(int nIndex); 参数 nIndex [in] 工具栏中按钮的从零开始的索引。 返回值 指向提供的索引处存在的 CMFCToolBarButton 对象的指针,如果不存在此类对象,则为 NULL。 注解 框架在更新与工具栏按钮关联的工作区时调用此方法。 它使用在提供的索引处存在的 CWnd::InvalidateRect...
CMFCBaseTabCtrl::InvalidateTabC++ Copier void InvalidateTab(int iTab); Paramètres[in] iTabNotesCMFCBaseTabCtrl::IsActiveTabCloseButtonCopier virtual BOOL IsActiveTabCloseButton() const; Valeur de retourNotesCMFCBaseTabCtrl::IsAutoColor
UNUSED(pSender); // unused in release builds Invalidate(TRUE); } 7.2.4 虚函数virtual void OnInitialUpdate() 在初始创建、调用OnCreate()之后,或者在File|New、File|Open命令后被框架调用。基类CView::OnInitialUpdate()只是简单地调用OnUpdate(),可以重载它完成初始化工作。但注意,它可能被多次调用。 void...
It calls the CWnd::InvalidateRect method with the client rectangle of the CMFCToolBarButton object that exists at the provided index. CMFCToolBar::IsAddRemoveQuickCustomize Determines whether a user can add or remove toolbar buttons by using the Customize menu option. Copy BOOL IsAddRemove...
相反,确定设备坐标中的矩形描述,即需要更新的区域;将此矩形传递给 CWnd::InvalidateRect。 这会导致下次收到 WM_PAINT 消息时进行绘制。如果lHint 为0,pHint 为NULL,则文档已发送通用更新通知。 如果视图收到通用更新通知,或者如果无法解码提示,则应使整个工作区失效。
通常您不應執行任何繪製直接從OnUpdate。相反地,請判斷說明,在裝置座標,需要更新的區域的矩形,傳遞至這個矩形CWnd::InvalidateRect。在下次WM_PAINT接收訊息時,這會導致繪製時發生。 如果lHint 是 0,而 pHint 是NULL,文件傳送泛型更新告知。如果檢視接收泛型更新告知,則為;如果無法解碼提示,它應該失效的整個工作區 ...
Instead, determine the rectangle describing, in device coordinates, the area that requires updating; pass this rectangle to CWnd::InvalidateRect. This causes painting to occur the next time a WM_PAINT message is received.If lHint is 0 and pHint is NULL, the document has sent a generic ...
Instead, determine the rectangle describing, in device coordinates, the area that requires updating; pass this rectangle to CWnd::InvalidateRect. This causes painting to occur the next time a WM_PAINT message is received.If lHint is 0 and pHint is NULL, the document has sent a generic ...
Instead, determine the rectangle describing, in device coordinates, the area that requires updating; pass this rectangle to CWnd::InvalidateRect. This causes painting to occur the next time a WM_PAINT message is received.If lHint is 0 and pHint is NULL, the document has sent a generic ...