Drawing
Paint Brush Hpen, use createpen to create a paint brush. The three parameters are type, width, and color.
After creation, you can use SelectObject to load the paint brush to DC. Then you can use this paint brush to draw.
Remember to use deleteobject to delete the paint brush.
Or you can use createpenindirect to create a logical paint brush. A parameter is required, which is a logpen structure.
Of course, it is okay not to use a variable to store the paint brush. For example
Hpen = SelectObject (HDC, createpen (ps_dash, 0, 0 ));
In this way, the Hpen is obtained from the paint brush previously stored in the DC. When we use
Deleteobject (SelectObject (getstockobject (black_pen )));
Delete the paint brush that we saved to DC.
Obtain the paint brush used in the current DC
Hpen = getcurrentobject (HDC, obj_pen );
The second parameter is the type to be obtained.
WindowsProgramThe design consists of 24 chapters in total, and the first five chapters have been completed by 14:48:11 on April 9, May 3, 2013. Currently, the content is relatively easy.
The plan is as follows:
May 3: Chapter 6, 7, 8
September May 4 ~ Chapter 15
September 16-May 5 ~ Chapter 23
May 6 ~ May 10 as the post-completion time
May 6, 2013 11:08:16
I have been sleeping for a day and a half. As a result, I have just seen Chapter 9 ----- subwindow control Item Page 326.
Window subcategorization window subclassing
It is to intercept the system standard message and process it by yourself.
Use getwindowlong (window handle, XXX)
And modified it.
The so-called window subclass is actually to change the relevant parameters in the window memory block. This modification only involves the window memory block of a window, so it does not affect the functions and performance of other windows belonging to the same window class. The most common thing in window subclass is to modify the window function address (lpfnwndproc) in the window memory block so that it points to a new window function, thus changing the processing method of the original window function, improve its functions.
See http://hailang19821213.blog.163.com/blog/static/30679461201024111750625/
The ninth chapter is finally finished in the afternoon.
Charts, strings, and menus !!! I will go to. The menu is the menu...
Chapter 10 describes six types of resources. Okay.
A total of 1333 pages. At present, Chapter 1, 11th pages
After reading the last few chapters, I have no idea what I'm talking about. font, graph, or something. I don't think I can use it any more... sorry, I will try again later.
May 21, 2013 17:50:24