----- A friend passing by, if you find an error or have good suggestions, please leave a message below. Thank you! -----
Finally met again
After a while, I finally met you again. I have been a little busy recently and have not seen a movie for weeks.
First, there are two ways to create a toolbar in MFC::
The steps for the first method are as follows:
(1) Create toolbar resources. This is done in the IDE resource editor.
(2) construct a ctoolbar object.
(3) Call the CREATE () function or
An MFC Menu1 Questions about the menuWin32--hmenuMFC----CMenu Class Object------Map for menu handleThe CMenu class encapsulates the various API functions of the Action menuEncapsulates a member Cmenu::m_hmenu save menu Handle2. Menu Usage1. Add a
Coordinate map instances(1) Create a single-document MFC project DRAW:NEW->PROJECTS->MFC AppWizard (EXE)->single document.(2) Locate CMainFrame::P the Recreatewindow function, where the default window size is set to pixel*300 pixel.BOOL
This article takes the Sun Xin teacher VC + + program as the Foundation, explained in detail the Windows procedure internal operation mechanism, believed may help everybody better understand the Windows program operation principle and the
In the previous article I introduced the application of the Tangrammini component in the SDI program, from which I plan to write two to three articles on the use of Tangrammini components in MDI applications, in fact the application in MDI is
Reprint: http://blog.csdn.net/dxsh126/article/details/2940226First, you need to use a WIMDOWSAPI function, so you must introduceUsing System.Runtime.InteropServices;namespaces;Then, there are two ways to use the API, one that does not need to
Interface Development (I)
Author: zhjp11 Source: Xiao SpaceInterface development overview
Each software must have its own software interface. for software development, the software interface is not necessarily the most important, but also very
How to make similar msn (QQ) web pages in the drag effect (a) http://blog.csdn.net/BlueDestiny/archive/2006/05/25/755189.aspx
Because of the length of the article, the scores are clearly written.
Next, let's talk about it.
We follow the above ideas
Concept (from network ):
Clientx sets or obtains the X coordinates of the mouse pointer position relative to the client area of the window. The client area does not include the control and scroll bar of the window.Clienty sets or obtains the Y
Introduction to MDI Applications
In Vc#, an MDI application consists of two parts, the MDI parent form and the MDI child form.An MDI application can contain one or more MDI parent forms, and each MDI parent form can contain more than one
Not just the rectangle with the largest and smallest close button is called a window.All controls are windows. The child window in the window is a window. "The composition of the Window"The outer border. When the window border property is Thin,
I used the WM_NCHITTEST message to move a form without a title bar, which is probably as follows:In general, we drag the title bar of the dialog window to move the window, but sometimes we want to move the window by dragging the mouse over the
In front of the two personalities of the folder selection dialog box to complete the method, see the article "Win7 interface and API to complete the Old Interface Folder selection dialog box code complete detailed explanation》。 and the Old Interface
OnPaint is a message handler for the WM_PAINT message, OnDraw is called in OnPaint, and in general, the user's own drawing code should be placed in OnDraw.OnPaint () is a class member of CWnd and is responsible for responding to WM_PAINT messages.
Two GDI drawing in MFCthe GDI drawing consists of the following steps: Gets the device environment, sets the coordinate mapping, Create a drawing tool and call the DC drawing function Drawing. 1. Get the equipment environment(1) In SDK programming,
09121852 du June mechanical design and theory1. CMainFrameActivateframe make frames visible to users and availableCalcwindowrect call this function whenever the client area dimension of the main frame window changes or the position of the control
1. Foreword
Lazy Loading Technology (lazyload) is not a new technology, it is the JS programmer of the Web page performance optimization of a scheme. The core of lazyload is load on demand. There are lazyload figures in large websites, such as
The difference between CDC,CCLIENTDC,CPAINTDC,CWINDOWDC in MFC CDC is the base class for Windows drawing devices. CCLIENTDC: (1) (Customer area device context) is used for the output of the client area, associated with a particular window, which
At the Computer College of Beijing University of Technology, Mr. Hu's "Deep MDI client window Programming" article discusses two ways to change the background of MDI client windows in the learning process, and describes one of the implementation
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.