
minigui学习
文章平均质量分 73
笨笨he
这个作者很懒,什么都没留下…
展开
-
Minigui学习--MiniGUI的三种运行模式
MiniGUI 针对三种运行模式分别定义了不同的宏。 (1) MiniGUI-Threads: _MGRM_THREADS (2) MiniGUI-Processes: _MGRM_PROCESSES 和_LITE_VERSION (3) MiniGUI-Standalone : _MGRM_STANDALONE 和 _LITE_VERSION 和_STAND_ALONE转载 2013-08-28 17:45:07 · 2711 阅读 · 0 评论 -
Minigui学习--窗口用到的一些函数
1.获取和设置窗口额外数据:MG_EXPORT DWORD GUIAPI GetWindowAdditionalData (HWND hWnd);/** * \fn DWORD GUIAPI GetWindowAdditionalData (HWND hWnd) * \brief Retrives the first additional data of a window. *原创 2013-09-04 14:18:34 · 1520 阅读 · 0 评论 -
Minigui学习--icon
icon类型:HICON定义在/minigui/gdi.h文件中1.创建icon/** * \fn HICON GUIAPI CreateIconEx (HDC hdc, int w, int h, \ const BYTE* AndBits, const BYTE* XorBits, int colornum, \原创 2013-09-04 15:23:52 · 949 阅读 · 0 评论 -
Minigui学习--光标
1.系统光标类型定义:在../minigui/minigui.h文件中定义#define MAX_SYSCURSORINDEX 22/* System cursor index. *//** System arrow cursor index. */#define IDC_ARROW 0/** System beam cursor index. */#de原创 2013-09-03 15:08:54 · 1459 阅读 · 0 评论 -
Minigui学习--DC
1.相关函数:MG_EXPORT HDC GUIAPI GetDC (HWND hwnd); //gets a window DC of the specified \a hwnd, and returns the handle to the DC. MiniGUI will try to return an unused DC from the internal DC pool, rath原创 2013-09-02 11:29:13 · 1398 阅读 · 0 评论 -
Minigui学习--画不同图形
1.画直线(1)将画笔移动到线的起始点:MG_EXPORT void GUIAPI MoveTo (HDC hdc, int x, int y);:moves the current pen position of the DC \a hdc to \a (x,y).The next line or other pen drawing operation will start from t原创 2013-09-02 17:47:50 · 2406 阅读 · 0 评论 -
Minigui学习---鼠标获取和坐标在不同区域转换
(1)设置鼠标的所在的Wnd:函数定义(window.h文件中定义的):MG_EXPORT HWND GUIAPI GetCapture(void); //Retrives the handle to the window (if any) that has captured the mouse.return The handle to the window that has captur原创 2013-08-30 11:17:36 · 1420 阅读 · 0 评论 -
Minigui学习--RECT
1.RECT(1)定义:在common.h文件中有如下定义:typedef struct _RECT{ /** * The x coordinate of the upper-left corner of the rectangle. */ int left; /** * The y coordinate of th原创 2013-08-29 14:43:56 · 998 阅读 · 0 评论 -
Minigui学习---字符集
(1)获取系统的字符集:const char* sys_charset = GetSysCharset (TRUE);解析:此接口在/usr/local/include/gdi.h文件中定义,原型如下:/** * \fn const char* GUIAPI GetSysCharset (BOOL wchar) * \brief Gets the current syste原创 2013-08-29 14:19:21 · 1169 阅读 · 0 评论 -
Minigui学习--绘制
DrawText原创 2013-08-29 14:44:55 · 653 阅读 · 0 评论 -
Minigui学习--MAINWINCREATE 结构体
1.介绍:hMainWnd = CreateMainWindow (&CreateInfo); 每个MiniGUI 应用程序的初始界面一般都是一个主窗口,你可以通过调用CreateMainWindow函数来创建一个主窗口,其参数是一个指向MAINWINCREATE 结构的指针,本例中就是CreateInfo,返回值为所创建主窗口的句柄。MAINWINCREATE 结构描述一个主窗口的原创 2013-08-29 11:23:10 · 1952 阅读 · 0 评论 -
Minigui学习--font
1.字体结构体定义:/** The logical font structure. */typedef struct _LOGFONT { /** The type of the logical font. */ char type [LEN_FONT_NAME + 1]; /** The family name of the logical font. */原创 2013-09-05 11:06:06 · 1465 阅读 · 0 评论