Indicates to the text host that the update region has changed.
- fUpdate [in]
Update flag. If TRUE, the text host calls UpdateWindow; otherwise it does nothing. See the Remarks section.
This method does not return a value.
The text services object must call TxViewChange every time its visual representation has changed, even if the control is inactive. If the control is active, then text services must also make sure the control's window is updated. It can do this in a number of ways:
- Call ITextHost::TxGetDC to get a device context for the control's window and then repaint or update the window. Afterward, call ITextHost::TxReleaseDC.
- Call ITextHost::TxInvalidateRect to invalidate the control's window.
- Call ITextHost::TxScrollWindowEx to scroll the control's window.
After the text services object has updated the active view, it can call TxViewChange and set fUpdate to TRUE along with the call. By passing TRUE, the text host calls UpdateWindow to make sure any unpainted areas of the active control are repainted.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
- Windowless Rich Edit Controls
Build date: 11/16/2013