>_<:just add previous two ways to achieve this new result // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__A9DB…
>_<:The same with previous introduction. In the InitInstance fanction make a little change: >_<:Yes just add another picture "dra.bmp" and give the handle to dra.And then call function MyPaint(...) hdc=GetDC(hWnd); mdc=CreateCompatib…
>_<:picture resource >_<:If you master the ways of mapping picture,then this problem is not problem!Just using your head think some logical method. >_<:Here,I use a array save where and whith picture should show.For example:use array map…
>_<:this is the first using mapping. >_<:There will be introducing how to do: First load bitmap picture return handle give hbmp, as following: hbmp=(HBITMAP)LoadImage(NULL,"bg.bmp",IMAGE_BITMAP,600,450,LR_LOADFROMFILE); there "b…
>_<:Just the minimum Win32 frame don't have any other special function. //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by FE.RC // #define IDR_MAINFRAME 128 #define IDD_FE_DIALOG 102 #define IDD_ABOUTBOX 103 #define I…
>_<:The last time,we learned how to use timer to make the picture run and change show,but sometimes the time may have a little change,for example when you move the window or do other things the frequency may be effected.And now we will talk about ho…
>_<:compared with the previous article,this one only adds key-message listener. >_<:up down left right control the roal movement. LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT…
>_<:Here introduce a simple game: >_<:resource >_<:only can push a box and finally arrive the gate. #include <windows.h> // C 运行时头文件 #include <stdlib.h> #include <cstdio> #include <malloc.h> #include <memory.h&…
>_<:Compared with previous talk,there will be taking about how to create an accelerated speed.Only a little change in the MyPaint(...) function. >_<:resource >_<:code #include <windows.h> // C 运行时头文件 #include <stdlib.h> #incl…
>_<:Only a little change in the function of MyPaint(...),besides the initial value have some changes. >_<:resource >_<:code: #include <windows.h> // C 运行时头文件 #include <stdlib.h> #include <cstdio> #include <malloc.…
>_<:introduce the functions of define\create\use pen and brush to draw all kinds of line and some graphs. >_<!following 2 files are the same with the previous and file main.cpp has some changes. //{{NO_DEPENDENCIES}} // Microsoft Visual C++ ge…
>_<:use MOUSE_MOVE message refresh the position information. >_<:use LOWORD(lParam) get position x and use HIWORD(lParam) get position y //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by FE.RC // #define IDR_MAIN…
>_<:first build some points put in poly1[],poly2[] and poly3[] in the function of InitInstance(...) >_<:then in the function MyDraw() use PolylineTo(...)\Polyline(...)\Polygon(...) draw diferent line and use PolyBezierTo(...)\PolyBezier(...)…
>_<:there in the MyPaint(...) function respectively use Ellipse(...) draw ellipse, use RoundRect(...) draw rectangle whose angle is round, use Pie(...) draw sector also named fan shap, use Chord(...) draw arch also named bow shaped. >_<:the s…
>_<:Previous part we talk about how to map a transparent picture, and this time we will solve the problem how to change a picture's transparency. >_<:Here my method is reading the picture's information and change its RGB or add another picture…
>_<:This time we will study a new way to operate your picture.That is running your picture by give it a timer-message. >_<:Firstly,you should use the function SetTimer(hWnd,1,50,NULL) to create and set a timer (here "1" means the tim…
>_<:Here are the template of mini-MFC include: CPen,CBrush,Front,Paint Line and some other graph. OnPaint message,OnLeftButtonDown message,you can through it know more Hello.h #include<afxwin.h> class CMyApp:public CWinApp { public: virtual BO…
Requires Unity 2018.2.6 or higher.The first battle royale game starter kit on Asset Store, all system are based on UnitZ UNET but has been modified with many additional features and improvement in purpose of making last man standing game with explora…