摘要:
1.在资源编辑器中将Edit控件的Border设为none(当然也可以在代码中修改窗口样式)2.在重载CEdit的类中响应MSG_OCM_CTLCOLOREDIT消息,在处理函数中将背景模式设为透明,否则无法显示背景画刷填充效果3.从父窗口截取控件对应位置的图片,以此图片创建画刷作为控件的背景画刷返回4.在Edit的EN_CHANGE处理中调用Invalidate(),否则由于第一步的操作,会导致文本重叠相关代码如下// ACEdit.h#pragma once#include "ACListWnd.h"class CACEdit : public CWindowImpl 阅读全文
posted @ 2014-03-22 10:18
琼'
阅读(1161)
评论(0)
推荐(0)
摘要:
摘自MSDN,其中GetEncoderClsid 第一个参数可为L"image/bmp"L"image/jpeg"L"image/gif"L"image/tiff"L"image/png"#include #include #include using namespace Gdiplus;int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);int main() { // Initialize GDI+. GdiplusStartupIn 阅读全文
posted @ 2014-03-22 09:13
琼'
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号