emwin的text
2021-02-03 12:16
标签:图片 ext dia 频率 base lse creat buffer log //频率显示 当用 TEXT_SetText(frequency, frequency_buffer); 的时候出现文字重叠,考虑用 TEXT_SetText(WM_GetDialogItem(hWinBase, ID_TEXT_0), frequency_buffer); emwin的text 标签:图片 ext dia 频率 base lse creat buffer log 原文地址:https://www.cnblogs.com/ys77/p/11507501.html
TEXT_Handle frequency = TEXT_CreateEx(x, y, xSize, ySize, hWinBase, WM_CF_SHOW, TEXT_CF_TOP|TEXT_CF_VCENTER, ID_TEXT_0, "");
TEXT_SetFont(frequency, GUI_FONT_D24X32);
if(strlen(frequency_buffer)==0){
TEXT_SetText(frequency, "28.5");
}else {
TEXT_SetText(WM_GetDialogItem(hWinBase, ID_TEXT_0), frequency_buffer);
}
文字就不会重叠
上一篇:win32创建工具栏的自定义图标
下一篇:C# 向上取整数