mirror of
https://github.com/VincentWei/minigui-docs.git
synced 2025-10-20 22:10:27 +08:00
add
This commit is contained in:
39
programming-guide-zh/samples/resmgr.c
Normal file
39
programming-guide-zh/samples/resmgr.c
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
** 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
|
||||
}
|
Reference in New Issue
Block a user