首页 > 其他 > 详细

minigui编程基础知识

时间:2014-11-09 09:53:59      阅读:295      评论:0      收藏:0      [点我收藏+]

头文件是很好的用户与源文件之间的接口,好的头文件可以看出,具体函数的使用以及各参数的含义。

毋庸置疑,minigui作为开源软件,也做到了这一点。

使用minigui,只要熟悉了其的头文件,就再也不怕对其的了解是书本或教程上的片面的东西了。

以下摘自window.h ,示例如下:

/**
 * \def MSG_CREATE
 * \brief Indicates the window has been created, and gives you a chance to initialize your private objects.
 *
 * This messages is sent to the window after the window has been created 
 * and registered to the system. You can initialize your own objects when 
 * you receive this message, and return zero to the system in order to 
 * indicates the success of your initialization. If you return non-zero to 
 * the system after handled this message, the created window will be 
 * destroyed immediately.
 *
 * \code
 * MSG_CREATE for main windows:
 * PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;
 *
 * MSG_CREATE for controls:
 * HWND parent = (HWND)wParam;
 * DWORD add_data = (DWORD)lParam;
 * \endcode
 *
 * \param create_info The pointer to the MAINWINCREATE structure which is 
 *        passed to CreateMainWindow function.
 * \param parent The handle to the parent window of the control.
 * \param add_data The first additional data passed to CreateWindowEx function.
 *
 * \sa CreateMainWindow, CreateWindowEx, MAINWINCREATE
 */
#define MSG_CREATE          0x0060



一、minigui的各控件的风格、消息可见各控件的头文件。如static.h;

二、minigui的控件标示符,除预定义的几个外,使用中都需用户自己在创建控件时指定。

预定义的几个控件标示符可见window.h,如下:

/* Standard control IDs */
#define IDC_STATIC    0
#define IDOK          1
#define IDCANCEL      2
#define IDABORT       3
#define IDRETRY       4
#define IDIGNORE      5
#define IDYES         6
#define IDNO          7


minigui编程基础知识

原文:http://blog.csdn.net/yulongzhao/article/details/40947349

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!