paintdc.tex

来自「很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.」· TEX 代码 · 共 42 行

TEX
42
字号
\section{\class{wxPaintDC}}\label{wxpaintdc}A wxPaintDC must be constructed if an application wishes to paint on theclient area of a window from within an {\bf OnPaint} event.This should normally be constructed as a temporary stack object; don't storea wxPaintDC object. If you have an OnPaint handler, you {\it must} create a wxPaintDCobject within it even if you don't actually use it.Using wxPaintDC within OnPaint is important because it automaticallysets the clipping area to the damaged area of the window. Attempts to drawoutside this area do not appear.To draw on a window from outside {\bf OnPaint}, construct a \helpref{wxClientDC}{wxclientdc} object.To draw on the whole window including decorations, construct a \helpref{wxWindowDC}{wxwindowdc} object(Windows only).\wxheading{Derived from}\helpref{wxWindowDC}{wxwindowdc}\\\helpref{wxDC}{wxdc}\wxheading{Include files}<wx/dcclient.h>\wxheading{See also}\helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp\helpref{wxWindowDC}{wxwindowdc}, \helpref{wxScreenDC}{wxscreendc}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxPaintDC::wxPaintDC}\label{wxpaintdcctor}\func{}{wxPaintDC}{\param{wxWindow*}{ window}}Constructor. Pass a pointer to the window on which you wish to paint.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?