How to achieve full screen display
Full Screen Display is some Application SoftwareProgramEssential features. For example, when using VC ++ to edit resources such as the Project source file or the editing dialog box, select "viewfull screen" to
During the development process, we often encounter some time-consuming operations, such as a slow network access or copying a large file. If multithreading is not used, instead, you can directly use the UI thread to perform these actions, which will
The program needs to regularly retrieve data from an activity table in the database, and display the list on the update interface. For example, if there are 20 data records (changed), the 20 Data
Constantly changing (implemented through other
We usually drag the title bar of the dialog box to move the window, but sometimes we want to move the window by dragging the mouse over the customer area.An easy-to-think solution is to process the mouse messages wm_lbuttondown and wm_lbuttonup. The
I have been learning self-painted controls (MFC) since the beginning of this semester. The goal is to make a player interface, mainly to lay a good foundation, because my infrastructure is really bad .... let's talk about my own experiences and
I. Frame window
The Framework Window will receive the WM_SIZE message when its size is changed. The message processing function is CFrameWnd: OnSize. This function then calls RecalcLayout to relocate subwindows, its main code is as follows:
Create personalized dialog box of MFC Article http://tech.163.com/10:50:36 Source: csdn user comments 0 Forum
If you want to make your software stand out, you need to add a "color" to the software. A color-matching window is more eye-catching
I. OverviewThe MDI window contains a frame window and a dry window.In fact, the Framework Window itself is a common main window, but its customers are overwritten by a special window.This special window is a pre-defined window class named "MDICLIENT
This is a confusing concept. After careful analysis, these values are used to locate the elements. The following describes them one by one. This article only describes the equivalence of width and left, which corresponds to height and top. This
Persistence and serialization
Persistence is the ability of all objects to save and load their State data. Objects with this capability can record the current object state data in some way before the application ends. When the program runs again,
1 Basic Knowledge
1.1 MFC Document view structure program structure Overview
When we use MFC Appwizard to generate an MFC program, we use all the default settings (of course, also multiple documents. This article mainly discusses the single
Basic vbprogramming courses
What is API text browser?
API functions declare data types and "type security"
Regular number Structure
Small API function sets: Controls and message functions, hardware and system functions, menu functions, and drawing
Graphic ProcessingA Simple Method for displaying JPEG and GIF images under VCI. IntroductionThe JPEG image compression standard is a Lossy image compression standard. However, the image quality after compression is basically unchanged due to the
Dialog box for accessing MFCProgramThe idea at the beginning is simple: Write a base class for the dialog box, and then all the dialogs of the program are derived from the base class. In this way, I only need to modify the style of the dialog box in
I. Full Screen Display in simple dialog boxAdd the following to oninitdialog:1. modifystyle (ws_caption, 0, 0); // if you do not want to remove the title bar, remove this sentence.Sendmessage (wm_syscommand, SC _maximize, 0); // the taskbar is not
This article involves the following questions:
1. Modify the background color of the dialog box.2. Use bitmap as the background of the dialog box3. Change the text and background color of the static control.4. Change the text and background color of
·
Ws_ex_acceptfiles
Indicates that the windows created in this style can accept drag-and-drop files.
·
Ws_ex_clientedge
Specifies that the window has a 3D appearance, which means that the border has a sinking boundary.
·
Basic window class
WxwindowWxwindow is not only an important base class, but also a class that you can directly use in code.
The constructor prototype is as follows:
Wxwindow (wxwindow * parent,Wxwindowid ID,Const wxpoint & Pos = wxdefaposition
(61) Why is the menu item still disabled even after the enablemenuitem menu item is called?You need to set cframewnd: m_bautomenuenable to false. If the data member is true (default), the Work box will automatically Disable menu items without
Draw a straight line under MFC and use the rubber band technology to move the line effect following the mouse
// OnlbuttiondownM_ptorigin = m_ptend = point;// OnmousemoveCclientdc DC (this );If (nflags = mk_lbutton){DC. setrop2 (r2_not );DC.
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.