Original URL: http://www.cnblogs.com/x8023z/archive/2008/12/09/mfc33.htmlThe redraw function is often called when the window is refreshedMFC provides three functions for window redrawingInvalidateRect (&rect)Invalidate ()UpdateWindow ()When a window
Objective
Lazy Loading Technology (lazyload) is not a new technology, it is JS programmer of the Web page performance optimization of a scheme. The core of lazyload is load on demand. In large sites have lazyload figure, such as Google's image
7.1.3.3 paste
Pastes the image from the Clipboard to first detect the data format on the Clipboard. If the format is Cf_bitmap, the Assign method of the target bitmap is invoked to paste the image.
The list of procedures is as follows.
Procedure
Some concepts in JavaScript: Set clientX, clientY, offsetX, offsetY, screenX, and screenY clientX or obtain the x coordinates of the mouse pointer position relative to the client area of the window, the customer area does not include the control and
When the window changes, an invalid area is created, and the invalid area needs to be redrawn.Typically Windows sends two messages WM_PAINT (notifies the client area of changes) and Wm_ncpaint (notifies the non-client area of changes). The
Detailed analysis of MFC Window Location Management and examples in the window client area of a program written in MFC, there may be several subwindows (Windows with wm_child style ). The top is the toolbar, the middle is the View window, and the
In the second part of the wtl clock program, when the timer throws the wm_timer message, the processor ontimer does the following work:
Lresult ontimer (uint_ptr nidevent) { if (1! = Nidevent) setmsghandled (false); else { getlocaltime (&
1. Add the toolbar resource ID as IDR_TOOLBAR.2. Add the following to the class definition in the dialog box:CToolBar m_ToolBar;3. Add the following code in OnInitDialog or other appropriate message responses: (function can view
It is usually written in MFC
Program There may be several subwindows (Windows with wm_child style) in the client area ). The top is the toolbar, the middle is the View window, and the bottom is the status bar. The three windows coexist in the
Do not drag the dialog box:
Return true directly in onnchittest, the message processing function corresponding to wm_hittest, or if it points to the title bar of the dialog box, return the value of htclient in the customer area.
Example:
Uint
The state management mechanism of OpenGL
Viewport and viewport coordinate system concepts
Test Viewport settings
1 Moving the Viewport
2 Multi-viewport
Viewport summary
1 status management mechanism for
Mouse events are in a specific location, we can use the various properties of event events to get the coordinate position of the event, there are relative to the viewport, there is relative to the entire document, the same page element position has
Currently, dialog boxes are not framed in many dialog-based applications, which means that the dialog box does not have a title bar. As we all know, the window is moved by the mouse to drag the title bar of the window, then now the application of
1. Client area coordinate position (relative to client viewport, regardless of browser zoom)Clientx and Clienty: represents the coordinates of the mouse at the viewport when the event occurs, excluding page scrolling distances, and therefore does
First, the purpose of the experiment1. Master the method of building MFC application;2. Master the mapping mode.Ii. contents of the experiment1. In MFC to draw a ruler, rulers need to have a scale, similar to the daily use of transparent plastic
In our daily web front-end development process, we often use a variety of sizes and locations. It's usually when JS does the animation. Carousel Diagram, scrolling animation, particle, collision detection, drag, scroll loading, etc. Here I summarize
GetClientRect (), GetWindowRect (), getwindowrect
GetClientRect () is the RECT of the customer zone in the coordinate system of the customer zone.
GetWindowRect () is the RECT of the entire window in the screen coordinate system.
GetSystemMetrics (
Document.compatmode is used to determine the rendering method used by the current browser.Backcompat: Standard compatibility mode is off.Css1compat: Standard compatibility mode is turned on.When Document.compatmode equals Backcompat, the width of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.