Home

Beijing 飞漫 software technology MiniGUI programming Service Manual

image

Contents

1. 2 1 2 MiniGUI MiniGUI MiniGUI
2. Linux setitimer SIGALRM MiniGUI Processes mginit setitimer mginit setitimer
3. ig 23 MiniGUI V2 0 3 NMAN HGERBRBBBBmPOGHhs amp DZAAAAZAAAVVVVE T 9Z XAW w C UCOo PE S 3 1 2
4. GUI MiniGUI 159 MiniGUI V2 0 3 nman seo H samm Eri gt GDI
5. E f HWND_DESKTOP GetHosting 44 MiniGUI V2 0 3 nman ERHEKTE mes Er f LI 9 ReleaseCapture PRA
6. 08 05 30 HH MM SS B PageDown PageUp B
7. SendMessage hScrWnd SVM SELECTITEM idx bSel idx bSel WRA TRUE i SVM SHOWITEM SendMessage hScrWnd SVM SHOWITEM idx hsvi hsvi idx idx hsvi 0 SVM_CHOOSEITEM SVM_SELECTITEM SVM_SHOWITEM SendMessage hScrWnd SVM CHOOSEITEM idx hsvi hsvi idx
8. 1 Ab ZN HE XB
9. B ID ID MiniGUI 3 2 MiniGUI 3 2 1 MiniGUI MiniGUI
10. lli prin MiniGUI MiniGUI Threads MiniGUI Processes 3 1 3 1 1 Window System 3 1 Application Toolkit Window System Operating System 3 1
11. 21 4 mg samples listbox c T 21 1 include lt stdio h gt include stdlib h include stdarg h include lt string h gt include sys stat h finclude sys time h include lt sys types h gt include unistd h include pwd h include errno h include minigui common h include minigui minigui h include minigui gdi h include minigui window h include minigui control h define IDL DIR 100 d define IDL FILE 110 d define IDC PATH 120 static DLGTEMPLATE DlgDelFiles WS BORDER WS CAPTION W
12. E SVM_SETCURSEL SendMessage hScrWnd SVM SETCURSEL idx bVisible idx bVisible TRUE 350 MiniGUI V2 0 3 nman ERHEKTE SVM GETCURSEL int hilighted idx SendMessage hScrWnd SVM GETCURSEL 0 0 SVM GETCURSEL 30 2 5
13. Il MiniGUI V2 0 3 nman EH PF SENDEN cm verd Me M PM ll 1 I gms MEM RENCRRH M 1 2 RE 2 1 3 2 UNS up dau oec E d RERO Oo D D 3 15 EE E E E E E 4 MiniGUI 5 2 MiniGUI eieb oni ed emend Epor me IS be Ton PIN SERERE d ss 7 2 1 3E 2 DU En E OL ecd E Mex e n neues 7 2S CODICI E DTP 7 2 1 2 MiniGUI RI re 7 2 2 vh BmUMInIGU E oD De ei 9 2 2 1 SES DES E EEE ee a FUSE REA Pase 1 2200 0 DUBII esedangset d ead uuce E padded eb ved E E Ed e diac d 1 2 2 3 MiniGUI Processes i 2 2g ud PIENE ETE coc erbsseieb Ee EAR P RPUS Fd eR REPE EEE 2 2 95 39 A Biss fI Ne o teta sae tenta e das Munster eer RUD uud ae sue ee L
14. 64 MiniGUI V2 0 3 Feynman EMT 6 2 mg samples timeeditor c 6 1 6 2 include stdio h include lt stdlib h gt tinclude string h include lt minigui common h gt include lt minigui minigui h gt include lt minigui gdi h gt include lt minigui window h gt den minigui control h include lt minigui mgext h gt define IDC_EDIT 100 define IDC_SPINBOX 110 TrueType static PLOGFONT timefont static WNDPROC old edit proc
15. 5 2 Ee 5 2 include lt stdio h gt include lt stdlib h gt include lt minigui common h gt include lt minigui minigui h gt include minigui gdi h include lt minigui window h gt tinclude minigui control h amp EXUS WERE static DLGTEMPLATE DlgBoxInputLen 58 MiniGUI V2 0 3 Feynman ERHEKTI WS BORDER WS CAPTION WS EX NONE 120 150 400 160
16. IParam wParam SHIFT wParam IParam 2 MiniGUI Ceminigui window h typedef struct MSG HWND hwnd INE message WPARAM wParam LPARAM lParam unsigned int time ifndef _LITE_VERSION vonds pAdd endif MSG typedef MSG PMSG MSG hwnd message WPARAM wParam LPARAM
17. mgext mgext CreateWindow CTRL_GRID 37 1 CreateWindow WS_BORDER WS_VSCROLL WS_HSCROLL 37 2
18. MSG_MOUSEMOVE MSG_LBUTTONDOWN MSG_LBUTTONUP MSG RBUTTONDOWN MSG_RBUTTONUP MSG_LBUTTONDBLCLK MSG_RBUTTONDBLCLK IParam x F y 0 0 IParam
19. graphics context XOR XOR
20. button Pr labeD slider skin_head_t Skin header information structure struct skin head s char name DWORD style xx const BITMAP bmps 7 Const LOGEONT fonts xx int bk bmp index xx int nr items xx skin_item t items xx DWORD attached HN typedef struct skin head s skin head t
21. WS_BORDER WS VSCROLL WS HSCROLL LBS_NOTIFY HI LBS_SORT
22. mgext mgext CreateWindow CTRL_LISTVIEW 32 1 CreateWindow WS BORDER WS VSCROLL WS HSCROLL LVS TREEVIEW
23. typedef int PFNLVCOMPARE int nIteml int nItem2 PLVSORTDATA sortData nltem1 nitem2 sortData 366 MiniGUI V2 0 3 M JY H Feynman ERHEKTE sw colFlags
24. zn c E WANO Croot window m T frame window main window
25. 320x240 16 320x240x2 150KB 1024x768 24 2MB 13 8 2 color depth bit count bpp bits per pixel
26. CBS SPINLIST 23 3 ES welcome 054 23 3 23 4 20 o L EN 23 4 NH CBS SPINARROW TOPBOTTOM NH CBS_SPINARROW_LEFTRIGHT MiniGUI B CBS READONLY ES READONLY NH CBS_UPPERCASE ES UPPERCASE NH CBS_LOWERCASE ES LOWERCASE WB CBS_EDITBASELINE ES BA
27. CTRL_PROPSHEET 28 1 PSS_ PSS mE PSS EK A NK T BS E ERU S A SIMPLE _COMPACTTAB SCROLLABLE CreateWindow m PSS_BOTTOM 329 MiniGUI V2 0 3 NMaN SS EE ERI 28 2 28
28. BeginPaint BeginPaint MSG_PAINT E xi MSG PAINT IParam MiniGUI 157 MiniGUI V2 0 3 NMaN wwliuw 0UAAAAAAA A s ERIEK TE EndPaint EndPaint ReleaseDC GetClientDC
29. WITHTEXT hH Ho bmp cell hotspot proc rc hotspot i HJ A E add data T MiniGUI V2 0 3 Feynman ERHEKTI which X HWND ntbl NTBINFO ntb_info NTBITEMINFO ntbii RECH jmeuesgogu qi 165 9S2 S28 NTBINFO ntb_ info nr_ cells 4 neb mron w celim fn ntb infoh cell 0 ntbcinfonr ocols 0 ntb info image amp bitmapl ETR ntbl CreateWindow CTRL_NEWTOOLBAR m WS CHILD WS VISIBLE IDC CTRL NEWIOOLBAR 1 39 1024 O hWnd DWORD amp ntb info ON essc EDYO NE ME ntbii bmp cell 1
30. 186 MiniGUI V2 0 3 nman EH fF TrueType Adobe Type1 MiniGUI MiniGUI RBF VBF MiniGUI TrueType Adobe Type1 MiniGUI MiniGUl cfg MiniGUI MiniGUI
31. 34 2 34 2 1 RE SPM_SETINFO EU m HE OT SPININFO spintfo SendMessage hwndSpinBox SPM SETINFO 0 LPARAM amp spinfo spinfo SPININFO typedef struct _SPININFO int max ine min IET CUE SPININFO typedef SPININFO PSPININFO SPININFO SPS_AUTOSCROLL gt 385 MiniGUI V2 0 3 Feynman
32. MiniGUI V2 0 3 CTRL_COMBOBOX 23 1 JINAH Ph MiniGUI Fo nman EREK P PE TE Hia FEAE H BAN CreateWindow 23 1 1 CBS_SIMPLE 23 1 fo CBS_DROPDOWNLIST MiniGUI cfg bkand jpo config ctrldemo exe ctrldemo ilk ctrld
33. lt minigui gdi h gt pun UIAPI GetDC HWND hwnd HDC GUIAPI GetClientDC HWND hwnd void GUIAPI ReleaseDC HDC hdc GetDC GetClientDC DC GetDC GetClientDC ReleaseDC m GetDC GetClientDC MiniGUI HDC GUIAPI CreatePrivateDC HWND hwnd HDC GUIAPI CreatePrivateClientDC HWND hwnd HDC GUIAPI GetPriva
34. 404 MiniGUI V2 0 3 nman ERSEK PE typedef struct GRIDCELLDEPENDENCE peim F GRIDCELLS source GRIDCELLS target GRIDCELLEVALCALLBACK callback DWORD dwAddData GRIDCELLDEPENDENCE typedef int GRIDCELLEVALCALLBACK GRIDCELLS target GRIDCELLS source DWORD dwAddDat a GRIDM ADDDEPENDENCE GRIDCELLDEPENDENCE dependece SendMessage hwndGrid GRIDM ADDDEPENDENCE 0 dependence GRID ERR
35. 176 MiniGUI V2 0 3 nman ERHEKTI LoadMyBitmapSL CleanupMyBitmapSL LoadMyBitmapSL MiniGUI MiniGUI LoadBitmapEx PaintlmageEx LoadMyBltmapSL MiniGUI 15 6 NEWGAL PaintlmageEx PaintlmageFromFile PaintlmageFromMem BITMAP ExpandMyBitmap
36. 13 3 2 MiniGUI BeginPaint EndPaint lt minigui window h gt HDC GUIAPI BeginPaint HWND hWnd void GUIAPI EndPaint HWND hWnd HDC hdc MSG PAINT MSG PAINT MSG PAINT 160
37. LB SETSTRCMPFUNC 24 3 MBS NOTIFY 3e 307 MiniGUI V2 0 3 Feynman AT M MBN ERRSPACE m MBN_SELECTED M MBN CHANGED MBN_STARTMENU MBN_ENDMENU 24 4 1 24 4 23 1 23 1 mg samples menubutton c
38. TBM GETLINESIZE mE TBM_SETPAGESIZE wParam PageUp PageDown 5 TBM_GETPAGESIZE TBM_SETPOS TBM GETPOS TBM SETTICKFREQ 1 TBM_GETTICKFREQ TBM_SETTIP TBM_GETTIP dx 26 3 Em TBS NOTIFY WB TBN_CHANGE B TBN REACHMAX BANAT ER WB TBN REACHMIN 26 4
39. ScrollView ScrollView 38 2 38 2 1 IVM ADDITEM IVITEMINFO ivii SendMessage hlconView IVM ADDITEM 0 LPARAM amp ivii ivii IVITEMINFO IVITEMINFO typedef struct _IVITEMINFO int nItem PBITMAP bmp 411 Fe nman Ero MiniGUI V2 0 3 DWO YE t char label D addData KE D dwFlags IVITEMINFO 0
40. 32 3 MiniGUI src kernel sharedres c 12 3 au F _USE_MMAP dundef _USE MMAP 148 MiniGUI V2 0 3 Feynman EHI 4 define USE MMAP 1 void LoadSharedResource void ifndef _USE MMAP key t shm key void memptr int shmid endif ifndef USE MMAP if shm key get shm key 1 goto error shmid shmget shm key mgSizeRes SHM PARAM IPC CREAT TEPC EXCL if shmid 1 goto error Attach to the share memory memptr shmat shmid 0 0 if memptr char 1 goto error else memcpy memptr mgSharedRes mgSizeRes free mgSharedRes if shmctl shmid IPC RMID NULL lt O0 goto error dendif 5 g XEdR 24 if lockfd open LOCKFILE O WRONLY O CREAT O TRUNC 0644 1 goto error difdef USE MM
41. mgext mgext CreateWindow CTRL_COOLBAR 35 1 CBS_BMP_16X16 CBS_BMP_32X32 16x16 32x32 1 CBS_BMP_CUSTOM CreateWindow dwAddData CreateWindowEx CTRL COOLBAR MAKELONG item width item height CBS USEBKBMP CreateWindow spCaption CreateWindowEx CTRL COOLBAR res bk bmp 35 2
42. 203 MiniGUI V2 0 3 niman az aGiGcG3cckGGhH o i Ki blwonInIlIu OoobRb RF VAVAAAAAAa wvau ER PF 15 7 1 Line clipper BOOLTGUTAP rimneecnper Const REC Ce Ine c zx uen Ce wh Usus 5c gt IE typedef void CB LINE void context int stepx int stepy void GUIAPI LineGenerator void context int x1 int yl int x2 int y2 CB LINE cb cliprc x0 yO x1 y1 MiniGUI Cohen Sutherland LineGenerator Breshenham cb context stepx 1 stepy 0
43. LVS_UPNOTIFY LVS_UPNOTIFY 32 2 32 2 1 a XE BE NS B Lr 365 MiniGUI V2 0 3 NMAN AAAA A OEAAOOADPPQUt EH TI LVM_ADDCOLUMN LVCOLUMN p SendMessage hwndListView LVM ADDCOLUMN 0 LPARAM S amp p p LVCOLUMN LVCOLUMN typedef struct _LVCOLUMN eS int width char pszHeadText int nTextMax
44. IVM_SETITEMSIZE int width int height SendMessage hlIconView IVM SETITEMSIZE width height width height ScrollView ScrollView 412 IVM_RESETCONTENT SVM_RESETCONTENT IVM DELITEM SVM_DELITEM IVM_SETITEMDRAW SVM_SETITEMDRAW IVM_SETCONTWIDTH SVM SETCONTWIDTH IVM_SETCONTHEIGHT SVM_SETCONTHEIGHT IVM_SETITEMOPS SVM_ SETITEMOPS IVM GETMARGINS SVM_GETMARGINS
45. MiniGUI MiniGUl cfg icon5 icon6 unfold ico TVS_WITHICON TVS_ICONFORSELECT fold ico TVS SORT 4 TVS NOTIFY 31 2 31 2 1 CreateWindow dwAddData TVITEMINFO 31 4 TVITEMINFO
46. 213 o e 279 214 a E onnaa a aaa a a 280 225 E E coc 285 PPAR m gne e E E E 285 22 2 A a MENE N E EENES E EN EEE NEN Ei 286 22 2 1 ao03 oi 287 22 2 2 es 287 22 2 3 es 288 22 2 4 30 se nye 289 VPE u d Rn E 289 22 2 6 WEBB S eu Rebebee i wi epe d RR RR RR ed 289 22 2 REMAR RF A ereu era reh a PTa aE hmm ee n 289 22 2 8 3 290 22 2 9 291 22 2 10 E ERATES b eecbede tisbeerip Dem RE RA SU ea E Reese 291 223 Lu p B 291 LER DIG T 292 VENDI D 295 234 EMMMMMA 295 23 1 1 i 295 2 297 232 E nl E OO RS 297 23 2 1 i 297 29 2 2 oOoio a De DD RE RR 299 23 3 E E An Ennn ne nanana naen 299 gru 9 E E 300 DOC 1r 0 T 305 24
47. 19 1 EDO 383 234 19 1 CTRL STATIC CreateWindow 19 1 19 1 1 SS_SIMPLE SS LEFT SS CENTER SS RIGHT LJ SS LEFTNOWORDWRAP CreateWindow caption SetWindowText
48. 12 5 Lx m n void scale to window const double in x const double in y double out x double out y ftofix get x0 c deus leue sv 0 8 fixed f in x Pt ofix in x fixed FEIN wy Eorl Uam wo p fixed f p ftofix get pixel length JE Ab al lo bi s5 dz 0 5 d m el Cen nl nO H DIRU TF 1 2 3 H 151 MiniGUI V2 0 3 Feynman J KN 152 MiniGUI V2 0 3 Feynman TELS I MiniGUI m m NEWGAL GDI 153 MiniGUI V2 0 3 Feynman J KN 154 MiniGUI V2 0 3 ERIEK PF 13 GDI Graphics Device Interface GUI GDI GUI
49. MiniGUI m itofix fixtoi ftofix fixtof B fixadd fixsub fixmul fixdiv fixsqrt fixcos fixsin fixtan fixacos fixasin 150 MiniGUI V2 0 3 nman ERIEK PF B MiniGUI lt minigui fixedmath h gt 12 5
50. mg samples edit c 22 2 P Ir m Ri f 22 1 include lt stdio h gt dinclude lt stdlib h gt include minigui common h include minigui minigui h include minigui gdi h include minigui window h include minigui control h static DLGTEMPLATE DlgBoxInputChar WS BORDER WS CAPTION WS EX NONE 0 0 400 220 difdef LANG ZHCN delse Please input letters dendif or o a 0 define IDC_CHAR 100 d define IDC CHARS TO static CTRLDATA CtrlInputChar CTRAL_STATIGC WS VISIBLE S T0 10 390 198 TDC STATIC ifdef LANG ZHCN else Please input a letter dendif T RS WS VISIBLE WS TABSTOP WS BORDER ES CENTER db Wo S00 25r IDC CHAR NULL CTRL MLEDIT WS VISIBLE WS BORDER WS VSCROLL ES BASELINE ES AUTOWRAP IO eo SEA Ko IDC CHARS NULL MiniGUI V2 0 3 Feynman EET CTRL BUTTON WS TABSTOP WS_VISIBLE BS DEFPUSHBUTTON iw 30 GU 25 IDOK difdef
51. MiniGUI MiniGUI GPL GPL B Mde mg samples COPYING W Ui http www gnu org licenses licenses html MiniGUI V2 0 3 nman ERHEKTE MiniGUI MiniGUI MiniGUIExt MiniGUI V2 0 3 Feynman J KN MiniGUI V2 0 3 EPHKTE 2 MiniGUI MiniGUI MiniGUI 2 1
52. 4 3 2 6 Mi Mi NIGUI niGUI typedef struct _WNDCLASS cha DWO DWO DWO HCU Erit int DWO the class name ges spClassName internal field operation type RD opMask window style for all instances of this window class RD dwStyle extended window style for all instances of this window class RD dwExStyle cursor handle to all instances of this window class RSOR hCursor background color pixel value of all instances of this window class ausis rellene window callback procedure of all instances of this window class WinProc HWND int WPARAM LPARAM the private additional data associated with this window class RD dwAddData WNDCLASS typedef WNDCLASS PWNDCLASS 28 spClassName MiniGUI
53. T 37 5 R 37 1 mg samples gridview c 37 1 int ww 800 int wh 600 enum IDC GRIDVIEW static HWND hGVWnd static char colnames iB X X E 3kiE ii4p static char scores whig Jg 3E 4 3 int total GRIDCELLS target GRIDCELLS source DWORD dwAddData sate Gio B double value 0 GRIDCELLDATA data GRIDCELLS cells GRIDCELLDATANUMBER num memset amp data 0 sizeof data memset amp num 0 sizeof num data mask GVITEM MAINCONTENT GVITEM STYLE data content amp num data style GV TYPE NUMBER cells width 1 cells height 1 for i 0 i lt xsou urce gt width 1 d cells column source column i for je 0 J lt lt source height JEF cells row source gt row j SendMessage hGVWnd GRIDM GETCELLPROPERTY WPARAM amp cells LPARAM amp data value num number num number value num len format 1 cells row target row cells column target column SendMessage hGVWnd GRI
54. GUI mA GetMessage hMainWnd MiniGUI Processes AMA ZJ GetMessage hMainWnd MSG DispatchMessage DispatchMessage DefaultMainWinProc
55. RegisterListenFD MSG_FDEVENT MiniGUI libvcongui vcongui vcongui c RegisterListenFD pConInfo masterPty POLLIN hMainWnd 0 while pConInfo terminate amp amp GetMessage amp Msg hMainWnd DispatchMessage amp Msg UnregisterListenFD pConInfo masterPty HER Static int VCOnGUIMainWinProc HWND hWnd int message WPARAM wParam LPARAM lParam PCONINFO pConInfo pConInfo PCONINFO GetWindowAdditionalData hWnd switch message Mse FDEVENT case MSG_FDEVENT ReadMasterPty
56. 24 MiniGUI V2 0 3 nman EHE 3 2 MiniGUI 3 3 MiniGUI tatic controls X This is a simple static ESELA eb Coe EE Tar File Controls Their aeeie This is a time editor auto wrap Please choose Pressing Down Arrow Up Arrow PgDn and Palp keys when the box have input focus will change the time This is ajg Button controls This is a ce Push Button Multiple Li LESEN gi dii X Normal check box C Normal radio button ListView control i Ic x like check box File name ListBox controls normal listbox sorted listbox with LBS MULTIPLESEL style res Makefile am bkgnd ipa listbox with LBS LISEICON style Add me to the box bellow Add M 5 rZ 1 Dne initially checked item One initially not checked item 3 One initially part checked item 3 2 MiniGUI MiniGUI
57. 3 4 1 MSG NCCREATE MiniGUI IParam CreateMainWindow pCreatelnfo pCreatelnfo GetDC MSG_NCCREATE H n FP case MSG NCCREATE MEREZA abigo Qe cabo ovis 09 Register before show the window SendMessage HWND DESKTOP MSG IME REGISTER WPARAM hWnd 0 else return 1 break 3 4 2 MSG_SI ZECHANGI NG wParam
58. GetMessage DispatehMessage zi MSG Msg HWND hMainWnd MAINWINCREATE CreateInfo InitCreateInfo amp CreateInfo hMainWnd CreateMainWindow amp CreateInfo if hMainWnd HWND INVALID return 1 while GetMessage amp Msg hMainWnd TranslateMessage amp Msg DispatchMessage amp Msg GetMessage hMainWnd TranslateMessage MSG_KEYDOWN MSG KEYUP MSG_CHAR DispatchMessage GetMessage 0 MSG_QUIT GetMessage
59. LBS MULTIPLESEL 53 dirent lib 21 2 MiniGUI LBS_USEICON LBS CHECKBOX 21 3 273 MiniGUI V2 0 3 nman r X H EHE LBS AUTOCHECK LBS MULTIPLESEL FH 21 83
60. s 29 2 3 SVM_GETHSCROLLVAL SVM_GETVSCROLLVAL SVM_GETHSCROLLPAGEVAL SVM GETVSCROLLPAGEVAL SendMessage hScrWnd SVM GETHSCROLLVAL 0 0 SendMessage hScrWnd SVM GETVSCROLLVAL 0 0 SendMessage hScrWnd SVM GETHSCROLLPAGEVAL 0 0 SendMessage hScrWnd SVM GETVSCROLLPAGEVAL 0 0 SVM SETSCROLLVAL wParam IParam 0 abgum jeb NEL NE SendMessage hScrWnd SVM SETSCROLLVAL h val v val SVM SETSCROLLPAGEVAL
61. 15 8 15 7 MiniGUI Von GUTAR TIMOVE TO HADEHde AINE S ne vVondicCUTARTI Gneo HDE Hade mx aney Vota UM AEHTESReciangrless Hc hdcr Tae Or mE 0 me nE y void GUIAPI PollyLineTo HDC hdc const POINT pts int vertices weoid GUIAPTI SplinsTo HDC hdc const POLNT pts eie uA cobre De Imole Sims Sex clem om adem TE wee QUILZVETE Tagbdbgsexs USUD G Imeler ne dus GN o dim dvo GU SEND B VOrd eumnMpne leaAreo Demme Intis 209058 Sy Ine e Ine angl she ang MoveTo x y LineTo x y Rectangle x0 y0 x1 y0 PollyLineTo LineTo pts vertices 208 MiniGUI V2 0 3 nman ERHEKTE B SplineTo LineTo
62. MiniGUI LPtoDP DPtoLP valel GUIAPT Deeone HDC bdc POPINT pPt vosd GUIAPT LMPtobP QHDC hde BOINI ene m pun hdc POINT pPt x yy MiniGUI src newgdi coor c LPtoDP DPtoLP void GUIAPI LPtoDP HDC hdc POINT pPt PDC qoxeleig pdc dc HDC2PDC hdc if pdc mapmode MM TEXT i PPE gt x PEt gt x pdoe WindowOrig x pdc ViewExtent x pdc WindowExtent x pdc ViewOrig x PRE VEENPERE ye pue WindowOokig w pdc ViewExtent y pdc gt WindowExtent y pdc ViewOrig y void GUIAPI DPtoLP HDC hdc POINT pPt PDG pdc pde dc HDC2PDC hdc if pdc mapmode
63. MiniGUI GDI 13 1 MiniGUI 13 1 1 GAL GDI MiniGUI MiniGUI CGraphics Abstract Layer GAL gt GAL MiniGUI SVGALib LibGGI MiniGUI POSIX Linux Linux FrameBuffer Min
64. HT_CLIENT i MiniGUI MiniGUI wParam 4 IParam HH 91 MiniGUI V2 0 3 NMaN AU AknTrzEzEEZwWW o8ecaa ER TI 9 2 3 SetCapture ReleaseCapture
65. 1984 4 WG2 NI F4 ISO IEC JTC1 SC2 WG2 1991 Unicode Consortium 1991 10 UNICODE 2 0 6811 20902 185 MiniGUI V2 0 3 NmaN E iuiu146G E EECzEAB8AS NNASZ C ERIEK PF 11172 6400 202495 65534 UNICODE 16 UCS2 5 UTF8 ASCI 1SO8859 1 zT EAE C Qu n Linux man unicode man utf 8 UNICODE UTFS UNICODE
66. m m m MoveTo LineTo MiniGUI Windows X Window GUI Device Context DC
67. LVN_CLICKED 38 4 SetNotificationCallback LVN SELCHANGE 38 1 mg samples iconview c 38 1 define IDC ICONVIEW define IDC BT define IDC BT2 define IDC BT3 define IDC BT4 define IDC ADD define IDC DELETE Static HWND hIconView Ae ons no JJres tux png res xemacs png res gimp png nere spot pni 100 200 300 400 500 600 601 Static BITMAP myicons 12 static const char iconfiles 12 res acroread png res looknfeel png res package games png res multimedia png MiniGUI V2 0 3 Feynman EHI res realplayer png res usb png res xmms png Static const cha
68. src include MDE samples Autoconf 2 53 Automake 1 6 Red Hat 7 x Autoconf Automake configure in dnl Process this file with autoconf to produce a configure script AC PREREQ 2 13 danl AC INIT src helloworld c dn 2222 2222 dnl needed for cross compiling AC CANONICAL SYSTEM dn 2222 2222 dnl Checks for programs AC PROG MAKE SET AC PROG CC dnl samples 1 0 AM INIT AUTOMAKE samples 1 0 dn 2222 2222
69. Alpha SetRasterOperation GetRasterOperation C minigui gdi h define ROP SET define ROP AND define ROP OR ddefine ROP XOR Q9 mn o int GUIAPI GetRasterOperation HDC hdc int GUIAPI SetRasterOperation HDC hdc int rop rop ROP SET ROP AND 5 POP OR POP_XOR SetPixel LineTo Circle Rectangle FillCircle GDI FillBox FilBox FillBox
70. layer name NULL Cmax_nr_topmosts Cmax_nr_normals max nr topmosts max nr normals ServerStartup GetLayerlnfo GHANDLE GUIAPI GetLayerInfo const char layer name TEA NULL SetTopmostLayer DeleteLayer MiniGUI API Reference Manual 243 Fe nman Eri MiniGUI V2
71. 4 3 MSG INITDIALOG static int DepInfoBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam its tento emos switch message case MSG INITDIALOG lParam info struct DepInfo lParam info SetWindowAdditionalData hDlg DWORD lParam break case MSG_COMMAND info struct _DepInfo GetWindowAdditionalData hDlg switch wParam case IDOK info case TDCANCED EndDialog hDlg wParam break return DefaultDialogProc hDlg message wParam lParam 50 MiniGUI V2 0 3 nman ERHEKTI zi
72. UKTEWRAETB WS RE Static void my notif proc HWND hwnd int id int nc DWORD add data if nc BN_CLICKED SetWindowText GetDlgItem GetParent hwnd IDC PROMPT prompts id IDC LAMIA N Static int DialogBoxProc2 HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG INITDIALOG 1 aiioe 3Lp for 1 IDC LAMIAN i lt IDC SHUIJIAO 1 SetNotificationCallback GetDlgItem hDlg i my notif proc return 1 case MSG COMMAND switch wParam case FDOR ase IDCANCEL EndDialog hDlg wParam break break return DefaultDialogProc hDlg message wParam lParam int MiniGUIMain int argc const char argv l ifdef _MGRM PROCESSES JoinLayer NAME DEF LAYER button 0 0 dendif 270 MiniGUI V2 0 3 nman EXE DigYourTaste controls CtrlYourTaste DialogBoxIndirectParam amp DlgYourTaste HWND DESKTOP Dial
73. GDI DC DC MiniGUI Processes define MAX SYS REOID 0x0014 define MAX REQID 0x0020 Register user defined request handlers for server Note that user defined request id should larger than MAX SYS REQID M typedef int REQ HANDLER int cli int clifd void buff size t len BOOL GUIAPI RegisterRequestHandler int req id REQ HANDLER your handler REQ HANDLER GUIAPI GetRequestHandler int req id RegisterRequestHandler
74. ip f Linux uClinux MiniGUI MiniGUI Lite i5 fr Fi X mj x B MiniGUI Processes MiniGUI Lite E EJET Z Hi mginit MDE mginit MiniGUI Processes MiniGUI Standalone MiniGUI Threads T mginit 3 8 2 18 MiniGUI MiniGUI RETE RO CN SER TIE MiniGUI Processes V1 6 9 A MiniGUI Lite B H MiniGUI Lite MiniGUI Win32 API 342 amp Win32 MiniGUI API 2 2 MIniGUI MiniGU
75. libmgext libminigui libvcongui WA Linux MiniGUI libmgext libvcongui minigui res 1 6 9 tar gz MiniGUI mg samples 1 6 9 tar gz MiniGUI mde 1 6 9 tar gz MiniGUI 1 4 Linux H N Linux MiniGUI GNU f
76. 17 MiniGUI Lite 97 MiniGUI V2 0 3 Feynman J KN 98 MiniGUI V2 0 3 i 10 10 1 MiniGUI 16 256 Windows 10 1 1 LoadlconFromFile HICON GUIAPI LoadIconFr
77. GRIDM SETCELLPROPERTY GRIDM GETCELLPROPERTY GRIDM ADDROW GRIDM ADDCOLUMN style GV TYPE HEADER GV TYPE TEXT GV TYPE NUMBER GV TYPE SELECTION GV TYPE CHECKBOX GVS_READONLY content GRIDCELLDATATEXT GRIDCELLDATANUMBER GRIDCELLDATASELECTION GRIDCELLDATACHECKBOX typedef struct _GRIDCELLDATATEXT Le D t ARRE int len buff GRIDCELLDATATEXT typedef struct GRIDCELLDATANUMBER xx double number 2f char formaty int len format GRIDCELLDATANUMBER typedef struct GRIDCELLDATASELECTION int cur index xx YesN nNonx char selections
78. xE 15 1 UAE 15 1 m MiniGUI 205 MiniGUI V2 0 3 NMAN Y 3 a Gew EADAAAAAAAAAAAAAAAAAEAAAKK T ERIEK TE To determine whether the specified Polygon is Monotone Vertical Polygon BOOL GUIAPI PolygonIsMonotoneVertical const POINT
79. SetPenType hdc PT DOUBLE DASH SetPenDashes hdc 0 N20M40 2 SetPenCapStyle hdc PT CAP BUTT 20 SetPenWidth hdc 20 LinsEx hac 500 07 20 TOO SetBrushType hdc BT OPAQUE STIPPLED ArcEx hdc 400 100 200 300 180 64 180 64 MRAR UnloadBitmap amp bitmap 221 MiniGUI V2 0 3 nman ERMXTI fendif ADV 2DAPI Drawing norma and curves Type B Drawing xored line urves C Drawing filled area D Drawing normal bitmaps E Drawing transparent bi F Drawing alpha blending G s Memory DC and blitting Animation 15 7 mk HE Z2 B e CIS y H imr 15 14 MiniGUI MiniGUI
80. LB ADDSTRING SendMessage hwndList LB ADDSTRING 0 LPARAM string LB_INSERTSTRING SendMessage hwndList LB INSERTSTRING index LPARAM string index 4 string 4 5 0 1 LBS SORT LB INSERTSTRING index n LBS CHECKBOX LBS USEICON LISTBOXITEMINFO HICON hIconl LISTBOXITEMINFO lbii
81. 1 monochrome 0 1 4 16 8 256 16 65536 PC display adapter PC RAM ROM BIOS 172 MiniGUI V2 0 3 Fo nman Ero VGA LCD RU B dn CLCD controller PC LCD controller RAM video RAM VRAM VRAM
82. SS REALSIZEIMAGE SS_CENTERIMAGE 258 MiniGUI V2 0 3 nman ERHEKTI SS REALSIZEIMAGE SS CENTERIMAGE CreateWindow CTRL STATIC n WS CHILD SS BriTMAP WS VISIBLE TDC STATIC 280 80 50 50 hWnd DWORD GetSystemBitmap SYSBMP CHECKMARK CreateWindow CTRL_STATIC wn r WS CHILD SS ICON WS VISIBLE Xe ume 280 20 50 50 hWnd DWORD GetLargeSystemIcon IDI INFORMATION CreateWindow CTRL STATIC wn WS CHILD SS BITMAP SS REALSIZEIMAGE SS CENTERIMAGE WS VISIBLE IDC STATIC 280 140 50 50 hWnd DWORD GetSystemBitmap SYSBMP CHECKMARK CreateWindowEx dwAddData
83. TVM DELTREE