使用数字公共对话框

LeadTools DigitalPaint提供了许多用于显示对话框的功能。数字绘制通用对话框提供了一种更轻松的输入或更改绘画设置的方法。显示对话框的功能是:

l_pntdlgbrush

l_pntdlgfill

l_pntdlgshape

l_pntdlgregion

l_pntdlgtext

下面的示例显示了使用数字公共对话框的使用。

//此示例将显示刷子公共对话框l_tchar * g_ppsztouchimage [] = {text(“图像0”), 文本(“图像1”), 文本(“图像2”), 文本(“图像3”), 文本(“图片4”)};paintdlgbrushinfo g_dlgbrushinfo;l_void Brushdlgtest(hwnd hwnd,l_bool fusedef){如果(fusedef == true){g_dlgbrushinfo.dwflags = paint_dlg_brush_initusedefault |paint_dlg_brush_showall;}别的{g_dlgbrushinfo.nsize =大小(paintdlgbrushinfo);g_dlgbrushinfo.dwflags = paint_dlg_brush_showtouchcontent |paint_dlg_brush_showtouchcolor |paint_dlg_brush_showtouchimage |paint_dlg_brush_showdiameter |paint_dlg_brush_showhardness |paint_dlg_brush_showspacing |paint_dlg_brush_showopacity |paint_dlg_brush_showreset;paint_dlg_brush_showdefault;g_dlgbrushinfo.psztitle = text(“铅刷共同对话”);g_dlgbrushinfo.ncontentstype = paint_touch_contents_color;g_dlgbrushinfo.crcolor = rgb(255,0,0);g_dlgbrushinfo.ppsztouchimage = g_ppsztouchimage;g_dlgbrushinfo.utouchimagecount = 5;g_dlgbrushinfo.nactivetouchimageitem = 1;g_dlgbrushinfo.crtransparentcolor = rgb(0,0,0);g_dlgbrushinfo.ndiameter = 15;g_dlgbrushinfo.nhardnessvalue = 75;g_dlgbrushinfo.nspacing = 10;g_dlgbrushinfo.no​​pacity = 10;}l_pntdlgbrush(hwnd,&g_dlgbrushinfo);返回;}

如示例所示,对话框使程序员具有显示或隐藏每个对话框控件的灵活性。这使程序员可以自由显示所需的功能。

LeadTools数字油漆C API帮助
188金宝搏的网址客服|支持|联系我们|知识产权通知
©1991-2021Lead Technologies,Inc。版权所有。