Description: 半透明对话框的实现
① 创建一个与当前显示设备环境相兼容的位图对象
② 创建一个与当前显示设备环境相兼容的内存设备环境
③ 将位图对象选入到内存设备环境中
④ 调用 BitBlt( ) 函数将显示设备环境中的图像拷贝到内存设备环境中来
⑤ 对内存设备环境中的位图进行逐点亮度处理
⑥ 在 OnPaint( ) 函数中将已处理的位图通过 BitBlt( ) 函数拷贝回显示设备环境
⑦ 删除掉选入到内存设备环境中的位图对象以及设备环境对象
-① translucent dialog to achieve with the current display device to create a compatible environment to create a bitmap object ② environment with the current display device compatible memory device context ③ Select the bitmap object into the memory device context ④ call BitBlt ( ) function will display the images copied to the environment in the memory device context to ⑤ of the memory device context bitmap-by-point brightness processing ⑥ in the OnPaint () function will be processed by the bitmap BitBlt () function to copy back ⑦ removed the display device selected into the environment to the memory device context bitmap device context object and the object Platform: |
Size: 3603456 |
Author:wangzhen |
Hits: