MFC and Win32

  Relationship between MFC Object and Windows Object The most important encapsulation in MFC is the encapsulation of Win32 APIs. Therefore, we need to understand Windows Object and MFC Object (C ++ Object, a C ++ class instance) the

Make your Toolbar colorful

     ---- On the toolbar of the application, you can place graphical buttons and some controls for quick operations, We can also play an animation on it.To increase the program dynamics and make the user know that the program is working. This

How to generate the CBitmpButton in FORMVIEW

    Generate CBitmapButtom in CFormView: For example, to generate an OPEN and a SAVE CBitmapButtom, use the following method:   Class CMainWindow: public CFrameWnd { Private: CBitmapButtom m_OpenButtom; CBitmapButtom m_SaveButtom; CBitmapButtom m_

Dynamic Display of Bitmap in the dialog box

    The displayed bitmap can be static or dynamic in the dialog box. Static mode is to use the resource editor of VC6.0. First, introduce a Bitmap to be displayed in the resource view, then place a Picture control in the dialog box, and select

Implement Serial Communication Using Activex

    For implementationYou can use APIs to implement Windows serial communication, but it is inconvenient. You can also use the Active control.   InsertThe Active control Microsoft comm contronl (MSComm ).   SComm control attributes  

Is the image orange yellow in the CImageList control?

    Use oneThe CImageList control is used to load bitmaps for TREE controls. Other colors are normally orange and yellow.   You can only use20 colors (orange is not included); of course, you can also use the following method to load bitmap

Tracking and intermediate process output

    Maybe more than half of a developer's time is facing errors, so good debugging/The error checking method (Tool) can reduce the burden on our work and shorten the boring debugging process.   The debugging environment provided by the VC

Chapter 5 Category 1)

Chapter 5 Category 1)The previous chapter discusses data types and their usage. Now we move to the key structure-class in C. Without classes, even simple C # programs cannot be compiled. This chapter assumes that you know the basic components of a

Create an OpenGL Class Based on the MFC dialog box

Today I wrote an OpenGL Class Based on the MFC dialog box: COpenGL, which can be used in the dialog box program. It also provides two functions for full-screen and non-full-screen conversion, which are easy to use and fast. Usage: Add a Static

Several useful string operation functions in MFC

Several string operation functions are useful in MFC, but some cannot be found in MSDN, because MSDN has not published them. Let's take a look at their usage, declarations, and definitions.// Function: format a string// Parameter: rString-output

Asynchronous Network Communication using the Windows Sockets API

[Article Information]Author: Institute of Electronics 22nd, Ministry of Information Industry, Qingdao branch Lang Rui time: Source: yesky Editor: Ark[Document Introduction]This article discusses and explains how to use a connection-oriented stream

How to disable the system menu on the button and floating toolbar in the dialog box

1. There are two methods to close the button in the disallow dialog box. The first method is implemented by using the number of ModiftMenu () Han: CMenu * pMenu = this-> GetSystemMenu (FALSE );PMenu-> ModifyMenu (SC _CLOSE, MF_BYCOMMAND | MF_GRAYED )

Office 2000-style parking and smart menu implementation

Note: As the example code provided by the original author requires the use of the RC resources, I feel that it is not general enough, so I will modify some source code and translate the article. The examples attached here are the interface section

How to extract and save ICON resources

What if you want to use beautiful icons in other applications? Some icon extraction tools may be used! So, do you know how they are implemented, and do not want to create a suitable icon Extraction Tool by yourself? Next, let me use a tool I used

Basic methods for accessing direct odbc api database calls in AppBuilder

Chapter 1: how to configure DSN for your development system:(1) Open the control panel of Windows. Select the ODBC Data Sources icon and double-click it to open the content. The ODBC Data Source Administrator dialog box is displayed.(2) Select User

Char * points to content that cannot be modified

Char * str = "resource "; Str [6] = k; // memory write error reported * (Str + 6) = k; // the same error is reported when writing this code. But there is no problem: Char * str = new char [12]; Strcpy (str, "resource "); Str [6] = k; // No problem *

C. Compile the Process Manager.

Example code: # Include# Include# Include Int main (){PROCESSENTRY32 pe32;Pe32.dwSize = sizeof (pe32 ); HANDLE hProcessSnap;BOOL bMore;Int count = 0; HProcessSnap = createconlhelp32snapshot (TH32CS_SNAPPROCESS, 0 ); If (hProcessSnap = INVALID_HANDLE_

C language function finishing Daquan five (P-S)

Function Name: parsfnmFunction: Analyze file namesUsage: char * parsfnm (char * using line, struct fcb * fcbptr, int option );Program example:# Include# Include# Include# IncludeInt main (void){Char line [80];Struct fcb blk;/* Get file name */Printf

C language function finishing Daquan two (C-D)

Function Name: cabsFunction: Calculate the absolute value of a complex number.Usage: double cabs (struct complex z );Program example:# Include# IncludeInt main (void){Struct complex z;Double val;Z. x = 2.0;Z. y = 1.0;Val = cabs (z );Printf ("The

Obtain the Host IP address and Host Name

/** G ++-o gethostip. cpp*/# Include # Include # Include # Include # Include # Include # Include # Include # Include # Define MAXINTERFACES 16# Define INT int# Define CHAR char Class CIfCfg{Public:Enum IFSTATUS {UNKOWN, PROMISC, UP, RUNNING, DOWN };

Total Pages: 275 1 .... 145 146 147 148 149 .... 275 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.