C ++ MFC common functions (conversion) and mfc Functions
WinExec ()
ExitWindowsEx ()
GlobalMemoryStatus ()
GetSystemInfo ()
GetSystemDirectory ()
GetWindowsDirectory ()
GetTaskmanWindow () // obtain the taskbar window handle in user32.dll
OpenProcessToken () opens an access token for a process.
GetCurrentProcess () Get the Process Handle
LookupPrivilegeValue () Modify process Permissions
AdjustTokenProvileg
If you want to use MFC, you need to manually add MFC to the system.1: Locate the MFC DLL in the VS2005 directory. The directory on my computer is D:/program files/microsoft Visual Studio 8/vc/ce/dll/x86.Because the platform I use is based on CEPC, select the x86 directory.2: Copy the MFC DLL to the%WINCE_ROOT%/OSDESIGN
: vs is known as "the strongest IDE in the universe", but sometimes the installation package is too big, it's just a few g, and there's a lot more to be done when it's installed, and that's what the Virgo people are going to endure! This article is not a spit slot, but rather an IDE that does not have to install a new version of a few g in an emergency scenario, but instead moves the higher version of the project to the lower version of the IDE and makes it work and debug the solution ~VS2013 ve
The QT/mfc Migration Framework tool assists in the migration of existing Win32 or MFC applications to the QT toolkit.
The project provides a set of classes that allow using QT and MFC/Win32 windows in the same application. User interface elements developed with QT can be embedded into an existing MFC or Win32 based use
Excerpt from: http://zhy1987819.blog.163.com/blog/static/841427882011614103454335/MFC draws dynamic curves and uses double-buffered drawing techniques to prevent flicker2011-07-14 10:34:54|Category: Learning Notes | Tags: double buffering drawing technology MFC Dynamic Curve | report | font size SubscriptionFirst, as time goes on, the curve shifts to the right, while the x-axis time coordinates are updated
application wants to use this API, You need to reference rstrtmgr. lib and rstrtmgr. dll. Among them, our common functions are: ◆ rmstartsession Create a New Restart task. ◆ rmgetlist this function can be used by the installer to obtain all affected applications and their current status. ◆ rmregisterresources register the resources of the restart task, such as the file name, service, or rm_unique_process struct. ◆ rmrestart restart the applications or services shut down by rmshutdown. O
Self-painted mfc buttons and mfc buttons MFC button self-Painting
Author: songyanwu
If you are a god, you don't have to read this article!
Note: This article provides a simple self-painting button and also introduces self-painting. (It is definitely suitable for beginners. I also have a lot of Goolgle information, the introduction is rather vague. It also takes
If you select use MFC in a shared DLL,Your compiledProgramDoes not contain the MFC library, so the file will be relatively small, but if your program is directly moved to a machine without MFC installed, it may lead to the failure to find the mfc dll.
If you select use MFC
MFC technology accumulation-based on the MFC dialog box
1.Create dialog box class
(1)Open the VC ++ 6.0 environment and click:File→New;
(2)In the pop-up dialog box, select:Engineering→MFC AppWizard (exe)→ InputProject name(For example, function debugging) → saving the projectPath Name→OK(All other options are checked by default );
(3)In the pop-up
[MFC] basic knowledge of program framework and mfc framework
1. First, paste a simple Win32 Hello World Program, which is the basis for learning MFC.
If you have not learned Win32, please add relevant knowledge on your own.
# Include
2. MFC is an encapsulation of Win32 API by Microsoft.
After creating a simple
Bcgcontrolbar Pro for MFC is an extended library of MFC that you can use to build similar to Microsoft Office 2000/xp/2003/2007/2010/2013 and Microsoft Visual Studio-like (print, custom toolbars, menus, etc.) and advanced user interfaces for some other well-known products, such as calendars, grids, edits, and Gantt charts. Bcgcontrolbar's extension library contains more than 300 well-designed, tested, and f
When vs2008 is used, there is one of the following MFC settings in the project properties:1. Use the standard Windows library 2. Use MFC in the shared DLL 3. Use the first type of MFC in the static library as the name suggests. The second type means that the content of some mfc dll files is not included in the EXE file
the problem is solved?The reality is that in multi-process situations, it is generally not a simple multi-process to share a semaphore. Multi-process communication requires a lot of information. The general solution is to use shared data segments.# Pragma data_seg ("share ")Int performance_data;# Pragma data_seg ()# Pragma comment (linker, "/section: Share, RWS ")A shared data segment named share is generated through the pragam compiler command, so that the variable pai_data can be shared by mu
by the interface and system on the desktop.
Window Type
Create a window in Windows SDK
Speaking of the window class, we have to review the process of creating a window during Windows SDK programming.
Design window class (set various properties. Note that this window class is only a struct, not the window class we will discuss)
Registration window class
Create window (more designed window class struct creation window)
Display window
Update window
Message Loop
Window Process (in the wind
C ++ MFC programming notes: Use of the day08 MFC dialog box1. MFC dialog box1 categoryMode and non-Mode2 related classesCDialog class-the parent class is CWnd, which is essentially a window and the parent class of the dialog box class.CCommonDialog class and subclass-General dialog box, color dialog box, file dialog box,Find and replace dialog box, font Setting d
The creation of MFC objects
The previous chapters introduce MFC's core concepts and ideas, that is, introduce MFC's encapsulation methods and features of Windows objects; Dynamic creation, serialization of MFC objects, and MFC message mapping mechanisms.
Now, examine MFC's application architecture, which is document-as the core programming model. To learn this
function loaded the skin library successfully, but found that their menu does not display properly!Workaround: The load skin file type is implemented in the InitInstance function, loaded in the Dlg class when the skin name is loaded.In the InitInstance () function of the app class, you only need to enter:1 = = Initskinmagiclib (AfxGetInstanceHandle (), null , NULL, NULL )) ; 1 = = Loadskinfromresource (AfxGetInstanceHandle (), _t ("idr_skinmagic"), _t ( "skinmagic"))); In the Dlg class, in
1. Create a dialog box class(1) Open vc++6.0 Environment, click: file → new ;(2) in the Popup New dialog box, select: project →MFC AppWizard (exe)→ enter project name (ex: function debugging) → Project Save path name → OK (all other tick options are default);(3) in the MFC Appwizard-step1 dialog box that pops up, select: (What type of application do you like to create?) Click the Basic dialog → (use languag
Methods for closing the window in MFC:
Use afxgetmainwnd ()-> sendmessage (wm_close) to exit the program );
Close the current window and use destroywindow ();
The close mode dialog box uses enddialog (0 );
MessageBox usage in MFC
Message box is a common control with many attributes. This article lists some of its common methods and its application scenarios.1.MessageBox ("this is the simplest message box!
The MFC. bsc file is a tool for viewing the source code of MFC in the project. You can find it by Google.
Many people on the internet want to download the file, but the downloaded file has problems. The main problem is that when you view the file through source Brower, the link found is incorrect (because this file is generated based on the MFC source code, it i
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.