VC ++ minimizes pallets, restores, and vc pallets
The so-called "Tray" refers to the part of the system time mark on the right of the following task bar on the Windows system interface. When the program is minimized or suspended, but you do not want to occupy the taskbar, you can put the program in the tray area.
I. functions related to pallet ProgrammingThe essence of putting a program on a tray is to firs
Vc ++ automatically starts and cancels startup, vc cancels
// Start int CMainWnd: CreateRun () {// Add the following code HKEY hKey; char pFileName [MAX_PATH] = {0 }; // obtain the full path of the program. DWORD dwRet = GetModuleFileNameW (NULL, (LPWCH) pFileName, MAX_PATH ); // find the system startup Item maid ("Software \ Microsoft \ Windows \ CurrentVersion \ Run "); // open the startup Key long lRet =
VC ++ WINDOWS custom message range, vc custom
WINDOWS custom message WM_USER and WM_APP
The WM_USER constant is used by Windows to help applications define private messages in the private window class. Generally, WM_USER + is used as an integer, but the total value cannot exceed 0x7FFF (decimal: 32767 ).
# Define wm_user0 x 0400 --> 1024
The WM_APP constant is used by Windows to help the application define
1.VS Compile link VC + + project generate file by default, the generated program icon without administrator rights is not a shieldIf the program needs to do some write operations on the C drive, it must have administrator privileges so it needs to be set up in the project.Note: The installation program of your own project is installed under the Win7 system C:\Program Files (x86), the program can run normally, but under the WIN10 system, installed into
This is the example of the mixed programming of VC + + and MATLAB in the actual project. Recently in the blind Tinker, also studied the next piece, Ben wanted to write a blog post, but this piece of information on the Internet is more, write more specific, think not to repeat the work, so I also do not write.//Extract node informationMxarray*Csd_path; Mxarray*Save_path; Mxarray*Mat_path=Mxcreatecellmatrix (NULL,NULL);//mxcreatecellmatrix: Creating a t
Http://www.cnblogs.com/clever101/archive/2010/04/14/1712207.htmlZhu JinchanSource: http://www.cnblogs.com/clever101/The LUA language is widely used in the gaming world for its excellent extensibility, simplicity, efficiency, and platform independence. It took some time today to learn how VC and LUA mixed development, to write a small routine, and to share this experience with you.First download the latest version of Lua in http://www.lua.org/ftp/: lua
VC + +, in the stack space to apply for storage of the structure or class object array space, if the array length is too large, resulting in the application of the stack space over or close to 1MB, the program can be compiled through, but can not be executed. Hitting debug mode will pop up as shown in the stack space out of Bounds error dialog box.As the following class defines:classcharacter{ Public: Character () {x0=0; Y0=0; X1=0; Y1=0; OffsetX=0; O
The VC ++ client reduces the package size and the vc size.Image compression:
1. The size of the background image is generally-kb. The solid color image can be reduced to 1-3 kb. The method can be reduced to more than 1 MB;2. ico is generally 256-256 kb, 16x16 to x, which can be reduced by about 50 kb after several sizes are subtracted. exe with. ico can be reduced;3. The. ico file is compiled into the exe
Vc type conversion functions, vc Functions
There are various types in windows c ++. in actual application, the types also need to be converted to each other. Therefore, conversions between common types are sorted and encapsulated into functions for reference only, please correct me if anything is wrong! **************************************** * ****************************** 1. function: toInteger descript
It is still difficult to configure ice in VC ++ 6.0. After many tests, the following configurations can be successfully compiled:
1. Project> Settings> C/C ++Configuration of categories1. c ++ LanguageSelect "allowed time type information (rtti )"2. CodeGenerationIn the debug version:Use run-time library = debug multithreadedDLLIn the release version:Use run-time library = multithreaded DLLIi. Project> Settings> Link1. GeneralObject/Library module: a
VC ++ failed to use recordset mspersist to load the XML saved by C # dataset, but it is okay to load the XML saved by VC recordset. Why is XML not universal?
After checking their respective formats, the content is indeed quite different. The XML generated by recordset stores data in data columns as node attributes, while the XML generated by dataset stores data as subnodes. In terms of size, recordset pr
Common commands for vc and vc operations
1. restart the computer:
ExitWindowsEx (EWX_REBOOT, 0 );
2. Shutdown:
ExitWindowsEx (EWX_SHUTDOWN, 0 );
3. logout:
ExitWindowsEx (EWX_LOGOFF, 0 );
4. screen lock:
LockWorkStation ();
5. Make the current program appear in the application bar:
ModifyStyleEx (WS_EX_APPWINDOW, WS_EX_TOOLWINDOW); // not displayed in the taskbar
6. Minimize programs to pallets;
Related API
VC ++ detailed description of Reading Notes-Chapter 6 menu, vc Reading Notes
1. MFC uses uppercase letters to identify the resource ID.
2. multiple resources are used in the program. When determining its ID number for the resource, in order to clearly distinguish the resource type, this principle is generally followed: add a letter to the end of the "ID" string to identify the resource type. For example, w
VC ++ modal dialog box and non-modal dialog box, vc Modal Dialog Box
There are two types of dialog boxes in MFC: Modal Dialog Box and non-modal dialog box.
The modal dialog box means that when it is displayed, the program will pause the execution until the modal dialog box is closed, and other tasks in the program can continue to be executed. A non-modal dialog box allows you to execute other tasks in the p
VC ++ Dialog Box program response Keyboard Message Processing Method (very important), vc Processing Method
The application based on the MFC dialog box cannot respond to the pressing messages and hotkeys. The TranslateAccelerator function is removed from the message loop of the CDialog class, so it cannot respond to hot keys. At the same time, there may be many widgets in the dialog box, by default, these s
How does VC ++ maximize or minimize forms? vc forms
The ShowWindow function is used to maximize the minimum value.
ShowWindow (SW_SHOWMINIMIZED); // minimize ShowWindow (resize); // maximize ShowWindow (SW_RESTORE); // restore ------- PostMessage (hwnd, WM_SYSCOMMAND, SC _MINIMIZE, 0); SC _MAXIMIZE is maximized.
Usage:
BOOL ShowWindow (int nCmdShow); The nCmdShow parameter specifies how CWnd will be display
How to add a shortcut menu for vc ++ and a shortcut menu for vc
1. Create a new project
Ii. Edit menu Resources
1. Press Ctrl + R to add a Menu. Double-click the Menu icon. 2. Edit the Menu in the Menu editor.
4. Add code (red part)
Void CCMenuView: OnUpdateShow (CCmdUI * pCmdUI) {// TODO: Add your command update UI handler code hereMessageBox ("right-click the pop-up menu to test! ");} Void CCMenuView: On
Toolbar is inevitable for VC development. When there is no artist, we can only do it ourselves most of the time.
The first method is to tile fireworks/photoshop. Currently, most image resources are png images with transparent backgrounds. Although the fireworks tool can directly tile multiple images to generate a toolbar image
Appendix:
Note: This program requires the DotNet Runtime Library (you can directly run the installed Runtime Librar
1. VC is not as popular as it is imagined, and there are exaggerated elements. I don't know about it abroad. I only talk about China.
For several years in a row, VC is definitely the main force in school libraries, Xinhua Bookstore, and XX training courses.
Many universities are either still in the turboc era when they offer C/C ++ courses, or even in the VC ++ e
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.