mirror of
https://github.com/VincentWei/minigui-docs.git
synced 2025-10-19 20:13:25 +08:00
40 lines
853 B
C
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
|
|
}
|