Objective
I used to like nothing to do Web pages, not afraid of you laugh, are very simple kind of static, there is a very headache is the choice of fonts,
And a lot of software in the time to do not see the font example, now learned a bit VC + +
The question is presented as follows:
Generally we have to do some kind of operation according to the records of the database changes. We are accustomed to the operation of the program in the constant query table, to determine whether there is a
Because MFC fully supports the development of database applications, most database applications use the CDatabase and CRecordset classes, and class Wizard provides a quick and easy way to use these two classes. One disadvantage is that when an
Introduction to the second part
Okay, now we're officially starting to introduce wtl!. In this section I am talking about generating a basic main window and some friendly improvements provided by WTL, such as updating the UI interface (such as the
First, the preface
The dialog box is one of the most common forms of programming with VC However, VC 6.0 on the Program runtime control layout support is not enough, when the dialog box to change the size of the dialog box to the control of the
The internationalization of software is unavoidable. A software may be used by people in many countries, such as to your software plus a variety of language menus, not only to bring a lot of convenience to users, but also to promote your software to
Before or rookie feel QQ menu to do very beautiful, think of their own program if there is that kind of menu how good.
Now that you have accumulated some knowledge, you have designed a similar menu control class. and put it out for everyone to use
Before we analyze the basic theory and basic functions and usage of the message, we will discuss the implementation of message delivery in MFC.
How MFC messages are handled and implemented
Looking at the various messages in MFC, as well as the
1. Show and hide the title bar
Method one: Using the API to implement
Hide TitleBar
LONG Lstyle =:: GetWindowLong (This->m_hwnd, Gwl_style);
:: SetWindowLong (This->m_hwnd, Gwl_style, Lstyle & ~ws_caption);
:: SetWindowPos (This->m_hwnd, NULL, 0
This example effect chart:
Code files:
Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, DIB, Stdctrls;TypeTForm1 = Class
This example effect chart:
Code files:
Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, DIB, Stdctrls;TypeTForm1 = Class
This example effect chart:
Code files:
Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, DIB, Stdctrls;TypeTForm1 = Class
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