Beispiel #1
0
__bool RegisterSpinboxControl (void)
{
    __gui_winclass_t  WndClass;

    WndClass.spClassName = CTRL_SPINBOX;
    WndClass.dwStyle     = WS_NONE|WS_MEMDEV;
    WndClass.dwExStyle   = WS_EX_NONE;
    WndClass.WinProc     = (__pGUI_WIN_CB)esKRNL_GetCallBack((__pCBK_t)_spinbox_ctrl_proc);

    return GUI_AddNewControlClass (&WndClass) == EPDK_OK;
}
Beispiel #2
0
H_WIN HomeWndCreate(H_WIN parent, gg_handler domUIConfig)
{
    H_WIN hWin;
    __gui_manwincreate_para_t createInfo;

    eLIBs_memset(&createInfo, 0, sizeof(__gui_manwincreate_para_t));

    createInfo.name             = "HomeWindow";
    createInfo.hParent          = parent;
    createInfo.hHosting         = NULL;
    createInfo.ManWindowProc    = (__pGUI_WIN_CB)esKRNL_GetCallBack((__pCBK_t)homeWndProc);
    createInfo.attr             = domUIConfig;
    hWin                        = GUI_ManWinCreate(&createInfo);

    if (NULL == hWin) {
        LogE("Create main window (%s) failed", createInfo.name);
        return NULL;
    }
#ifdef THIS_DEBUG
    LogMI("Hello main window (%s)", createInfo.name);
#endif
    return hWin;
}