Windows workflow and VB environment notes

Source: Internet
Author: User

Windows workflow: Registration window class
Windows message loop is displayed in the create window.

Winmain ()

Initialization Process: including 1. Application initialization: defining window classes

2. program instance initialization: The creation window is displayed.

 

Windowsmessage-Quit windows cyclic termination

Window functions: process the input information and window management information received by the system. Each window has a window function.

External Input to Windows
To message loop

 

 

VB event-driven:

Events in VB:

Note: sequence (such as load and unload) validity (such as paint)
Shielding: shielding exists between multiple events

VB screen composition: Menu
Toolbar
Tool description
Toolbox
Form Layout
Property Window
Project Management window

The controls in the toolbox are internal controls that are fully authorized and do not need to be paid to Microsoft for copyright. Registry controls are not always authorized. Use a later version as much as possible.

Right-click the toolbox to add a tab

Label

Text (text box): Accept users' keyboard input

Frame (): You can place a single sequence and check boxes.

Option (single option box): can be put into groups, each time can only be selected at most one

Check (check box): You can select multiple

Combo: supports the input and drop-down lists.

List (list box): You can select

Horizontal/vertical scroll bars

Image and image frame: Picture (image) control with high speed and small file size: large file

File List
Line
Shape

 

Form layout: you can modify the attributes and move the initial position of the window.

Attribute adjustment method: startupposition (initial position)
Manual
Owner Center
Screen center, etc.

Height

Property Window: You can manually modify it.

A. Design-time attribute: This attribute can be modified at the design time before it is run, for example, the width of the form.

B. Running attributes: attributes that a program can only have at runtime
For example, window handle context-related handle

C. design running attributes: these attributes can be modified during design running. For example, all the attributes listed in caption are design-time attributes.

View
Object Browser: All attribute Methods green blocks are method flashes
Electricity means that the event Property Window cannot get all properties.

In alphabetical order (Start Time)
Sort by category (proficient)

Design Mode
Running Mode
Debugging mode (debugging mode)

CTRL + Click
Controls can be placed consecutively.
Shift to select Multiple widgets
Current Active Control

Uniform size in the format
Alignment
Same spacing

 

Point is an alignment tool
General options
Display grid unit: Ti
Temicro twip and device do not close 1440 twip = 1 inch
Fixed

Form Type: normal (Common Single Document Interface ),
MDI (Multi-Document Interface, SDI (Single Document Interface), dialogbox

Notepad is a single-document word PowerPoint Excel
Yes multi-document

Control Menu: In boderstyle

 

Maximum button control menu to maximize unavailability]

Showintaskbar determines whether the status bar of the main form is displayed in the taskbar.

 

 

After the resource file is written in Chinese, the program will be written in Chinese after execution.

Resource file: BMP (bitmap file)
Icon (icon) STR (string) data (data)

Main Chinese game STR (string)

Project properties:

Engineering
Engineering Properties
General

 

 

 

 

 

 

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.