C language implementation interface (do not use MFC \ To avoid forgetting), mfc
I feel that MFC is not a programmer's detail, and the basic interface is implemented today to avoid forgetting it later.
Source code:
# Include # Include Char str [] = {'0 '};Char cmd [] = {'0 '};// Char hour [10], minute [10];Int num;Int num_text_hour, num_text_minute;// Char num_str
How to split data of the CString type in MFC and that of the cstring type in mfc
[It is easy to learn, but it is inevitable that there are some mistakes. If there are any errors, please advise]
There is a library function Tokenize () in MFC ();
Function prototype: CStringT Tokenize (PCXSTR pszTokens, int iStart) const;
This function can be used to separate C
MFC uses the bitmap button, and sets the mouse hover effect of the button, the mfc bitmap
System Environment: Windows 10Software environment: Visual C ++ 2013 SP1Purpose: To use the bitmap button and set the mouse hover effect of the button
When using MFC for development, the interface is relatively difficult to develop. The CBitmapButton class is self-contained
Odbc|server
MS SQL Server MFC DAO classes and MFC ODBC classes: Which class set do I use?
This article describes in detail how Microsoft Jet uses ODBC to retrieve server data. This is an essential read for all who write important server applications with DAO.
"Odbc:architecture,performance,and Tuning", Author: Lambert, Colleen.
This white paper provides a good overview of how ODBC works and describes perfor
How to modify the icon of the MFC publishing program and the mfc publishing icon
(1) The first method is to directly replace the ico icon under res in the project path and re-compile it. Generally, the system must be restarted to take effect;
(2) Method 2: add an ICO resource under the ico in the vs project resource preview window, named IDR_ICON1, and modify the constructor statement m_hIcon = AfxGetAp
MFC no blinking hidden window, mfc flashing window
You need to hide the window program today, but if you are in OnInitDialog (), write:
ShowWindow (SW_HIDE );
It is invalid because it is an initialization window function. That is to say, this function is called when the window is not displayed. Therefore, there is no window handle, so it cannot be hidden.
I found a solution on the internet today to solv
MFC: simple use of CImage in MFC; use of mfccimage
First, set # include
I. image loading
If you want to display an existing image on the interface, you need to load the image to the CImage object. CImage provides four loading functions:
HRESULT Load (LPCTSTR pszFileName) throw ();
HRESULT Load (IStream * pStream) throw ();
Void LoadFromResource (HINSTANCE hInstance, LPCTSTR pszResourceName) throw ();
Void
MFC technology accumulation-based on the MFC dialog box Class 3.
3.3.2Create Image painter to load bitmap
1. First, import a bitmap in the Resource View. The bitmap size is 96 × 96 pixels;
2. In the main dialog box, add a static text resource with the IDC_BITMAPAREA ID and a button resource with the IDB_LOADBITMAP ID;
3. Edit the message Association function of the button (IDB_LOADBITMAP), 3.6:
Note that t
; Infoheader= (bmi->Bmiheader); Palette= bmi->bmicolors; //calculating the size of a graph data byteBytessize = (Infoheader->biwidth * infoheader->biheight * (infoheader->bibitcount/8)); //Open Bitmap data memory blockImageData =NewUnsignedChar[Bytessize]; //reading bitmap data blocksFread (Imagedata,bytessize,1, ImageFile); //gets the specified windowcwnd* Mywnd =GetDlgItem (Idc_bitmaparea); //creates the DC associated with the specified windowcclientdc DC (Mywnd); RECT RC; //ge
Mfc usb flash disk detection and mfc Detection
WM_DEVICECHANGE message
Read MSDN and learn:
The framework calls this member function to notify an application or device driver of a change to the hardware configuration of a device or the computer.
That is, the Framework calls this function to notify the application or device driver that the hardware configuration or computer configuration has been ch
color - + //Pdc->setbkmode (TRANSPARENT);//Set Background Transparency - + } A at //TODO: If the default is not the desired brush, another brush is returned - - returnHBR; - -}In addition to setting the color and background of a static control, the OnCtlColor function applies to several types:Ctlcolor_btn Button controlsCtlcolor_dlg dialog boxCtlcolor_edit edit BoxCtlcolor_listbox List controlCtlcolor_msgbox Message ControlCtlcolor_scrollbar scroll bar controlCtlcolor_s
The use of MFC. BSC to read the source code can provide a lot of convenience, the following describes the usage
1. Open a project as needed. If you do not open the project, the source browser option is not available in the tool menu.
2. Open the previous articleArticleIn the mentioned MFC. BSC (or a self-generated file), you can select the type BSc in the open dialog box, so that you can quickly find it
Copyright Notice
Respect Original Works. Reprinted, please maintain the integrity of the article, and in the form of a hyperlink to indicate the original author "tingsking18" and the main site address, so that other friends can ask and correct.
Mixed MFC and QT programming-use QT components in the MFC Program
1.
Create a simpleMFC DialogProgram.
2.
InBool ctestapp: initinstance ()Add to functionQmfc
and displayed,Set as Wizard modeCPropertySheet::SetWizardMode3.2.2 Set the wizard button for each page, in Cpropertypage::onsetactive ()virtual function in the Set Wizard button.Cpropertypage::getparent-gets the parent window of the pageCpropertysheet::setwizardbuttons-Setup Wizard button3.2.3 Processing CPage11 binding member variables to controls2 Add Wm_initdialog Message handler function, add City option to function3 in the virtual function Onwizardnext function of CPage1, the null judgment
I have stored some software on the online storage, hoping to help my friends. The validity period is 3 months. If you need it, please contact me or leave a message.Provide some lower-level websites for rabbits
The deadline is three months, and friends who need it should leave early. Occasionally updated after the deadline1. Canon EF connector optical transceiver: (symbol %7z)
Canon EF Lens Disc
############
To the photographic enthusiasts for detailed analysis to share the Canon SX510 HS camera interface and support Sony Memory stick problem.
Analytical sharing:
What is the interface of Canon SX510 HS
Canon SX510 HS has USB 2.0 interface, AV output interface, HDMI output interface.
Canon SX510 HS, the up
To the photographic enthusiasts to share a detailed analysis of the Canon SX60 HS support video resolution.
Share list:
Canon SX60 HS supports 1080p (1920x1080 30p,24mbps,16mbps) video.
For more questions about Canon SX60 HS support for 1080P video, the following will do a detailed answer. Canon SX60
viewfinder magnification selection. The standard lens is serenar 50mm f/1.9.
The 35mm camera market is undoubtedly getting hotter and hotter, and Canon certainly won't be idle. In April 1949, Canon launched the II-type camera. as a successor to the s ii model, ii B provides F (normal), 1x, and 1.5x zoom options, this feature is well received to adapt to the focal lengths of 50mm, 100mm and 135mm. In addi
To the photographic enthusiasts for detailed analysis to share the performance of Canon IXUS155 camera.
Analytical sharing:
Canon IXUS155 the front and the traditional Ixus machine as very concise, which is the position of the lens, the center of the design can make the fuselage look more symmetrical, Canon IXUS155 adopted a telescopic lens de
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.