Please download to http://download.csdn.net/user/feng
Graphic Processing DemonstrationProgramI thought that if I can display the interface effects similar to the Vista transparent window, it may be of greater help to developers or artists. The existing graphic processing class already supports these channels and color operation functions. You only need to change the refresh mechanism of the Main Window and add some operations on the background of the main window.
As a result, I refreshed the image operation dialog box, added the background operation dialog box, and modified the refresh mechanism of the main window.
Main Window style settings
DWORD dwexstyle = getwindowlong (m_hwnd, gwl_exstyle );
If (dwexstyle & 0x80000 )! = 0x80000)
Setwindowlong (m_hwnd, gwl_exstyle, dwexstyle ^ 0 x80000 );
Call the updatelayeredwindow function in user32.dll to regularly refresh the main window.
An alternative interface editor is complete. With this editor, the artist can view the effects of the main interface in advance, and understand the efficiency and results of the image display in the program, facilitating the communication in game production, it provides a way to communicate with each other. Haha, no matter what you write, no one cares.
The following are some tips
Transparent interface Implementation 1
Make a 32-bit background image for the game, such as a.png. Select the image and change the index of the image position to the top left. In the background Setting dialog box, set the window size to the same as the image size. A window similar to Yahoo widget appears.
Transparent interface implementation 2
Create an 8-bit channel image, such as bk.bmp. Select the channel, change the image position index to the top left, and select whether the background checkbox is displayed as true. In the background Settings dialog box, set the window size to be the same as the image size and set the background color. Well, if the image is well done and the color is chosen properly, if some foreground images are matched, the interface is also cool.
Transparent interface Implementation 3
Create multiple 8-bit channel diagrams, each of which is placed in different places on the background, and implement method 2.
For other tips, feel free to contact us.