Files
minigui-docs/programming-guide/samples/resmgr.c
Vincent Wei 43a0e69c33 tune format
2019-10-29 09:56:35 +08:00

40 lines
853 B
C

/*
** resmgr.c: Sample program for mGNCS Programming Guide
** Create main window by resource managerment.
**
** Copyright (C) 2009 ~ 2019 FMSoft Technologies.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <minigui/common.h>
#include <minigui/minigui.h>
#include <minigui/gdi.h>
#include <minigui/window.h>
#include <mgncs/mgncs.h>
#include "resource.h"
#include "ncs-windows.h"
static NCS_EVENT_HANDLER_INFO mainwnd_Mainwnd1_handlers[] = {
{-1, NULL}
};
NCS_WND_EXPORT mMainWnd* ntCreateMainwnd1Ex(HPACKAGE package, HWND hParent, HICON h_icon, HMENU h_menu, DWORD user_data)
{
// START_OF_UIWINDOW
return ncsCreateMainWindowIndirectFromID(package,
ID_MAINWND1,
hParent,
h_icon,
h_menu,
mainwnd_Mainwnd1_handlers,
NULL,
user_data);
// END_OF_UIWINDOW
}