Home

Beijing 飞漫 software technology MiniGUI programming Service Manual1

image

Contents

1. GUI MiniGUI V2 0 4 ss nman mo GDI
2. 320x240 16 320x240x2 150KB 1024x768 24 2 13
3. i i RER
4. 3 2 4 DestroyMainWindow hWnd MSG_DESTROY MSG_CLOSE PostQuitMessage case MSG CLOSE DestroyMainWindow hwnd MSG QUIT PostQuitMessage hWnd return 0 DetroyMainWindow
5. m m m MoveTo LineTo MiniGUI Windows X Window GUI Device Context DC
6. xViewport xWindow xWinOrg xViewExt xWinExt xViewOrg yViewport yWindow yWinOrg yViewExt yWinExt yViewOrg xViewport yViewPort X y f xWindow yWindow 1148 m Cyr A HIR P x 8 y f 165 MiniGUI V2 0 4 12 u RFk III EZZ TF m xWinOrg yWinOrg x y xViewOrg yViewOrg Xx y xWinExt yWinExt x y xViewExt yViewExt TUE x y yH r xWinOrg yWinOrg
7. m MiniGUI 160 graphics context 5 XOR XOR
8. hy FH ru A 187 MiniGUI V2 0 4 nman TrueType Adobe Type1 Ax MiniGUI MiniGUI RBF VBF MiniGUI TrueType Adobe Type1 MiniGUI MiniGUl cfg MiniGUI
9. mgext mgext k CreateWindow CTRL_GRID 37 1 CreateWindow WS_BORDER
10. II MiniGUI V2 0 4 ee nman 68846 fr E OR ON Re lI AR a E E nn ua 1 T iu TPRR E 1 nie O E s agua u u u uu uu u u N u u Nu u u Nu N u asss 2 1 3 LU EE 2 s Ps S s D 3 1 5 dp 4 MiniGUI 5 2 MiniGUI T CRIMEN 7 a nee en neu a 7 2 1 1 SOEUR ZR es bh Ice Eua ge eiie Yers s ed 7 2 1 2 MiniGUI WJ hjieif g3K 7 2 2 MiniGUI RM 9 3 ee 11 2 m 0 a6 MEMO 11 2 2 3 MiniGUI Processes I PAARE I 11 2 2 4 BUR mos BEL oeste deer er emn dae diro hebetes tcr ees 1
11. LBS_NOTIFY LBS SORT LBS NOTIFY LBS SORT WS VSCROLL WS BORDER 21 2 21 2 1 SendMessage 0 0 hwndList
12. lt minigui gdi h gt HDC GUIAPI 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
13. 0 100 SCROLLINFO si si nMax 100 si nMin 0 10 nMax nMin si nPos 0 nMin nMax SetScrollInfo hWnd Bar amp si bRedraw Bar SB VERT S 8 2 un ZM SetScrollRange 5 bRedraw fun jy Y an 78 B HORZ nMin nMax g
14. MiniGUI P MiniGUI 55 MiniGUI V2 0 4 pj ia n ERMMEKTE 5 1 MiniGUI K 5 1 MiniGUI
15. 16 24 16 6 5 65536 1 15 32768 16 24 13 8 3 MiniGUI MYBITMAP lt minigui gdi h gt ifdef USE NEWGAL ddefine BMP T
16. MiniGUI MiniGUI Windows X Window MiniGUI
17. MSG HITTEST MSG NCHITTEST MiniGUI MSG HITTEST wParam x IParam y MiniGUI MSG_HITTEST HT_CLIENT MiniGUI MiniGUI wParam IParam
18. lt minigui gdi h gt HDC GUIAPI CreateCompatibleDC HDC hdc void GUIAPI DeleteCompatibleDC HDC hdc 13 3 5 MiniGUI DC MiniGUI HDC SCREEN 13 4 13 4 1 x H y MiniGUI
19. 19 1 1 SS_SIMPLE SS LEFT SS CENTER SS RIGHT SS LEFTNOWORDWRAP CreateWindow caption SetWindowText SS SIMPLE SS_LEFT SS_CENTER SS RIGHT SS_LEFTNOWORDWRAP TAB CreateWindow CTRL STATIC 263 MiniGUI V2 0 4 nman Gif i Sta simple
20. 27 5 27 1 27 4 mg samples newtoolbar c 27 1 Hien stdio h ine ae stdlib h 333 MiniGUI V2 0 4 nman include lt string h gt include minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h define IDC NTB LEFT 100 define IDC NTB RIGHT 110 define IDC NTB UP 120 gard mt EU statiei RHC reCirele e GO GO ago 500 Static void my notif proc HWND hwnd int id int nc DWORD add data
21. m MiniGUI Processes m m LIT s MiniGUI V2 0 x cli request MiniGUI V2 0 x send reply 232 MiniGUI V2 0 4 nman 68246 fr GDI
22. MiniGUI B K Windows MiniGUI 6 1 6 1
23. 5 4 MiniGUI 5 2 5 2 GetNotificationCallback 5 a MiniGUI 1 2 6 SetNotificationCallback Uu NotifyParentEx 61 MiniGUI V2 0 phan AEGEA V2 0 4 ERHCE 62 MiniGUI V2 0 4 ee nman 6 6 1 RegisterWindowClass UnregisterWindowClass 3 2 6 6 2
24. MiniGUI gt 32 MiniGUI IParam wParam SHIFT wP
25. SendMessage hScrWnd SVM SELECTITEM idx bSel j idx bSel TRUE 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 idx hsvi 0 30 2 6 SVM_ADDITEM SVM_DELITEM MSG FREEZE
26. MiniGUI ISO8859 x GB2312 GBK GB18030 BIG5 EUCKR Shift JIS EUCJP MiniGUI UNICODE UTF 8 fll UTF 16 MiniGUI MiniGUI 14 2 IR
27. NTBS_TEXTRIGHT NTBS_WITHTEXT 27 1 NTBS DRAWSTATES NTBS_DRAWSEPARATOR NTBS TEXTRIGHT IT MiniGUI V2 0 4 i gt 9 2 L 9N8S7Y O 27 3 27 3 27 3 1
28. 23 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 FAGE a s ign Only NM ON EEEEEEEEEEEEEEEXEEAAAA ik f H 1 R pide ERU E ER PEDE l F BUR m W Croot window m E
29. SVM_SETCURSEL SendMessage hScrWnd SVM SETCURSEL idx bVisible idx bVisible TRUE 358 MiniGUI V2 0 4 nman SVM GETCURSEL int hilighted idx SendMessage hScrWnd SVM GETCURSEL O0 0 SVM GETCURSEL 30 2 5 c gt H
30. E BS_MULTLINE CreateWindow CTRL BUTTON Push Button 269 MiniGUI V2 0 4 nman EE EEEEEOEOEOEEEB5EEED AOBP ee WS CHILD BS PUSHBUTTON BS CHECKED WS VISIBLE IDC BUTTON 207 509 amac ODE CreateWindow CTRL_BUTTON Multiple Lines Push Button WS_CHILD BS_PUSHBUTTON BS_MULTLINE WS_VISIBLE IDC BUTTON 1 100 10 80 40 hWnd 0 20 1 BS MULTILINE Push Button Multiple Lines Push Button 20 4 BS BITMAP BS ICON Cr
31. 80 MiniGUI V2 0 4 nman SB THUMBTRACK wParam SB_THUMBTRACK IParam IParam SB THUMBTRACK SetScrollPos SB THUMBTRACK SB_THUMBPOSITION SB_THUMBTRACK SB_THUMBTRACK SB_THUMBTRACK
32. samples samples mkdir p minigui samples MiniGUI MDE HOME minigui minigui libminigui 2 0 x minigui mde 2 0 x samples src helloworld helloworld c samples src mde 2 0 x configure in src include En Bm MDE samples MiniGUI V2 0 4 nman Autoconf 2 53 Automake 1 6 Red Ha
33. n n m3 FRI 5 2 fH TE S PF SCHLfGS Hinclude stdio h Hinclude stdlib h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h static DLGTEMPLATE DlgBoxInputLen 58 MiniGUI V2 0 4 nman WS BORDER WS CAPTION WS EX NONE 120 150 400 160 Os Or 4 NULL 0 bg define IDC SIZE MM 100 define IDC SIZE INCH 110 4 al SE ce GUESS eT MEE CR WS VISIBLE SS SIMPLE i90 900 16 nux v 0 CTRL EDIT WS VISIBLE WS TABSTOP WS BORDER i0 AQ 900 24 IDC SIZE MM NULL CTRL STATIC WS VISIBLE SS SIMPLE 10 Tor 390 18 IDC SIZE INCH PiS 0 00 SEPU
34. GetBrushType SetBrushType SetBrushlnfo void GUIAPI SetBrushInfo HDC hdc const BITMAP tile const STIPPLE stipple MiniGUI BITMAP STIPPLE 1 0 BT_OPAQUE STIPPLEDO BT_STIPPLED STIPPLE Se int width int height EEC Size tt Sirep const unsigned char bits STIPPLE 221 MiniGUI V2 0 4 ia u sn u const unsigned char stipple bits Nx81Nx42Nx24NX18NVX18NX24NX42N
35. 53 define LISTEN SOCKET var tmp mysocket prawie diie laserem ely BOOL listen_socket HWND hwnd C L ie m gerv ligesn Trewin SOCK 0 return FALSE return RegisterListenFD fd POLL IN hwnd NULL hwnd MSG FDEVENT int MyWndProc HWND hwnd int message WPARAM wParam LPARAM lParam switch message case MSG_FDEVENT if LOWORD wParam listen fd pid t pid uid t uid mteconmu Ed conn fd serv accept listen fd amp pid amp uid Aur leama s 0 4 RegisterListenFD conn fd POLL IN hwnd NULL else int fd LOWORD wParam 235 MiniGUI V2 0 4 nman Gig fh Soci cada fo E Soc wr ets Ec break FF FPF
36. DestroyMainWindow m MSG_DESTROY case MSG DESTROY DestroyIcon icon1 DestroyIcon icon2 DestroyAllControls hWnd return B MSG CLOSE DestroyMainWindow MainWindowCleanup case MSG CLOSE DestroyMainWindow hWnd MainWindowClean
37. CTRL_COMBOBOX CreateWindow 23 1 23 1 1 CBS_SIMPLE E 23 1 fo MiniGUI cfg bkand jpo config ctrldemo exe ctrldemo ilk ctrldemo pdb 23 1 D IEH HAA H E XKt CBS_DROPDOWNLIST E j dis EE 23 2
38. 8 4 MSG VSCROLL fI MSG HSCROLL MSG VSCROLL MSG HSCROLL wParam lParam IParam 79 MiniGUI V2 0 4 NMOAN uC q AAAA A APApEemI iykui zz wParam wParam SB RX scroll bar RIR 8 1 MiniGUI K 8 1 MiniGUI VL SB LINEUP shoe B qu LW 3 1 SB LINEDOWN R zii E EC ACTU F i 3 1 3X SB LINELEFT 4 W SB LINERIGHT
39. typedef int PFNLVCOMPARE int 1 int nlItem2 PLVSORTDATA sortData nltem1 nitem2 sortData 374 MiniGUI V2 0 4 ss r rr rss nman EZEK TF colFlags LVCF_LEFTALIGN LVCF_RIGHTALIGN LVCF_CENTERALIGN
40. T 8 1 IL ETE EET D one line up contents f of window Click here to scroll go down one page or one screenful up Drag thumb to go to approximate location Click here to scroll one page or one screenful down Click here to scroll one line down contents of window go up 8 1
41. 31 4 P 31 1 mg samples treeview c 31 1 define IDC TREEVIEW 100 define CHAPTER NUM 5 Static const char chapter En H H n 369 MiniGUI V2 0 4 nman m static const char section ba static int BookProc HWND hDlg int message switch message case MSG_INITDIALOG TVITEMINFO tvlItemInfo int item int i j for ro 05 4 x CHAPTER NUM i tvItemInfo text char chapter il item SendMessag
42. case MSG_SIZECHANGED RECT rcClient RECT lPraram eel ene Sree c sel sea Sei WB rcClient bottom rcClient top X HEIGHT return 0 MSG CSIZECHANGED wParam lParam 3 4 4 MSG CREATE MiniGUI 3 4 5 MSG_FONTCHANGING SetWindowFont
43. Linux man unicode man utf 8 UNICODE UTFS UNICODE UNICODE GB18030 UNICODE GB18030 GB2312 GBK FERRA mM UNICODE Hf UNICODE X 7 38 JH PE Be E RAR DEDE ERFT RRAIN IH FT RN X 2 WF 85 UNICODE MiniGUI UNICODE MiniGUI
44. ENTER H 4 2 MiniGUI C minigui window h H TAB 38 Jj i fb gt tvpodef struct char class name lf control class DWORD dwStyle Uc ont ol style dart Pes Wen Vy deg control position in dialog arae id control identifier const char caption control caption DWORD dwAddData additional data DWORD dwExStyle control extended style CTRLDATA typedef CTRLDATA PCTRLDATA typedef struct DWORD dwStyle dialog box style DWORD dwExStyle dialog box extended style int Wes VES deg dialog box position const char caption dialog box caption HICON hicon dialog box icon HMENU hMenu dialog box menu int controlnr number of controls 47 human MiniGUI V2 0 4 PCTRLDATA ionis S DWORD dwAddData addtional data must be zero DLGTEMPLATE
45. switch message case MSG_COMMAND int id LOWORD wParam int nc HIWORD wParam if id ID_MYEDIT amp amp nc EN_CHANGE ID_MYEDIT break m MiniGUI 1 2 6 SetNotificationCallback 5 2
46. 11 2 10 RAME skin item t style SI TYPE ROTSLIDER type data si rotslider t 131 MiniGUI V2 0 4 NMOAN PEOEEEE E8 eEcHO SERR9 O PEO eessinsisn Rotation slider item info structure typedef struct si rotslider s int radius xx mtestamtedegi xx nme i e m T3BIARBE int cur pos sales s int thumb bmp index m SI ROTSLIDER_CW m SI ROTSLIDER_ANTICW m SI_ROTSLIDER_STATIC skin get slider info skin set slider info skin scale slide pos 11
47. MSG_PAINT GetDC GetClientDC 13 2 2 MSG_PAINT MSG_PAINT MiniGUI MSG_PAINT BeginPaint ur bj H EndPaint GDI Z MSG_PAINT BeginPaint GetClientDC
48. BS_PUSHBUTTON BS DEFPUSHBUTTON BS DEFPUSHBUTTON DEF BS_PUSHBUTTON BS DEFPUSHBUTTON BS DEFPUSHBUTTON ENTER BS DEFPUSHBUTTON MSG_COMMAND AI BN CLICKED
49. General Flood Filling generator typedef BOOL CB EQUAL PIXEL void context int x int y 59 CE PEOOD 151 ore cxexaeeste ibm cs abs e 92 5 chus wv n HOOBNNGUUIAEIERIOcodPp3issGenematora onid dcontecscteconste ion eren MES em Ey CB EQUAL PIXEL cb equal pixel CB FLOOD FILL cb flood fill cb equal pixel context cb_flood_f x1 y x2 y 209 MiniGUI V2 0 4 nman ERBAK M 15 7 8 t MiniGUI M MiniGUI FloodFill Csrc newgdi flood c Sat evo cd tlcodg i M araw him
50. 24 1 D 1 bmp ent directory Y ctridemo Makefile Makefile in resource h ctrls h bkand ipg Files in the current directory Y Makefile am 24 1 KRHA CAEXILADE SEGURA B AR TEK CTRL_MENUBUTTON CreateWindow 24 1 WS CHILD WS VISIBLE MBS SORT MBS SORT MBS_LEFTARROW MBS_NOBUTTON MBS ALIGNLEFT MBS_ALIGNRIGHT MBS ALIGNCENTER 313 MiniGUI
51. 10 MSG KILLFOCUS MSG SETFOCUS GetFocusChild define GetFocus GetFocusChild HWND GUIAPI GetFocusChild HWND hWnd 1 SetFocusChild define SetFocus SetFocusChild HWND GUIAPI SetFocusChild HWND hWnd 9 1 6 9 1 mg samples simplekey c
52. DC Es MiniGUI MiniGUI Windows BMP GIF JPEG PNG libjpeg libpng 13 8 5 MiniGUI FillBoxWithBitmap FillBoxWithBitmapPart FillBoxWithBitmap FillBoxWithBitmapPart void GUIAPI FillBoxWithBitmap HDC hdc int x int y int w int h PBITMAP pBitmap void GUIAPI FillBoxWithBitmapPart HDC hdc int x int y int w int h irt b ei io EIER 13 1
53. MSG_CREATE MSG_INITDIALOG EndDialog D s x 74 MiniGUI CreateMainWindowlIndirect C lt minigui window h gt HWND GUIAPI CreateMainWindowIndirect PDLGTEMPLATE pDlgTemplate HWND hOwner WNDPROC WndProc BOOL GUIAPI DestroyMainWindowIndirect HWND hMainWin N A CreateMainWindowlndirect DialogBoxlndirectParam m CreateMainWindowlndirect Dia
54. MiniGUI 16 256 Windows 10 1 1 LoadlconFromFile HICON GUIAPI LoadIconFromFile HDC hdc const char filename int which m hdc m filename m which LoadlconFromFile Windows ico 16 256 Windows which LoadlconFromFile 0 1 LoadlconFromFile Createlcon
55. 15 13 1 MiniGUI m 15 3 m PT SOLID m PT ON SetPenDashes m PT DOUBLE DASH BT SOLID HJ BT STIPPLED E EE NUN 15 3 B
56. ShowC HideCaret E MSG_PAINT HideCaret aret MSG_PAINT BeginPaint EndPaint 10 3 3 GetCaretPos SetCaretPos BOOL GUIAPI GetCaretPos BOOL GUIAPI SetCaretPos GetCaretPos SetCaretPos E HWND hWnd HWND hWnd int x PPOINT pPt 10 3 4 x y
57. MiniGUI E T E SLEDIT Fo nman CTRL_SLEDIT MiniGUI m TEXTEDIT CTRL_TEXTEDIT E CTRL_MLEDIT CTRL_MEDIT 1 Simple edit box with fixed font
58. define MGUI NR KEYS 255 define NR_KEYS 128 define SCANCODE_USER NR_KEYS 1 define SCANCODE_ESCAPE p define SCANCODE 1 define SCANCO define SCANCO define SCANCO define SCANCO define SCANCO define SCANCO define SCANCODE 8 define SCANCO define SCANCO 5 5 5 el 15 f 5 I 5 O Ui amp Q N lo B v 0 O Ul i Q N ddefine SCANCODE MINUS 12 define SCANCODE EQUAL abs MiniGUI V2 0 4 iq T s ss sr define SCANCODE BACKSPACE 14 ddefine SCANCODE TAB 15 9 1 2 MSG KEYDOWN MGS SYSKEYDOWN MSG_KEYUP MGS_SYSKEYUP MSG_KEYDOWN MSG SYSKEYDOWN MSG KEYUP MSG_SYSKEYUP 8 IR MiniGUI ALT
59. SB_THUMBPOSITION 8 5 8 1 mg samples scrollbar c 8 1 kinciudei stdiokh SS include lt minigui common h gt include lt minigui minigui h gt include lt minigui gdi h gt include lt minigui window h gt static char strLine digne urhis is ehe line rn Thiis Jes tehe srda line urthe is the dth line Ino ehe Steh linen u ENS e E ry W S Minh Te nes i riyman a ehe SIE p mn Mic atc mc Mme theme rcm ee gto line nn urhis Te py er 2 il uthis ke p en rapip me Upate Oil MiTo pre ili me mun This is the 17th line Static int ScrollWinProc HWND hWnd int message WPARAM wParam LPARAM lParam
60. m itofix fixtoi ftofix fixtof B fixadd fixsub fixmul fixsqrt 152 MiniGUI V2 0 4 ee nman 68246 fr E T8 fixcos fixtan fixacos fixasin MiniGUI minigui fixedmath h 12 5
61. spinbox o monthcalendar o treeview o listview o coolbar o timeedit o combobox newtoolbar o F 23 2 303 MiniGUI V2 0 4 NMUN PP ERZEK TF CreateWindow CreateWindow dwAddData hwnd4 CreateWindow CTRL COMBOBOX Nome WS VISIBLE CBS SIMPLE CBS SORT WS TABSTOP IDC BOX4 IO 3600 380 M parent 100 dwAddData 100 100 CBS SPINLIST 23 3 welcome 054 23 3
62. MiniGUI 15 4 m PT CAP BUTT m CAP ROUND IN MiniGUI V2 0 4 nman WB CAP PROJECTING ma 15 4 E E 15 5 PT JOIN MIT
63. 1x fu 4 E 373 MiniGUI V2 0 4 nman BEET NIB BG BZBGBLIIIBBBI ILIZIZIZ ZILINNnHSiiiuitcC C SUUS LVM_ADDCOLUMN LVCOLUMN p SendMessage hwndListView LVM ADDCOLUMN 0 LPARAM amp D p LVCOLUMN LVCOLUMN typedef struct LVCOLUMN int nCols int width char pszHeadText int nTextMax DWORD image PFNLVCOMPARE pfnCompare
64. 32 5 R 32 1 mg samples listview c 32 1 define IDC LISTVIEW ddefine IDC CTRL1 define IDC CTRL2 383 MiniGUI V2 0 4 nman EHI ddefine SUB NUM B Statuicrcchar eepe ironiis ha define COL NR TABLESIZE caption 1 static char classes pa typedef struct SCORE 1 2 3 JE char name int scr SUB NUM SCORE static SCORE scores 4Hj 81 96 75 23 98 62 84 Lr v9 88 89 1 79 88 89 pa define SCORE_NUM TABLESIZE scores static GHANDLE add class item HWND hlist PLVITEM lvItem GHANDLE classent LVSUBITEM subdata GHANDLE item SendMessage hlist LVM ADDITEM classent LPARAM IlvItem subdata nItem lvltem nItem subdata subItem 0 subdata pszText classes l1vItem nItem subdata nTextColor 0 subdata flags 0 subdata image 0 SendMessage hlist LVM SETSUBITEM item LPARAM amp su
65. Windows Windows Windows X Window Widget Widget GUI
66. strncmp TVM_SETSTRCMPFUNC 368 MiniGUI V2 0 4 nman ERBEK fr SendMessage hTrvWnd TVM_SETSTRCMPFUNC 0 LPARAM str_cmp str_cmp STRCMP vip e G e f Bit i el MP ME cox SEM Son E M s1 s2 n 0 0 0 31 3 TVN_SELCHANGE TVN DBLCLK TVN SETFOCUS TVN KILLFOCUS TVN_CLICKED TVN ENTER TVN FOLDED AMIJE TVN UNFOLDED SetNotificationCallback
67. O MiniGUI V2 0 4 nman SetDIgltemText GetNextDIgGroupltem GetNextDIgTabltem SendDlgltemMessage CheckDlgButton i CheckRadioButton TAB AN SetWindowText WS GROUP T TAB ABSTOP SendMessage IsDlgButtonChecked GetDIgDefPushButton 53 MiniGUI V2 0 phan AEGEA V2 0 4 ERHCE 54 MiniGUI V2 0 4 5 GUI MiniGUI 5 1
68. MiniGUI Bm 95 MiniGUI V2 0 4 ia F VESETEARE SEIT AES 9 Pit f Pe b s MiniGUI Threads MiniGUI Standalone ZN typedef int MSGHOOK void context HWND dst_wnd int msg WPARAM wparam LPARAM lpar am HEP context A EJ IN EA S E Poco 14 dst wnd msg wparam Iparam HOOK GOON HOOK STOP
69. CreateCursor 106 MiniGUI V2 0 4 nman 68246 fr xhotspot yhotspot w h MiniGUI 32x32 w h 32 pAndBits AND AND pXorBits XOR XOR MiniGUI 16 colornum XOR 1 16 4 10 2 2
70. MSG_LBUTTONDOWN MSG_MOUSEMOVE MSG_KEYDOWN MSG_CHAR MSG_TIMER MSG_PAINT MSG_QUIT ji MSG MSG GetMessage
71. DWORD GUIAPI GetShiftKeyStatus void GetShiftKeyStatus amp KS_CTRL Ctrl TRUE GetKeyStatus 87 phan MiniGUI V2 0 4 BOOL GUIAPI GetKeyStatus H UINT uKey uKey GetKeyStatus TRUE FALSE 9 1 5 Da 22
72. 11 2 3 skin create main window skin create control event_ cb msg cb skin set event cb skin set msg cb alsatin event lo Im Ekun ger event Co siklin heas g Ekini Shala evene Co i evene e TN skuinemsgecbEt skinesetemsgecboskineheadst skim skin event cb t vp edem M m even Cly e EMUND bosas ekim deem cs dren games oe hwnd item
73. 32 1 WS_BORDER CreateWindow P dut LVS_TREEVIEW Pu Nes LVS UPNOTIFY LVS_UPNOTIFY 32 2 32 2 1 WS VSCROLL WS_HSCROLL MES gt fY o phan E
74. MainWindowCleaup 27 MiniGUI V2 0 4 nman ERBEK NE MiniGUI DestroyMainWindow ng ER Os 3 2 5 DialogBoxIndirectParam HE int GUIAPI DialogBoxIndirectParam PDLGTEMPLATE pDlgTemplate HWND hOwner WNDPROC DlgProc LPARAM lParam Ey 4 3 2 6 MiniGUI H MiniGUI typedef struct WNDCLASS the class name char SpClassName internal field operation type
75. GDI GDI GDI GDI GDI TextOut x y
76. GetIntValueFromEtc GetIntValueFromEtcFile m SetValueToEtc SetValueToEtcFile m MiniGUI 2 0 4 1 6 10 RemoveSectionInEtc RemoveSectionInEtcFile GetValueFromEtcSec GetIntValueFromEtcSec SetValueToE
77. set leds EED wait event MiniGUI Threads MiniGUI Processes select poll r ETT IAL IAL 254 MiniGUI V2 0 4 nman 68946 fr 18 4 Comm IAL 5 MiniGUI 4 Zi ik A SX Fi E 28 28 i T Common comm 5 int comminput init void void comminput deinit void into comminputcts9getdata short shobt short buttom int comminput kb getdata short key short status int comminput wait for input void B comminput init mM com
78. 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 161
79. MSG FDEVENT MSG_FDEVENT IK TELEEEe cnmn Ed 3E culab Cem misa Wes 4 Sock waste a x Socham cad ME ron 236 MiniGUI V2 0 4 ee nman 17 MiniGUI Processes mginit MiniGUI Processes MiniGUI Processes JR MDE mginit mginit 17 1 MDE mginit MDE mginit MiniGUI Processes
80. A RGB 174 MiniGUI V2 0 4 human 68246 fr ED
81. SetCursorEx SetCursor SetDefaultCursor SetCursor SetDefaultCursor 107 MiniGUI V2 0 4 nman BUDI U sss define SetCursor hcsr SetCursorEx hcsr FALSE HRdefine SetDefaultCursor hcsr SetCursorEx hesr TRUE MiniGUI MSG SETCURSOR MSG_SETCURSOR
82. SVM_SETCONTAINERPROC MiniGUI V2 0 4 nman ERZEK TF WNDPROC myproc SendMessage hScrWnd SVM SETCONTAINERPROC 0 LPARAM myproc IParam DefaultContainerProc v int GUIAPI DefaultContainerProc HWND hWnd int message WPARAM wParam LPARAM lParam CONTAINERINFO user proc 29 4 M TH 29 1 mg samples scrollwnd c 29 4 define IDC SCROLLWND 100 ddefine ID ZOOMIN 200 ddefine ID ZOOMOUT 300 static HWN
83. PAGEUP PAGEDOWN END SHIFT 414 MiniGU V2 0 4 nman 68946 fr B 7 typedef struct GRIDCELLDEPENDENCE
84. GetSystemCursor 23 csrid csrid IDC ARROW IDC IBEAM T IDC_PENCIL IDC CROSS Ft IDC MOVE IDC_SIZENWSE IDC_SIZENESW IDC SIZEWE IDC SIZENS IDC UPARROW IDC_NONE IDC HELP IDC BUSY IDC WAIT IDC RARROW IDC_COLOMN IDC ROW IDC DRAG IDC_NODROP IDC HAND POINT IDC_HAND_SELECT IDC SPLIT HORZ IDC SPLIT VER minigui h MiniGUI cfg LH I System c
85. in select select 0 iPAQ src ial ial c inputs MiniGUl cfg MiniGUI 259 MiniGUI V2 0 4 nman ia a rr II aaj 260 MiniGUI V2 0 4 IV MiniGUI E E J ll n ScrollWnd
86. En 1 MiniGUI V1 6 x fic Ak 3 3E JH oe c Bed T AR SX FE RR SCIRE CN SER IER E JH VxWorks ThreadX Nucleus OSE eCos uC OS Il MiniGUI Threads MiniGUI V2 0 x Linux VxWorks 6 MiniGUI Processes HTML Windows 3 HTML Windows MiniGUI V2 0 4 NMOAN S D s m AAAAAAZA5AA oPYIHAH EPHM TE http www minigui com product cindex shtml 1 2 m 1 MiniGUI 2 12 MiniGUI m 2 MiniGUI 13 15 MiniGUI
87. GetMenultemInfo SetMenultemlnfo int GUIAPI GetMenuItemInfo HMENU hmnu int item BOOL flag int GUIAPI SetMenuItemInfo HMENU hmnu int item BOOL flag PMENUITEMINFO pmii PMENUITEMINFO pmii hmnu MiniGUI m flag MF BYCOMMAND item m flag MF_BYPOSITION MiniGUI GetSubMenu SetMenultemBitmaps GetMenulte
88. ShowOpenDialog IDOK IDCANCEL MiniGUI UNIX Linux uClinux 137 MiniGUI V2 0 4 nman ia a rr II aaj 138 MiniGUI V2 0 4 human 6 139 MiniGUI V2 0 4 NMOAN 9Ase EEEmmbmHA 5EB ABBBABBDPBBBHBARHRS 12 12 1 MiniGUI SetTimer MSG TIMER KillTimer MiniGUI 2 0 4 1 6 10 SetTimerEx ResetTimerEx SetTimer ResetTimer typedef BOOL TIMERPROC HWND int DWORD BOOL GUIAPI ResetTimerEx HWND hWnd int id
89. CTRL_TREEVIEW CreateWindow TAM o 31 1 phan F treeview GetWindowStyle SetWindowStyle TVS_WITHICON MiniGUI MiniGUl cfg icon5 icon6 fold ico
90. SVM_SETITEMCMP typedef int SVITEM CME HSVITEM hsvil HSVITEM hsvi2 hsvi1 hsvi2 hsvi hsvi2 H xh SVS AUTOSORT SVM SORTITEMS SVM SETITEMCMP myItemCmp SendMessage hScrWnd SVM SORTITEMS 0 LPARAM myItemCmp myltemCmp 30 2 ScrollWnd 355 MiniGUI V2 0 4 nman tnn nmmo2AzAaAy w 2 o22v o P EBERRERRCE EPH TE XE EJ T np ERAS uU JBDER DJ SE IB 30 2 1
91. MiniGUI CreateWindow 77 MiniGUI V2 0 4 phan WS_VSCROLL WS_HSCROLL MiniGUI 8 2 EnableScrollBar EnableScrollBar hWnd hWnd SB HORZ SB VERT EnableScrollBar
92. HE DA mginit gt 241 MiniGUI V2 0 4 nman 17 1 4 T mginit rc pid desktop exec app app info autostart if pid desktop waitpid pid desktop amp status WNOHANG gt 0 fprintf stderr Desktop already have terminated Wn Usage return 1 E MDE mginit SIGCHLD siga sa handler child wait siga sa flags 0 memset amp siga sa mask 0 sizeof sigset t Sigaction SIGCHLD amp siga NULL exec app vfork execl pid t exec app int app Stel E Toxuel e 0g char buff PATH MAX NAME MAX 1 ase eel wires e f f p iim F stderr Towels rd wa n mpya s elge i n
93. MiniGUI 10 3 1 CreateCaret BOOL GUIAPI CreateCaret HWND hWnd PBITMAP pBitmap int nWidth int nHeight hwnd pBitmap nWidth nHeight pBitmap NULL pBitmap NULL nWidth nHeight nWidth nHeight CreateCaret mn ShowCaret DestroyCaret CreateCaret
94. IRE cM GENE o M G Ffaet 10 InvalidateRect GetParent hwnd amp rcCircle TRUE else if nc IDC NTB RIGHT offset 10 ImvalidateRect GetParent hwnd amp rcCircle TRUE Static BITMAP ntb bmp Static void create new toolbar HWND hWnd HWND ntb NTBINFO ntb info NTBITEMINFO ntbii eja o ose Wp z Im ntb info nr cells 4 melo we e li mel OF ntb info nr cols 0 ntb info image amp ntb bmp lt ntb CreateWindow CTRL NEWTOOLBAR WS_CHILD WS_VISIBLE TOT hWnd DWORD amp ntb info SetNotificationCallback ntb my notif proc pixel GetPixellInBitmap amp ntb bmp 0 0 SetWindowBkColor ntb pixel InvalidateRect ntb NULL TRUE memset amp ntbii 0 sizeof ntbii ntbii flags NTBIF PUSHBUTTON ntbii id IDC NTB LEFT meloia sloma CSLL Ly SendMessage ntb ADDITEM 0 LPARAM amp ntbii Tai ags NTBIF PUSHBUTTON ntbii id IDC NTB RIGHT melona edama CSLL 27 SendMessage ntb TBM ADDITEM 0 LPARAM amp ntbii
95. 1 MiniGUI malloc 1 _USE_OWN_MALLOC MiniGUI MiniGUI malloc bie x n int init minigui malloc unsigned char heap unsigned int heap size ume lock heera voici dme unlock bhead oich r MiniGUI malloc ThreadX Hinclude tx api h static TX MUTEX threadx malloc mutex ddefine NAME MUTEX MALLOC Mutex4Malloc stole int UINT status Status tx mutex get amp threadx malloc mutex TX WAIT FOREVER aus cc Ox ule return 0 return 1 static int threadx heap unlock void UINT status Status tx mutex put amp threadx malloc mutex if status TX SUCCESS return 0 return 1 create the mutex for heap tx mutex create amp threadx malloc mutex NAME MUTEX MALLOC TX NO INHERIT
96. VOR M GENSAT HDE hade INE cT yn ny void GUIAPT ArcEx HDC hdc int sx int sy int width int height int angi int ang2 5 Siue Ln Bae nehe ight cue shes an void GUIAPI PolyLineEx HBC hdc const POINT pts int nr pts void GUIAPI PolyArcEx HDC hdc const ARC arcs int nr arcs void GUIAPI PolyFillArcEx HDC hdc const ARC arcs int nr arcs m LineEx x1 y1 x2 y2 m ArcEx x y width height angl 1 64 ang2 1 64 ang2 JE KRNETA JARRET ang2 X 360x64 FillArcEx ArcEx m PolyLinEx
97. 08 05 30 T m HH MM SS m PageDown PageUp g IRE 6 2
98. MSG PAINT MiniGUI MSG_PAINT m MiniGUI MSG_PAINT InvalidateRect MSG PAINT UpdateWindow mo ud Dn a eux s MiniGUI 2
99. Ruto check box on left BS AUTOCHECKBOX BS LEFTTEXT BS RIGHT WS VISIBLE E BEA S DIRE IIS AE e HTH B s_ RADIOBUTTON H BS LEFTTEXT BS_LEFT BS CENTER BS RIGHT BS TOP BS VCENTER BS BOTTOM 271 MiniGUI V2 0 4 nman BEEIEEI EECIC U B sscss s BS PUSHLIKE 20 4 CreateWindow CTRL BUTTON Auto Radio Button 2 WS CHILD BS AUTORADIOBUTTON WS VISIBLE IDC RADIOBUTTON 4 1 210 WT C
100. ANIMATION n Animation frame structure typedef struct ANIMATIONFRAME The disposal method from GIF89a specification Indicates the way in which the graphic is to be treated after being displayed ONn No disposal specified The decoder is not required to take any action lNn Do not dispose The graphic is to be left in place 2 n Restore to background color The area used by the frame must be restored to the background color 3Nn Restore to previous The decoder is required to restore the area overwritten by the frmae with what was there prior to rendering the frame int disposal The x coordinate of top left corner of the frame in whole animation screen eye r The y coordinate of top left corner of the frame in whole animation screen able CoE re The width of the frame unsigned int width The height of the frame unsigned int height The time of the frame will be display in the unit of animation time unit unsigned int delay time ifdef USE NEWGAL The memdc compatible with the gif image ISUDYC wneuwn Glen 7 mhae bite Oi tke men ce ous treed atter delercimg che mem Ae Uint8 bits else The bitmap of the frame
101. HDC HDC X Y x y frame buffer Uint8 pixel add frame buffer y pitch x GetGDCapability hdc GDCAP HDC Tt a wllie le height Raer seg 0 200 2090 int bpp GetGDCapability hdc GDCAP BPP Uint8 frame buffer LockDC hdc amp rc amp width amp height amp pitch Uit S Frame fui r em o ME e memset row rand 0x100 width bpp row pitch UnlockDC hdc 15 12 YUV inl Gamma MiniGUI YUV Overlay Gamma f 15 12 1 YUV
102. UNICODE 322 P3 e Ar 48 BIG5 EUC AFW BRAAF H yi GB2312 HZ EUC EUC 1984 4 H pk v ISO IEC JTC1 SC2 WG2 1991 Unicode Consortium 1991 10 WG2 186 UNICODE 2 0 6811 20902 MiniGUI V2 0 4 68946 fr 11172 6400 20249 65534 UNICODE F 16 UCS2 UTF8 ASCI ISO8859 1
103. MiniGUI m MM_TEXT x y B MM ANISOTROPIC 15 7g Ye de 2 ij FER HW S o A bs Jet B EG D B IE CE ER BU SetWindowExt SetViewPortExt scale MM_TEXT SetMapMode hdc mapmode mapmode mapmode GetMapMode hdc 13 4 2
104. Imgext MiniGUIExt 29 1 ScrollView h 29 1 29 1 347 MiniGUI V2 0 4 NMOAN iu TF nF F 4 29 2 ScrollView
105. MiniGUI Cohen Sutherland LineGenerator Breshenham cb context stepx 1 stepy 0 X Y T 15 7 2 MiniGUI generator a eyes vowel 2 C vorte comes alme o2 awe s 5 cilleceneq abo CES nme HRS s x1 y x2 y
106. CreateMainWindow j Alt MSG_COMMAND CreateMenu InsertMenultem K 2X n 3x HMENU hmnu MENUITEMINFO mii hmnu CreateMenu memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING well HEATS 0 mii id IDM ABOUT THIS mii typedata DWORD InsertMenuItem hmnu 0 TRUE amp mii hsubmenu mii hsubmenu Greate iile mami
107. Ez 2 MiniGUIExt J iniGUIExt mgext mywins 1 2 6 b newt newt GUI Z Red Hat Linux newt 2000 7 MiniGUI mywins J Y MiniGUIExt newt 1 2 6 MiniGUI
108. FrameBuffer 2 NEWGAL Z Ex HK T 8 QVFB Shadow with targetname Shadow 249 MiniGUI V2 0 4 nman EBE HQOEbLOEULDEOEDDEEEEAEAAAAA55H H Hmd b EPH TE m with targetname vfanvil VisualFone Anvil ThreadX with targetname qvfb Linux QVFB m with targetname wvfb Windows QVFB dummy itx Shadow MiniGUI Th
109. ASCI GB2312 80 6763 87 94 ISO8859 H GB2312 UNIX GB2312 2 0xA1 0xFE GB2312 GB2312 Hl JISX0201 JISX0208 ASCII 11 0xB1A1 HZ 1I GB2312 EUC gy 682 F BIG5
110. MiniGUI Processes lt minigui minigui h gt typedef struct REQUEST const void data Sume t len Cater REQUEST typedef REQUEST PREQUEST Et id data len data REQUEST ClientRequest send a request to server and wait reply ume Cll ea Re eae oa recese VoL ml dae lem sele p 8 mginit ServerSendReply EECGURARTESET2eSEenOREDIR ont p i yala TNT
111. skin_head_t skin head t skin item t skin init eimai kn ichit event Skinimsgic coit msc event cb msg cb skin deinit on kum mn Ekin noae ws sime skin_item_t xx Skin item information structure Eypedet sitmucit 8 del DWORD style xx x xx v HE wp
112. dwAddData on change topmost Static void on change layer int op MG Layer layer MG Client client sitaitic ime me 07 static int box width MAX WIDTH LAYER BOX int new width if op 0 amp amp op LCO ACTIVE CHANGED Geinese hance Te mnie 5 lerplev er gt nane client client gt name NULL switch op case LCO NEW LAYER nr boxes if box width nr boxes WIDTH BOXES new width WIDTH BOXES nr boxes if new width MIN WIDTH LAYER BOX new width MIN WIDTH LAYER BOX if new width box width adjust boxes new width layer box width new width layer dwAddData DWORD CreateWindow CTRL BUTTON layer name WS CHILD WS VISIBLE BS CHECKBOX BS PUSHLIKE BS CENTER _ID LAYER BOX LEFT BOXES box width nr boxes 1 MARGIN box width HEIGHT CTRL hTaskBar DWORD layer break case LCO DEL LAYER DestroyWindow HWND layer dwAddData layer dwAddData 0 uc leeexer if b
113. EY PostQuitMessage QS QUIT i GetMessage QS QUIT GetMessage FALSE LH int GUIAPI BroadcastMessage int iMsg WPARAM wParam LPARAM lParam t 3 ES int GUIAPI ThrowAwayMessages HWND pMainWnd 37 Fo nman MiniGUI V2 0 4 BOOL GUIAPI WaitMessage PMSG pMsg HWND hMainWnd 3 3 6 MiniGUI Processes MiniGUI MiniGUI Processes MiniGUI Processes GetMessage
114. IMGFLAG_BITMAP hlcon lbii hIcon DWORD GetSystemBitmap SYSBMP MAXIMIZE lbii cmFlag DSS CMFLAG CHECKED IMGFLAG BITMAP ole SendMessage hChildWnd3 LB ADDSTRING 0 LPARAM amp lbii 281 MiniGUI V2 0 4 NM AN 55558 CHEKE 21 2 2 LB DELETESTRING SendMessage hwndList LB DELETESTRING index 0 LB_RESETCONTENT SendMessage hwndList LB RESETCONTENT 0 0 21 2 3 LB_GETCOUNT count SendMessage hwndList LB GETCOUNT 0 0 LB_GETTEXTLEN
115. HJ WL ES BASELINE ES_AUTOWRAP ES_LEFT ES_NOHIDESEL ES AUTOSELECT ES TITLE ES TIP SLEDIT ES CENTER ES RIGHT WS HSCROLL WS_VSCROLL
116. 395 MiniGUI V2 0 4 III ia W s gt SPM_GETINFO Pn SPININFO spinfo SendMessage hwndSpinBox SPM GETINFO 0 LPARAM amp spinfo spinfo SPM_SETCUR ut SendMessage hwndSpinBox SPM_SETCUR cur SPS_AUTOSCROLL cur SendMessage 1 T SPM_GETCUR int cur cur SendMessage hwndSpinBox SPM GETCUR O0 0 34 2 2 SPM_DISABLEDOWN SPM_ENABLEDOWN SPM_DISABLEUP SPM_ENABLEUP SPS_AUTOSCROLL
117. Zs zh str EE 8 int val SendMessage hScrWnd SVM GETHSCROLLVAL 0 0 int val SendMessage hScrWnd SVM GETVSCROLLVAL 0 0 int val SendMessage hScrWnd SVM GETHSCROLLPAGEVAL 0 0 int val SendMessage hScrWnd SVM GETVSCROLLPAGEVAL 0 0 SVM SETSCROLLVAL EARD wParam IParam 0 RENARE RZ sw weeds SendMessage hScrWnd SVM SETSCROLLVAL h val v val 5 SETSCROLLPAGEVAL wParam IParam 0 ses dim weeks we weeds SendMessage hScrWnd SVM SETSCROLLPAGEVAL h val v val 29 3
118. m ERRSPACE m MBN_SELECTED m MBN_CHANGED MBN_STARTMENU MBN ENDMENU 24 4 24 1 23 1 23 1 mg samples menubutton c P E 24 1 static DLGTEMPLATE DlgMyDate WS_BORDER WS_CAPTION WS EX NONE 390 399 394 OPEP 9 NULL 0 1365F up Static CTRLDATA CtrlMyDate CTRL MENUBUTTON WS_CHILD WS_VISIBLE 190 20 100 20 DS 0 static void daxia notif proc HWND hwnd ine id ab owe S
119. m CBS EDITNOBORDER WS_BORDER m CBS AUTOFOCUS 23 1 2 CBS AUTOSPIN 23 5 55 Lr 23 5 FH CBS AUTOLOOP 0 100 1
120. MiniGUI case MSG_FONTCHANGING eC I 40 MiniGUI V2 0 4 nman SetWindowFont 3 4 6 MSG_FONTCHANGED SetWindowFont MiniGUI case MSG FONTCHANGED sled PSLEDITDATA GetWindowAdditionalData2 hWnd sled gt startPos 0 sled gt editPos 0 edtGetLineInfo hWnd sled DestroyCaret hWnd CreateCaret hWnd NULL 1 GetWindowFont hWnd size SetCaretPos hWnd sled
121. X nman which o Brit tH T T MiniGUI V2 0 4 HWND ntbl ntbii flags ntbii flags melosa ciere SendMessage ntbii flags misosi palel SendMessage Qh melona loyer CSLL op NTBINFO ntb info NTBITEMINFO ntbii RECT hotspot que 16 55 S8 NTBINFO ntb info nr cells 4 cell e gg melo Soll OF mlb Eo ne ol 0 ntb info image amp bitmapl ntbl CreateWindow CTRL NEWTOOLBAR nn D WS CHILD WS VISIBLE IDC CTRL NEWTOOLBAR 1 nae 07 hWnd DWORD amp ntb info ntbii flags ntbii id IDC NTB TWO melda sloma CSLL dis SendMessage ntbi TBM ADDITEM 0 LPARAM amp ntbii NTBIF PUSHBUTTON NTBIF PUSHBUTTON N
122. M TrueType Adobe MiniGUI 172 J Type1 MiniGUI ISO8859 x GB2312 GBK GB18030 BIG5 EUCKR Shift JIS EUCJP T 4E Rf H S eH E MiniGUI RBF VBF iniGUI QPF Qt Embedded UNICODE MiniGUI GUI NE 14 MiniGUI V2 0 4 nman 68946 fr 13 8 f MiniGUI GDI
123. 21 2 5 status SendMessage hwndList LB GETCHECKMARK index 0 index LB_ERR CMFLAG CHECKED CMFLAG_PARTCHECKED CMFLAG_BLANK ret SendMessage hwndList LB SETCHECKMARK index LPARAM status index status index LB ERR LB OKAY 21 2 6 ret SendMessage hwndList LB SETITEMBOLD index LPARAM status index index LB ERR lParam 1 0
124. 9 2 mg samples capture c 9 2 capture c zi Im dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h define IDC MYBUTTON 100 static int MybuttonWindowProc HWND hWnd int message WPARAM wParam LPARAM lParam HDC x sac nee aes Or switch message case MSG LBUTTONDOWN status ly SetCapture hWnd InvalidateRect hWnd NULL TRUE break case MSG LBUTTONUP if GetCapture hWnd break
125. CTRL_NEWTOOLBAR CreateWindow 27 1 lt a Up lt 4 Previous gt Next E Menu 27 1 27 1 NTBINFO CreateWindow dwAddData NTBINFO 27 1 a X 27 4 NTBINFO H s nr LEE 1 2 TH amp Ib GS 3 4 0 AMA 4 amp nr_cols nr_cells
126. 28 3 B PSN ACTIVE CHANGED 28 4 28 2 CPU 28 2 15 mg samples propsheet c Jr Zh 28 2 include lt stdio h gt Hinclude stdlib h dinclude string h dinclude minigui common h dinclude minigui minigui h 341 MiniGUI V2 0 4 nman dinclude minigui gdi h dinclude minigui window h dinclude minigui control h define PAGE VERSION al define PAGE CPU 2 ddefine PAGE MEMINFO 3 define PAGE PARTITION 4 ddefine PAGE MINIGUI 5 define IDC_PROPSHEET 100 define IDC_SYSINFO 100 static DLGTEMPLATE PageSysInfo
127. 12 3 3 GetClipBoardDataLen size t GUIAPI GetClipBoardDataLen const char cb name I GetClipBoardData size t GUIAPI GetClipBoardData const char cb name void data size t n 144 MiniGUI V2 0 4 nman cb name 1 35 BJ Ir B WJ 44 Z data n GetClipBoardData K 2 3k Hx 988 Mh d XX ds 2 B A H GetClipBoardDataLen Zi x U AE 1 CS GetClipBoardByte int GUIAPI GetClipBoardByte const char cb name int index unsigned char byte index byte 12 4 MiniGUI usr local etc MiniGUl cfg Windows INI se
128. lm m MiniGUI 208 MiniGUI V2 0 4 q nman 68946 fr To determine whether the specified Polygon is Monotone Vertical Polygon BOOL GUIAPI PolygonIsMonotoneVertical const POINT pts int vertices Monotone vertical polygon generator EypedetEvondEN WeBEEOLvGON Evosd Ncontecxtemi mte ERA PEERS BOOL GUIAPI MonotoneVerticalPolygonGenerator void context const POINT pts int verti ces CB POLYGON cb PolygonisMonotoneVertical MonotoneVerticalPolygonGenerator MiniGUI pts vertices x1 y x2 y 15 7 6 MiniGUI General polygon generator ByBecete vond
129. make make Making all in src make 1 Entering directory home weiym minigui samples src Sourcesz helloworld c objecti helloworld oi libtoolszno depfile deps helloworld Po tmpdepfilez deps helloworld TPo N depmode gcc3 bin sh depcomp N gcc DPACKAGE NAME DPACKAGE TARNAME DPACKAGE VERSION DPACKAGE STRING DPACKAGE BUGREPORT V V DPACKAGE V samplesV DVERSION 0 1 DSTDC HEADERS 1 DHAVE SYS WAIT H 1 DTIME WITH SYS TIME 1 DHAVE SYS TYPES H 1 DHAVE SYS STAT H 1 DH AVE STDLIB H 1 DHAVE STRING H 1 DHAVE MEMORY H 1 DHAVE STRINGS H 1 DHAVE INTTYPES H 1 DHAVE STDINT H 1 DHAVE UNISTD H 1 DHAVE SYS TIME H 1 DHAVE UNISTD H 1 DHAVE MIN IGUI COMMON H 1 DHAVE DECL MGRM PROCESSES 1 DHAVE DECL MGRM THREADS 0 DHAVE DECL _ MGRM STANDALONE 0 DHAVE DECL USE NEWGAL 1 I I g O2 Wall Wstrict prototype S pipe D REENTRANT c test f helloworld c echo helloworld c gcc g O2 Wall Wstrict prototypes pipe D REENTRANT o helloworld helloworld o lpthread lminigui ljpeg lpng lz lt1 lttf make 1 Leaving directory home weiym minigui samples src make 1 Entering directory home weiym minigui samples make 1 Nothing to be done for all am make 1 Leaving directory home weiym minigui samples
130. desktop select MiniGUI Processes MiniGUI Processes select select select m MiniGUI Processes RegisterListenFD
131. MiniGUI lt minigui gdi h gt MOG ODA ox come 3 5 Vus sue ja p Noo CIA a lee a ibis be We des PBITMAP pBitmap ie END 1 IBOXNTENBI tmapPanrt snoe laie sse vun fa int bw int bh PBITMAP pBitmap int xo int yo weil CU PTE EP UNDC simus bi 2 cime NL chem a HDC hddc int dx int dy DWORD dwRop void GUIAPI StretchBlt HDC hsdc int sx int sy int sw int sh HDC hddc int dx int dy int dw int dh DWORD dwRop 13 8 1 mt m
132. libmgext libminigui libvcongui Linux MiniGUI libmgext libvcongui B minigui res 1 6 10 tar gz MiniGUI B mg samples 1 6 10 tar gz MiniGUI mde 1 6 10 tar gz MiniGUI 1 4 b fpa _Linux 138 Linux PC CPU 256MB 15GB USB PS2 82 IMPS2 VESA2
133. 28 2 5 MiniGUI Pun an m PSM GETPAGECOUNT m PSM_GETTITLELENGTH wParam MSG_GETTEXTLENGTH m PSM_GETTITLE wParam IParam MSG_GETTEXT m PSM_SETTITLE IParam wParam MSG_SETTEXT x m MiniGUI gu gt m 5 GETACTIVEPAGE m PSM_GETACTIVEINDEX m PSM_SETACTIVEINDEX wParam
134. mg samples iconview c 38 1 define IDC_ICONVIEW 100 define IDC BT 200 Hdefine BT2 300 ddefine IDE BT3 400 ddefine IDC BT4 500 define IDC ADD 600 define IDC DELETE 601 Static HWND hIconView Static BITMAP myicons 12 res acroread png res icons png res looknfeel png res package games png Jc reES ux png res xemacs png res gimp png WU c es epi 11151 511 res multimedia png MiniGUI V2 0 4 nman res realplayer png pm na res xmms png m static const char iconlabels 12 acroread cons looknfeel games tux xemacs gimp multimedia nra e lela er usb xmms ba static void myDrawItem HWND hWnd GHANDLE hsvi HDC hdc RECT rcDraw const PBITMAP pbmp PBITMAP iconview get item bitmap hsvi const char label const char iconview get item label hsvi SetBkMode hdc BM TRANSPARENT S eitimeser o oio hcc EPIS RITE CIN if iconview is item hilight hWnd hsvi SetBrushColor hdc PIXEL blue else SetBrushColor hdc PIXEL lightwhite FillBox hdc rcDraw left rcDraw gt top RECTWP
135. cb BITMAP LoadMyBitmapSL CleanupMyBitmapSL LoadMyBitmapSL MiniGUI MiniGUI LoadBitmapEx PaintlmageEx LoadMyBltmapSL MiniGUI 15 6 NEWGAL PaintlImageEx PaintImageFromFile PaintlmageFromMem BITMAP ExpandMyBitmap
136. m MSG_CB_GOON result MSG CB DEF GOON MiniGUI result ffi m MSG_CB_STOP result 11 2 4 set window skin Skin head t set window skin HWND hwnd skin head t new skin hwnd new_skin skin init set_ window skin 4 cig get window skin Skin head t get window skin HWND hwnd skin
137. DC DC MiniGUI Processes define MAX SYS REQID 0x0014 ddefine MAX REQID 0x0020 Register user defined request handlers for server Note that user defined request id should larger than MAX SYS REQID E pe ef C R RIO HA NDDISEPU limpia Pour O moj Rp t F fige ie liem 5 BOOL GUIAPI RegisterRequestHandler int req id REQ HANDLER your handler REQ HANDLER GUIAPI GetRequestHandler int req id RegisterRequestHandler REQ HANDLER MAX_SYS_REQID MAX REQID MAX_REQID
138. typedef struct skin head s skin head t name style SKIN STYLE TOOLTIP 122 MiniGUI V2 0 4 rscs sWsr rss ssvrsn Q nman EZEK TF bmps fonts skin head t bk_bmp_index bmps nr items items items skin item t
139. 12 4 void AttachSharedResource void ifndef USE MMAP int shmid dendif tiemegello c EI void memptr if lockfd open LOCKFILE RDONLY 1 goto error ifdef USE MMAP mmap mgSizeRes lockfd 0 SEEK END memptr mmap 0 mgSizeRes PROT READ MAP SHARED lockfd 0 else ID if read lockfd amp shmid sizeof shmid sizeof shmid JOCO Error close lockfd memptr shmat shmid 0 SHM RDONLY dendif mem 5 gemens 1 goto error return memptr emo perro A tochsbamnedkesonmic el E return NULL 12 6 lt math h gt CPU MiniGUI
140. 21 2 7 status SendMessage hwndList LB GETITEMDISABLE index 0 index LB ERR 1 0 ret SendMessage hwndList LB SETITEMDISABLE index LPARAM status index index 284 MiniGUI V2 0 4 Y sss FasF Tr rr ssWTa nman LB ERR IParam 1 0 21 2 8 LB MULTIADDITEM SendMessage LB_ERRSPACE SendMessage
141. xg Eu 6 IParam amp KS LEFTCTRL TRUE CTRL MiniGUI KS CAPSLOCK CapsLock KS NUMLOCK NumLock KS_SCROLLLOCK ScrollLock KS_LEFTCTRL Ctr1 KS RIGHTCTRL Ctz1 KS_CTRL ctz1 KS LEFTSHIFT shift KS RIGHTSHIFT Shift KS_SHIFT shift KS_IMEPOST IME KS LEFTBUTTON KS_RIGHTBUTTON KS_MIDDLBUTTON KS CAPTURED KS CAPTURED HL H GetShiftKeyStatus
142. DOS MiniGUI Threads UNIX MiniGUIl Processes UNIX UREDA MiniGUI Linux MiniGUI 0 9 8 Lite Lite MiniGUI EHARA Linux MiniGUI MiniGUI Lite MiniGUI Lite MiniGUI MiniGUI Lite MiniGUI MiniGUI Lite
143. IntersectClipRect m SubtractClipRect m CreateClipRgn m DestroyClipRgn GD GUI 13 6 13 6 1 MiniGUI TAB 19 1 13 1 GDI LineTo Circle Rectangle GetPenColor SetPenColor 170 MiniGUI V2 0 4 isiOs ss w rr nman ERBIN GetBrushColor SetBrushColor FillBox Get
144. PostMessage MiniGUI Threads MiniGUI Processes ee SendNotifyMessage PostMessage PostMessage
145. dnl AM CONDITIONAL MGRM THREADS test x threads version xyes dnl AM CONDITIONAL MGRM PROCESSES test x procs version xyes dnl AM CONDITIONAL MGRM STANDALONE test x standalone version xyes dnl AM CONDITIONAL USE NEWGAL test x use newgal xyes dnl Makefile AC OUTPUT Makefile Src Makefile LE then AC MSG MiniGUI is not properly installed on the system You need MiniGUI Ver 2 0 2 or later for building this package Please configure and insta NAMH CUr Gh oem F TS t configure in configure Makefile f m T configure m MiniGUI m MiniGUI MiniGUI Processes MiniGUI Threads MiniGUI Standalone m MiniGUI Makefile src Makefile H
146. 4 1 K 4 1 WS_GROUP F WS GROUP 18 TAB a XE EHEH TAB Shift TAB WS_TABSTOP MiniGUI Dig m HR ne RE Ka L1 N 4 2 GetDlgltemText 4 2 GetDIgltemText2 52 Zx WEG T S
147. m ANIMATION time unit E NEWGAL DC BITMAP ANIMATION GIF98a ANIMATION TION CreateAnimationFromGIF89a HDC hdc MG RWops area TION CreateAnimationFromGIF89aFile HDC hdc const char file TION CreateAnimationFromGIF89aMem HDC hdc const void mem int size GIF89a area GIF ANIMATION ANIMATION CreateWindow ANIMATION ANIMATION gif ANIMATION
148. MiniGUl cfg x MiniGUI 1 6 0 M gal pixel GUIAPI GetWindowElementColorEx HWND hwnd Uintl6 item gal pixel GUIAPI SetWindowElementColorEx HWND hwnd Uinti16 item gal pixel new value GetWindowElementColorEx hwnd item 18 SetWindowElementColorEx 1 item 12 1 K 12 1 FGC_CAPTION_ACTIVED 142 MiniGUI V2 0 4 r m r srrsTcssrm nman WED 3DBOX REVERSE s
149. 0 100 1 pagedown pageup 5 23 2 23 2 1 CB_ADDSTRING LB_ADDSTRING CB INSERTSTRING LB_INSERTSTRING CB DELETESTRING LB_DELETESTRING CB_FINDSTRING LB_FINDSTRING CB FINDSTRINGEXACT LB_FINDSTRINGEXACT 305 MiniGUI V2 0 4 NMAN PP CB RESETCONTENT LB_RESETCONTENT CB GETCOUNT LB_GETCOUNT CB GETCURSEL LB_GETCURSEL
150. SendMessage hwndEdit EM SETLFDISPCHAR 0 22 2 10 TEXTEDIT n EM_SETLINESEP char Fe ep lea SendMessage hwndEdit EM SETLINESEP 0 sep char IParam TAB SendMessage hwndEdit EM SETLINESEP 0 Nt 22 2 11 EM_GETNUMOFPARAGRAPHS int num num SendMessage hwnd EM GETNUMOFPARAGRAPHS EM_GETPARAGRAPHLENGTH 1 int len len SendMessage hwnd EM GETPARAGRAPHLENGTH wParam 297 MiniGUI V2 0 4 ICE S sss GETPARAGRAPHTEXT
151. SW_SHOWNORMAL 2 2 5 MiniGUI MiniGUI Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 411 Exalyafign Only nman rw T fF while GetMessage amp Msg hMainWnd TranslateMessage amp Msg DispatchMessage amp Msg Msg MSG MSG window h typedef struct HWND hwnd int message WPARAM wParam LPARAM lParam unsigned int cimer ifndef _LITE_VERSION void pAdd endif MSG typedef MSG PMSG GetMessage GetMessage amp Msg hMainWnd MSG GetMessage 1 hwnd hellowor
152. MiniGUI Processes UNIX RETEBSUNGX FRIES SE DEAN SX Linux m MiniGUI Standalone MiniGUI uClinux MiniGUI Standalone Linux UNIX uClinux uC OS II eCos VxWorks MMU CPU GUI MiniGUI MiniGUI Standalone
153. MiniGUI Threads MiniGUI Standalone MSGHOOK GUIAPI RegisterKeyMsgHook void context MSGHOOK hook MSGHOOK GUIAPI RegisterMouseMsgHook void context MSGHOOK hook hook NULL int my hook void context HWND dst wnd int msg WPARAM wParam LPARAM lparam AE o osa return HOOR GOON else return HOOBRCSTOPRS MSGHOOK old hook RegisterKeyMsgHook my context my hook Restore old hook RegisterKeyMsgHook 0 old hook MiniGUI Threads MiniGUI eli ee EUR 8E XE
154. foo src Makefile am T noinst PROGRAMS helloworld foo helloworld SOURCES helloworld c foo SOURCES foo c src helloworld foo i275 foo samples Hm Automake Autoconf Jf i MiniGUI MiniGUI MiniGUI mg samples 2 0 x tar gz Autoconf Automake 21 MiniGUI V2 0 4 nman ia a rr II aaj 22 Edited by
155. m CTRL C m CTRL V m CTRL X EM_COPYTOCB CTRL C SendMessage hwndEdit COPYTOCB 0 O0 EM CUTTOCB Hj dt 89 Jih Bg IJ S P EE SB S4 38 88 F CTRL X E SendMessage hwndEdit EM CUTTOCB 0 0 EM INSERTCBTEXT EH 2k H B Wi dc WJ oc V ERE SZ 38 E 4jH2 4 CTRL V SendMessage hwndEdit EM INSERTCBTEXT O0 0 294 MiniGUI V2 0 4 aF II r F nman 22 2 4 EM GETLINEHEIGHT dae Line Medicine p line_height SendMessage hwndEdit EM_GETLINEHEIGHT 0 0 EM SETLINEHEIGHT 1 imie line i exire c SendMessage hwndEdit EM SETLINEHEIGHT line height 0
156. DispatchMessage TranslateMessage while GetMessage amp Msg hMainWnd TranslateMessage amp Msg DispatchMessage amp Msg A TranslateMessage K 4j WK Kk Z Hj X MSG KEYDOWN 86 MSG SYSKEYDOWN 3 x c ICI IM AY MiniGUI V2 0 4 human wParam ASCII IParam 9 1 4 CShift Lg IParam MSG_CHAR Alt MSG_KEYDOWN Ctrl Alt Caps Lock Num Lock Scroll Lock D x FI MWAH Shift Ctrl Jj amp SE Delete Insert RU 35 KM E Pn
157. wParam 2 IParam WB CB_SETSPINRANGE wParam IParam m CB_SETSPINVALUE wParam m CB_SPIN CB GETSPINVALUE wParam 1 0 CB_SETSPINPACE m CB FASTSPIN PageUp PageDown wParam 0 1 CB SETSPINPACE CB GETSPINPACE wParam CIParam WB SETSPINPACE wParam
158. 29 2 1 SVM SETCONTRANGE mt C On te w Contin SendMessage hScrWnd SVM SETCONTRANGE cont w cont h cont w cont h cont w cont h Jy fA fi SVM_SETCONTWIDTH SVM_SETCONTHEIGHT w et SendMessage hScrWnd SVM SETCONTWIDTH cont w 0 SendMessage hScrWnd SVM SETCONTHEIGHT cont h 0 SVM GETCONTWIDTH SVM GETCONTHEIGHT SVM GETVISIBLEWIDTH SVM GETVISIBLEHEIGHT 29 2 2 SVM_GETCONTENTX SVM_GETCONTENTY
159. MSG HavePendingMessage 34 MiniGUI V2 0 4 l nman 68246 fr int GUIAPI GetMessage PMSG pMsg HWND hWnd BOOL GUIAPI HavePendingMessage HWND hMainWnd MSG_ERASEBKGND 3 3 4 MiniGUIMain GetMessage Af Hh NW DispatchMessage
160. MiniGUI API Reference ServerSetTopmostLayer ServerCreateLayer ServerDeleteLayer GetClientByPID SetTopmostClient m SetServerEventHook mginit MiniGUI MiniGUI Send2Client ServerGetNextZNode Z ServerGetZNodelnfo Z ServerDoZNodeOperation Z 3 LT T Nat LI T k 247 MiniGUI
161. 21 4 21 1 21 4 mg samples listbox c uk gt 21 1 include lt stdio h gt dinclude stdlib h include stdarg h dinclude string h dinclude sys stat h dinclude sys time h dinclude lt sys types h gt HRinclude unistd h dinclude pwd h include errno h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude
162. LVM_SETCOLUMN LVCOLUMN p SendMessage hwndListView LVM SETCOLUMN 0 LPARAM amp D p LVCOLUMN LVM_ADDCOLUMN p LVM_MODIFYHEAD LVM_SETCOLUMN LVCOLUMN p SendMessage hwndListView LVM MODIFYHEAD 0 LPARAM amp D p LVCOLUMN nCols pszHeadText LVM_GETCOLUMN LVCOLUMN p int nCols SendMessage hwndListView LVM GETCOLUMN nCols LPARAM amp p nCols p LVCOLUMN LVM_GETCOLUMNWIDTH int width Me width SendMessage hwndListView LVM GETCOLUMNWIDTH nCols 0 r nCols SendMessage o GETCOLUMNCOUNT
163. GDI x Yy GDI 4 164 MiniGUI V2 0 4 GDI MiniGUI x y x y
164. m PolyArcEx wr na 222 NS MiniGUI V2 0 4 nman typedef struct ARC the x coordinate of the left edge of the bounding rectangle the y coordinate of the left edge of the bounding rectangle vp the width of the bounding box of the arc int width the height of the bounding box of the arc int height The start angle of the arc relative to the 3 o clock position counter clockwise in 1 64ths of a degree i int angle1 The end angle of the arc relative to anglel in 1 64ths of a degree 2 int angle2 ARC m PolyFill rcEx 15 13 4 15 5
165. EmptyClipRgn amp my cliprgnl EmptyClipRgn amp my cliprgn2 DestroyFreeClipRectList amp my cliprc heap 15 2 15 11 GDI ne MI Sit e void GUIAPI UnlockDC HDC hdc m LockDC HDC WEEEK H EJE rw width height pitch m UnlockDC HDC 214 MiniGUI V2 0 4 q nman HDC MiniGUI HDC DC DC HDC HDC
166. IH IME GBIMEWindowEx m hosting IME HWND DESKTOP x ty rx by IME B two lines IME GBIMEWindowEx IME MiniGUI Threads GB2312 HWND GBIMEWindow HWND hosting 31 human ERBAT GB2312 GB2312 MiniGUI MiniGUI V2 0 4 int GUIAPI RegisterIMEWindow HWND hWnd hWnd MiniGUI IME IME fi IM E int GUIAPI IME UnregisterIMEWindow HWND hWnd int GUIAPI SetIMEStatus int StatusCode IME int Value GB2312 Xik
167. MiniGUI Processes MiniGUI mginit MiniGUI mginit mginit MDE mginit MiniGUI Processes MiniGUI Standalone MiniGUI Threads MiniGUI Win32 API 242 amp Win32 MiniGUI API 2 2 MIniGUI MiniGUI 2 1 MiniGUI Hello World 2 1 helloworld c
168. 1 PSM SHEETCMD 28 1 PSM_SHEETCMD MSG_SHEETCMD
169. 26 3 MiniGUI V2 0 4 TBM SETRANGE wParam lParam 0 10 TBM_GETMIN TBM_GETMAX TBM SETMIN TBM_SETMAX TBM SETLINESIZE wParam 1 TBM GETLINESIZE TBM SETPAGESIZE wParam PageUp PageDown TBM GETPAGESIZE
170. BOOTESEO estes era ren EE CN DWORD er arus skin imt BOOn check 11 2 9 skin_item_t style SI TYPE NRMSLIDER type data si_nrmslider_t Normal slider item info structure typedef struct si nmrmsluderc s The WRAD 535 alligces gubselese imio int thumb bmp index si nrmslider t si progressbar t 130 MiniGUI V2 0 4 ee nman 68246 fr sie slider t AUD Z Y Af Slider information structure pedet el ili del xx int min pos int max pos int cur pos j sde malleus 6p skin item t bmp indx
171. Est 15 7 3 Ellipse generator pedea onda ACRE EES MM om ls erem ens Mtr MET alle We von dao UI ETEBIMSIDSeaenerstorevoicd gcontescto int ssim er TERI ME GUB E RUBIO STRE b X Y cb x1 x2 y x1 y x2 y 207 MiniGUI V2 0 4 NMAN P ERZEK TF 15 7 4 I A4 m MiniGUI Arc generator Me se on WIA Byeder ep PAP G or ene iae spes ne Sz Ln i25 abe cue void GUIAPI CircleArcGenerator void context CB ARC cb sne ARGA 1
172. GetNextChild GetNextMainWindow GetActiveWindow SetActiveWindow 9 1 6 8 ScrollWindow k Cho ScrollWindow NULL W 45 MiniGUI V2 0 4 nman ia a rr II aaj 46 MiniGUI V2 0 4 4 CreateWindow Y 1
173. GetWindowRect hWnd amp rcMain ClipCursor amp rcMain ShowCursor FALSE break case MSG RBUTTONDOWN ShowCursor TRUE break case MSG SETCURSOR I SetCursor GetSystemCursor IDC IBEAM return 0 case MSG CLOSE DestroyAllControls hWnd DestroyMainWindow hWnd PostQuitMessage hWnd estem return DefaultMainWinProc hWnd message wParam lParam Demo of using cursor 10 3 10 3 RegisterTrapwindow trap 10 100 100x100 trap RegisterTrapwindow trap IDC_HAND_POINT trap MSG_MOUSEMOVE ClipCursor
174. 237 MiniGUI V2 0 4 II iu u FC 1 OnNewDelClient OnChangeLayer MiniGUI Processes mginit mginit OnNewDelClient minigui minigui h typedef void ON NEW DEL CLIENT int op int cli LCO NEW CLIENT LCO_DEL_CLIENT cli MiniGUI Processes OnChangeLayer minigui minigui h typedef void ON CHANGE BAYER int op ayer layer MCC emt client a
175. Createlcon K Destroylcon 10 1 3 Createlcon Destroylcon Createlcon 101 MiniGUI V2 0 4 NMOAN u m9 lt WP HICON GUIAPI CreateIcon HDC hdc int w int h const BYTE pAndBits const BYTE pXorBits int colornum hdc w h pAndBits AND pXorBits XOR colornum XOR Createlcon w h 16x16 32x32 pAndBits AND AND
176. GRIDN_HEADLDOWN GRIDN_HEADLUP GRIDN_KEYDOWN ERRE GRIDN_CELLDBCLK GRIDN_CELLTEXTCHANGED 33 Hl POP ds 7c B dE 76 GRIDN_CELLCLK GRIDN_FOCUSCHANGED LE MiniGUI V2 0 4 nman ERBAK f GRIDN_FOCUSCHANGED GRIDN_CELLCLK SetNotificationCallback T pe T 37 5 37 1 mg samples gridview c 37 1 int ww 800 int wh 600 enum IDC GRIDVWV
177. SetNotificationCallback MSG COMMAND ERRSPACE LBN_SELCHANGE 286 MiniGUI V2 0 4 ee nman 68246 fr j LBN_CLICKED LBN_DBLCLK LBS_CHECKBOX LBN_CLICKCHECKMARK LBS_AUTOCHECK LBN_SELCHANGE x DBLCLK LBN_SELCHANGE LBN_DBLCLK
178. int pos x SendMessage hScrWnd SVM GE int pos y SendMessage hScrWnd SVM GE SVM SETCONTPOS dma DOE 54 DOS 75 SendMessage hScrWnd SVM SETCONTPOS pos x pos y MAKEPOSVISIBLE 348 MiniGUI V2 0 4 sarc f s a a ssp nman SendMessage hScrWnd SVM MAKEPOSVISIBLE pos x pos y SVM_MAKEPOSVISIBLE 29 2 3 SVM_GETHSCROLLVAL SVM_GETVSCROLLVAL SVM_GETHSCROLLPAGEVAL SVM_GETVSCROLLPAGEVAL
179. xViewOrg yViewOrg MiniGUI LPtoDP DPtoLP void GUIAPI hdc POINT pPt void GUIAPI EPtoDP HEC hdc POINT pPt hdc POINT pPt PHI y MiniGUI src newgdi coor c LPtoDP DPtoLP void GUIAPTI LPtoDP HDC hdc POINT PEE PDC pde paci Ge Ince s if pdc mapmode MM TEXT pet x ppt gt x pdc WindowOrig x pdc gt ViewExtent x pdc gt WindowExtent x pdc gt ViewOrig x pPt y pPt y pdc Wi
180. 0 LVM SHOWITEM HLVITEM hItem int nItem SendMessage hwndListView LVM SHOWITEM nItem hItem hitem hltem 0 nltem LVM_SHOWITEM LVM_CHOOSEITEM LVM_SELECTIEM LVM_SHOWITEM int nItem HHLVITEM hItem SendMessage hwndListView LVM CHOOSEITEM nItem hItem hitem hltem 0 nltem LVM FINDITEM SendMess
181. 32 3 MiniGUI src kernel sharedres c 423 L 150 MiniGUI V2 0 4 nman USE MMAP undef USE MMAP ddefine 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 JOCO error shmid shmget shm key mgSizeRes SHM PARAM IPC CREAT IPC EXCL if shmid 1 error Attach to the share memory memptr shmat shmid 0 0 if memptr char 1 JOCO OT TOT else memcpy memptr mgSharedRes mgSizeRes free mgSharedRes if shmctl shmid IPC NULL 0 JOCO Error endif VIX SE TENE qnn if lockfd open LOCKFILE O WRONLY O CREAT O TRUNC 0644 1 IGI Gt OMIT T3610 ifdef USE MMAP mmap if write loc
182. AY EN CHANGE EN UPDATE MSG SETTEXT EM RESETCONTENT EM_SETLINEHEIGHT EN ENTER Enter EN MAXTEXT EN DBLCLK EN CLICKED H NH N m Z A r r T O O E X ii 1i x 2 n S gt m 11 298 MiniGUI V2 0 4 22 4 nhe 22 2 Per hi ln h REAA J Y da dE NER H mg samples nman TT 22 1 editc 22 1 EE include lt stdio h gt include lt stdlib h gt dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui windo
183. m m B jE AO frame window main win Ft lt FR Q up mo pa A ER AER SP ID ID MiniGUI k 3 2 MiniGUI 3 2 1 MiniGUI
184. 399 MiniGUI V2 0 4 nman ia a rr II aaj 400 MiniGUI V2 0 4 Ftnr r r vs ssssvtq nman EZEK TF 35 RET RAE L coolbar M TRI RFE 371 mgext mgext CreateWindow CTRL_COOLBAR 35 1 CBS BMP 16X16 CBS_BMP_32X32 16x16 32x32 CBS_BMP_CUSTOM CreateWindow dwAddData CreateWindowEx CTRL COOLBAR MAKELONG item width item height CBS USEBKBMP CreateWindow spCaption
185. createStatusWin destroyStatusWin m createToolTipWin destroyTooTipWin ES Zu R H s s E E 119 MiniGUI V2 0 4 nman Er m createProgressWin destroyProgressWin m myWinHelpMessage m m myWinMenu Red Hat Linux timeconfig m myWinEntries Red Hat Linux netconfig IP m OpenFileDialog OpenFileDialogEx
186. SPS AUTOSCROLL e 34 2 34 2 1 SPM_SETINFO SPININFO spinfo SendMessage hwndSpinBox SPM SETINFO 0 LPARAM amp spinfo spinfo SPININFO typedef int max Ine min le SPININFO typedef SPININFO PSPININFO SPININFO SPS_AUTOSCROLL gt
187. m 3 MiniGUI 16 18 MiniGUI Processes m 4 MiniGUI 19 38 VR MiniGUI MiniGUI Lite MiniGUI VAR for Linux uClinux V1 6 10 uClinux MiniGUI VAR for uClinux V1 6 10 MiniGUI Processes 1 3 MDE MiniGUI Autoconf Automake mg samples MiniGUI VAR V2 0 4 minigui 2 0 x libminigui 2 0 4 lt os gt tar gz os HI linux MiniGUI V2 0 4 MiniGUI libminigui libmgext libvcongui libminigui
188. DrawTextEx GB2312 Song 16 o T fi 32 Masae HE dE om Tae Fr e l op dig meisme dUJLE ael osen c y Tae er EPO emisso dg eS maleje e 015 de oe 3545 veJ leme c p sess 3615 neJ meju c 24015 Tez borcem 45s Fe le gi ces p gue ds use oeste 5535 lightwhite Tel el DOECO iB aee COP ire leui GO g i LE Eg 12 1 amp rcl DT NOCLIP DT CENTER DT WORDBREAK tgb16 1 amp rc2 DT NOCLIP DT RIGHT DT WORDBREAK tgb24 1 amp rc3 DT NOCLIP DT SINGLELINE DT CENTER DT VCENTER iE od 4 1 amp rc4 32 DT NOCLIP DT LEFT DT WORDBREAK 193 MiniGUI V2 0 4 NMOAN w s his is a good dav T DrawText ixl prae ABE CB2312 Song 12 WEEET XXE PRA DrawText S ER L GB2312 Song 16 DrauTextEx 2z GB2312 Song 16 32 YERERE This is a good day 14 2 DrawText MiniGUI 14 2
189. H 12 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu A lieu 9 Only nman EZZ TF EY CreateInfo hCursor GetSystemCursor 0 CreateInfo hIcon 0 CreateInfo MainWindowProc HelloWinProc CreateInfo CreateInfo CreateInfo CreateInfo CreateInfo iBkColor PIXEL lightwhite PIXEL lightwhite MiniGUI CreateInfo dwAddData 0 CreateInfo hHosting HWND DESKTOP m EN ShowWindow hMainWnd SW SHOWNORMAL ShowWindow ShowWindow
190. NTBM_ADDITEM NTBITEMINFO flags 27 2 NTBITEMINFO JT NTBM GETITEM NTBM SETITEM NTBIF PUSHBUTTON CHECKBUTTON NTBIF HOTSPOTBUTTON l NTBIF NEWLINE 8 MULTILINE JX NTBIF_SEPARATOR Adj BB NTBIF DISABLED X CERE fi hotspot_proc rc_hotspot add_data apr X 27 2 NTBITEMINFO nman 68946 fr Rh L bmp cell
191. mg samples mycontrol c 30 MiniGUI V2 0 4 nman Hello world from mv control 3 4 Hello world 5 6 4 MiniGUI 3 2 7 MiniGUI Windows MiniGUI GB2312 MiniGUI Processes GB2312 GBIMEWindowEx HWND hosting int lx int ty int rx int by BOOL two lines GB2312
192. 2 2 6 helloworld c HelloWinProc CreateMainWindow MAINWINCREATE static int HelloWinProc HNND hWnd int message WPARAM wParam LPARAM lParam 4 MSG hWnd CreateMainWindo i gt Mr gt MSG message 32 2 2 7 E PAINT eginPaint ZE r4 GDI TextOut Hello world
193. i Linux Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu iQ a ign Only nman MiniGUI Lite MiniGUI Lite m n MiniGUI V2 0 x MiniGUI Lite MiniGUI Processes MiniGUI Processes MiniGUI Lite UNIX Linux
194. type data type data si bmplabel t MiniGUI type data CTRLDATA attached style style MiniGUI
195. 15 6 GDI 15 6 1 MiniGUI NI pA int GUIAPI FileName int GUIAPI cize int GUIAPI Sre le U ne e ara Mw re mrt bees AMT StretchPaintImageFromMem HDC hdc int x int y int w int h const void mem const char ext StretchPaintImageEx HDC hdc int x int y int w int h MG RWops area cons t char ext m StretchPaintlmageFromFile hdc 7922 x y w h spFileName m StretchPaintimageFromMem hdc X x L w h mem
196. MiniGUI ES LI GetFontHeight GetMaxFontWidth GetTextExtent GetTabbedTextExtent lt minigui gdi h gt TACACUTA PETER COV Ereni HDCENdEC none lave Sprer EE NEEE TER GI TIS calle oun en CEN Ge gt s slm C OS e ar MT EE nE nn int GUIAPI TabbedTextOutEx HDC hdc int x int y const char spText int nCount int nTabPositions int pTabPositions int nTabOrigin void GUIAPI GetLastTextOutPos HDC hdc POINT pt Compatiblity definitions define TextOut hdc x y text TextOutLen hdc x y text 1 ddefine TabbedTextOut hdc x y text TabbedTextOutLen hdc x y text 1 191 MiniGUI V2 0 4 nman ee int GUTAPI DrawTextEx HDC hdc const char pText int nCount RECT pRect int nIndent UINT nFormat TextOutLen 1 0 TabbedTextOutLen
197. iconnumber 7 7 MiniGUI iconinfo GetLargeSystemlcon GetSmallSystemlcon 104 MiniGUI V2 0 4 nman 68246 fr HICON GUIAPI GetLargeSystemIcon int id HICON GUIAPI GetSmallSystemIcon int id GetLargeSystemlcon 32x32 GetSmallSystemlcon 3X 16x16 7 id id IDI_APPLICATION IDI STOP IDI HAND IDI QUESTION IDI EXCLAMATION INFORMATION IDI ASTERISK id window h
198. struct palette unsigned char r g b 4 256 I 4 183 MiniGUI V2 0 4 II 1 u ss ERZEK TF 13 9 2 256 RGB MiniGUI SetPalette GetPalette SetColorfulPalette GDI i HPALETTE GUIAPI CreatePalette GAT Palette pal HPALETTE GUIAPI GetDefaultPalette void int GUIAPI GetPaletteEntries HPALETTE hpal int start int len GAB Color cmap int GUIAPI SetPaletteEntries HPALETTE hpal int start int len GAL Color BOOL GUIAPI ResizePalette HPALETTE hpal int len UINT GUIAPI GetNearestPaletteIndex HPALETTE hpal Uint8 red Uint8 green Uint8 blue RGBCOLOR GUIAPI GetNearestColor HDC hdc Uint8 red Uint8 gr
199. WS VSCROLL WS_HSCROLL 37 2 GRIDVIEWDATA typedef struct GRIDVIEWDATA xx int nr rows aie oliy int row height econnwict hy GRIDVIEWDATA 409 human 37 2 1 MiniGUI V2 0 4 F GRIDM ADDCOLUMN int index GRIDCEL DATA celldata GRIDCELLDATAHEADER cellheader SendMessage hWndGrid GRIDM ADDCOLUMN amp celldata index celldata GRIDCELLDATA
200. double length double GetWindowAdditionalData hDl9 GetWindowText GetDlgItem hDlg IDC SIZE MM buff 32 length atof buff case IDCANCEL EndDialog hDlg wParam break break return DefaultDialogProc hDlg message wParam lParam Static void InputLenDialogBox HWND hWnd double length DlgBoxInputLen controls CtrlInputLen DialogBoxIndirectParam amp DlgBoxInputLen hWnd InputLenDialogBoxProc LPARAM length E int MiniGUIMain int argc const char argv l double length ifdef _MGRM_PROCESSES JoinLayer NAME DEF LAYER input 0 0 endif InputLenDialogBox HWND DESKTOP amp length printf The length is 5f mm MXn length Te ea Us ifndef MGRM PROCESSES dinclude minigui dti c dendif 5 2 5 1 m mg samples input c 60 MiniGUI V2 0 4 srssssr aa rrsss r rr nman EZEK TF BKE BEE GI DO 324324324 i 2768674 17223 we 5 1 jd A AHS MI 4 MiniGUI
201. int related LVITEM hItem LVITEM hRelatedItem RelatedItem SendMessage hwndListView LVM GETRELATEDITEM related hItem related LVIR_PARENT LVIR_FIRSTCHILD LVIR_NEXTSIBLING LVIR_PREVSIBLING hitem LVM_GETRELATEDITEM LVM FOLDITEM HLVITEM hItem BOOL bFold SendMessage hwndListView LVM FOLDITEM bFold hItem bFold 7j TRUE If ut dr S sa Jl e UJ ETT Sa JL hltem 382 MiniGUI V2 0 4 ee nman 68246 fr 32 3
202. myicon ico 32x32 16x16 16 0 32x32 myicon large 1 16x16 myicon small MSG PAINT Drawlcon Drawlcon w h 0 Drawlcon 10 1 2 MSG_CLOSE Destroylcon LoadlconFromFile Destroylcon F 4 BOOL GUIAPI DestroyIcon HICON hicon Destroylcon hicon LoadlconFromFile Destroylcon
203. BI 48 MiniGUI V2 0 4 nman DialogBoxIndirectParam 4 2 4 1 mg samples dialogbox c X 4 3 42 H er static int InitDialogBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam TH switch message case MSG INITDIALOG return iy case MSG_COMMAND switch wParam eere MIS GREC case IDCANCEL EndDialog hDlg wParam break break return DefaultDialogProc hDlg message wParam lParam Static void InitDialogBox HWND hWnd DIgInitProgress controls CtrlInitProgress DialogBoxIndirectParam amp DlgInitProgress hWnd InitDialogBoxProc 0L VAM CNOC 4 1 4 2
204. NTB_TEXT_LEN 1 m MTB_WHICH_CELL WHICH HOTSPOT MTB WHICH ADDDATA NS o MiniGUI NTBM ENABLEITEM SendMessage ntbi NTBM ENABLEITEM 100 FALSE ERRELE KE ntb1 100 27 3 3 NTBM SETBITMAP IParam NTBINFO NTBINFO ntbi SendMessage ntb NTBM SETBITMAP 0 LPARAM amp ntbi 27 4
205. libmgext libminigui libvcongui WA Linux MiniGUI libmgext libvcongui B minigui res 2 0 4 tar gz MiniGUI Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 RAGE Ealaion Only ra aiO nman Ek f B ng samples 2 0 4 tar gz MiniGUI E nde 2 0 4 tar gz MiniGUI MiniGUI VAR V1 6 10 minigui 1 6 x m libminigui 1 6 10 lt os gt tar gz os vxworks MiniGUI V1 6 10 MiniGUI libminigui libmgext libvcongui libminigui
206. NEWGDI NEWGAL 4M 1204x768x32bpp 3M 1M NEWGAL E Blitting EE NEWGDI DC NEWGAL DC i 4H Blitting
207. 14 2 SetTexiCharacerExra WEFAN SetTexAboweLineExta GetTextBellowLineExtra SetTextBellowLineExtra A REH MORI SCA ir h PRICE LL 14 7 4 MDE fontdemo MiniGUI 2 0 3 1 6 9 194 MiniGUI V2 0 4 human 68846 fr 2 0 4 1 6 10 FreeType2 FreeType2 MiniGUI sub pixels 3f 8 3E 4T FreeType2 JE BU FT CONFIG OPTION SUBPIXEL RENDERING T i 44 2 Sub Pixel LOGFONT mg font mg font Crea
208. END 32 4 LVN_ITEMRDOWN LVN ITEMRUP LVN_HEADRDOWN LVN_HEADRUP LVN_KEYDOWN LVN_ITEMDBCLK LVN_ITEMCLK LVN_SELCHANGE LVN FOLDED LVN UNFOLDED LVN SELCHANGE LVN ITEMRDOWN SetNotificationCallback
209. 359 MiniGUI V2 0 4 NMAN PP EPM TE fiko MSG FREEZE wParam Z i 4 TRUE 30 2 7 margin KER wK 30 1 s SS N N N 30 1 SVM SETMARGINS RECT rcMargin SendMessage hScrWnd SVM SETMARGINS 0 LPARAM amp rcMargin rcMargin left top right bottom SVM_GETMARGINS RECT rcMargin SendMessage hScrWnd SVM GETMARGINS 0 LPARAM amp rcMargin SVM GETLEFTMARGIN SVM GETTOPMARGIN SVM GETRIGHTMARGIN SVM GETBOTTOMMARGIN 30 3 m SVN_SELCHANGED
210. pnfdd NEWFILEDLGDATA typedef struct _NEWFILEDLGDATA indicates to create a Save File or an Open File dialog box BOOL IsSave the full path name of the file returned char filefullname NAME MAX PATH MAX 1 the name of the file to be opened char filename NAME MAX 1 the initial path of the dialog box char filepath PATH MAX 1 the filter string for example A11 file Text file txt TXT char filter MAX FILTER LEN 1 the initial index of the filter siml filterindex NEWFILEDLGDATA IsSave TRUE filefullname filename filepath filter All file Text file txti TXT m filterindex
211. CTRL_PROGRESSBAR CreateWindow 25 1 E 18 25 1 25 1 m NOTIFY m PBS_VERTICAL 25 2 25 2 WS CHILD WS VISIBLE PBS NOTIFY 25 2 25 2 1 PBM SETRANGE 0 100 bl SendMessage hwndEdit PBM SETRANGE min max 319 MiniGUI V2 0 4 nman E UEEYYEUEEEI P a o o oooo o oOoooooo uuuu 25 2 2 10 PBM SETSTEP SendMessage hwndEdi
212. F human DRE CreateWindow GUI n s ba k E SF HPS B 3 GUI MiniGUI 5 4 1 i f MiniGUI
213. FBCON MiniGUI Shadow CommLCD 18 1 18 2 MiniGUI FrameBuffer PC F Linux MiniGUI h FR 2 A 18 1 Shadow 1 YUV MiniGUI AL
214. MCN_DATECHANGE 33 4 Y 33 1 mg samples monthcal c 33 1 define IDC MC 100 ddefine IDC OK 200 static CTRLDATA CtrlTime l monthcalendar WS CHILD WS VISIBLE MCS NOTIFY MCS CHN ig 10 229 180 IDC MC nn 0 pubtont WS_CHILD WS_VISIBLE BS_PUSHBUTTON 366 380 50 22 Jie ue 0 bs static DLGTEMPLATE DlgTime MiniGUI V2 0 4 nman WS VISIBLE WS CAPTION WS BORDER WS EX NONE 0 0 320 240 2 CtrlTime Static int TimeWinProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG INITDIALOG break case MSG COMMAND int id LOWORD wParam te dd xe on i char xnfoptr00 SYSTEMTIME date SendMessage GetDlgItem hDlg IDC MC MCM GETCURDATE 0 LPARAM amp date sprintf info d bd d 1 date year date month date d
215. mginit 17 1 mginit mg samples mginit c scrnsaver c 17 1 mginit ak include lt stdio h gt dinclude stdlib h dinclude St include unistd h HRinclude signal h include time h dinclude lt sys types h gt dinclude sys wait h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h Static BOOL quit FALSE prarde vorc onm acw cel celicne ime 0p tac 6131 stattenimtinrieiientsi or if op LCO NEW CLIENT nr clients 11 else if op LCO DEL CLIENT ms isis ellenes 1 cmt lc EENE eguna e GB o else if nr clients 0 printf Serious error nr clients less than zero Mn else printf Serious error incorrect operations Nn Static pid t exec app const char file name const char app name Elo E ple 0 a ic viore e 1 f pr int ue we hin Towels Toll p
216. IDC CTRL1 100 define IDC_CTRL2 110 IDC CTRL3 120 define IDC CTRL4 130 define MY ES DIGIT ONLY 0x0001 define MY ES ALPHA ONLY 0x0002 Static WNDPROC old edit proc Static int RestrictedEditBox HWND hwnd int message WPARAM wParam LPARAM lParam if message MSG_CHAR DWORD my style GetWindowAdditionalData hwnd if my style amp MY ES DIGIT ONLY amp amp wParam lt 0 wParam gt 9 Ug else if my style amp MY ES ALPHA ONLY if wParam gt A amp amp wParam lt Z wParam gt a amp amp wParam lt z return 0c return old edit proc hwnd message wParam lParam MiniGUI V2 0 4 ek ff static int ControlTestWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG CREATE HWND hWndi hWnd2 hWnd3 CreateWindow CTRL STATIC Digit only box WS CHILD WS VISIBLE SS RIGHT 0 i0 19 160 24 fadi hWndi CreateWindow CTRL EDIT WS CHILD WS VISIBLE WS BORDER CTRL1 200 10 180 24 hWnd MY E
217. 3 LVM ADDITEM LVM_ADDITEM LVM_FILLSUBITEM LVM_SETSUBITEM LVM_GETITEM LVITEM lvItem HLVITEM hItem SendMessage hwndListView LVM GETITEM hItem LPARAM amp lvItem hitem lvltem LVITEM hltem 7j 0 Ivitem nltem LVM_GETITEMCOUNT inr count count SendMessage hwndListView LVM GETITEMCOUNT O0 0 SendMessage LVM_GETITEMADDDATA DWORD addData int nItem HLVITEM hItem addData Sen
218. HDC GUIAPI InitSlaveScreen const char name cnost char mode InitSlaveScreen name mode y HDC Cien s ser c F u const char mode 640x480 l6bpp hdc InitSlaveScreen engine mode InitSlaveScreen r amp Zicik H lJ E P SC RI EL UH MiniGUI GDI DC hil y 225 MiniGUI V2 0 4 NMOAN u sF 15 14 2 void GUIAPI TerminateSlaveScreen HDC hdc hdc InitSlaveScreen 226 MiniGUI V2 0 4 F sx4sscs rs r
219. MiniGUI 16 2 1 MiniGUI Processes Processes C S mgServer TRUE MiniGUI mgServer FALSE 16 1 tmgserver True DeskTop DeskTop Top Window meserver F alse mgserver False DeskTop Top Window Top Window 231 MiniGUI V2 0 4 nman em cUir oeseeAEA9PPPEEEES en 16 31 16 2 2 MiniGUI Processes UNIX Domain Socket
220. mg samples painter c 9 3 painter c ne ude ite le Heale include 8 T f 94 int x int y minigui common h minigui minigui h minigui gdi h minigui window h minigui control h Static int PainterWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HDC static BOOL bdraw FALSE oine z prey switch message case MSG_LBUTTONDOWN bdraw TRUE SetCapture hWnd pre x LOWORD lParam pre y HIWORD lParam break case MSG MOUSEMOVE LOWORD lParam HIWORD lParam bdraw 4 a ScreenToClient hWnd amp x amp y Im hdc GetClientDC hWnd or hoe MEX cl oc s Dee Sy y LineTo hdc x y ReleaseDC hdc
221. 2 MiniGUI 15 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu Aloe 9 Only ERBEK 2 2 8 MSG_CLOSE helloworld MSG_CLOSE DestroyMainWindow PostQuitMessage MSG_QUIT GetMessage MSG_QUIT 0 gt MainWindowThreadCleanup MiniGUIMain 2 3 2 3 1 MiniGUI helloworld c helloworld 5 5 e mm eo Ea ore l MiniGUI MiniGUI Threads Ecce eleworl elowonml ee iiie miniou 0 gcc
222. ArchSwapLE16 ArchSwapBE16 MGUI_ReadLE16 MGUI ReadBE16 16 32 64 TE eavel Ec elen Imecxeless SLl2eoe may 3 JOCO cro i f MGUI BYTEORDER MGUI BIG ENDIAN len header ArchSwap32 len header Big Endian endif f E BAL e JY Z PF read len header MiniGUI Little Endian Big Endian ArchSwapLE32 Little Endian 32 Big Endian ArchSwap32 m ArchSwapLE16 X Little Endian 16 149 MiniGUI V2 0 4
223. Linux 140 MiniGUI V2 0 4 nman 68946 fr g Linux setitimer SIGALRM MiniGUI Processes mg
224. MCS_ENG_S MCS_NOTIFY 33 2 33 2 1 MCM_GETCURDAY int day day SendMessage hwndMonthcal MCM GETCURDAY 0 0 SendMessage MCM_GETCURMONTH int month month SendMessage hwndMonthcal MCM GETCURMONTH SendMessage MCM_GETCURYEAR int year year SendMessage hwndMonthcal MCM GETCURYEAR 0 0 389 MiniGUI V2 0 4 nman SendMessage MCM_GETCURMONLEN int monthlen monthlen SendMessage hwndMonthcal MCM GETCURMONLEN NODE
225. BS_AUTOCHECKBOX t BS_3STATE BS_AUTO3STATE N 270 MiniGUI V2 0 4 oman BS_3STATE B 1 S_AUTO3STATE BS CENTER BS RIGHT BS TOP BS_VCENTER BS BOTTOM BS PUSHLIKE 2i BS LEFTTEXT
226. Makefile am SUBDIRS STO Automake src I src Makefile am noinst PROGRAMS helloworld helloworld SOURCES helloworld c 19 MiniGUI V2 0 4 nman ERBAK NE Automake helloworld c helloworld Makefile autogen sh RS aclocal automake add missing autoconf shell aclocal automake autoconf chmod chmod x autogen sh Makefile autogen sh configure configurein autogen sh configure makefile
227. m MiniGUI m MiniGUI 206 MiniGUI V2 0 4 q nman 15 7 1 Line clipper EO LA Lt Com P G b c up c audae v S00 cnm 5 s cha scio m Ps E Line generators peccet vondi GM on ro mts e at ami ICI D s no ord eu nrAPT e cenmenatoca uo dicentes METTE o salmu Gl Dari Se cliprc x0 yO x1
228. 27 2 329 human ERHCE MiniGUI V2 0 4 i gt B SE 27 2 27 2 330 NTBS_HORIZONTAL NTBS VERTICAL 27 3 NTBS MULTLINE NTBIF NEWLINE NTBS WITHTEXT Qu WK 27 3 Bros
229. D 184 MiniGUI V2 0 4 human 6 185 68246 fr MiniGUI V2 0 4 14 MiniGUI 14 1 charset ASCII ASCI 31 7 EE 8 MiniGUI API E 0x00 0x7F LER Linux man ascii ASCU
230. 28 Eb 337 28 2 di ta a anan aaa aus 338 D uas Do 338 28 2 2 SY sa hr e n 338 5 eese Pacco i 940 28 2 4 III IH IH 340 28 2 5 ns 341 28 3 MR 341 EM SD 941 29 M 347 papapa ua auqa 947 29 2 AE a l 948 29 2 1 2 348 29 2 2 ecba bU ra RE RURPR Xe acd 348 29 2 3 SR DULCE AIRE eee etebrer i dn eR DEDI RR Ue pnis Y ee 349 i essen 349 29 31 SII Pau VY Eb xPEDEUI Ure rr Y eU Pen ek PP TS 349 29 3 2 os DD iene mie 350 29 3 3 350 Eon TE 351 30 3 Lg o2 Tr 355 8034 3 QE 355 302 Ib 355 30 2 1 Dn DD on a oD 356 30 2 2 356 SPA NOTE EE pi NE 357 30 2 4 358 30 2 5 A d D B REALE eue se
231. text B MB WHICH BMP MB_WHICH_ATTDATA MENUBUTTONITEM mbi mbi which MB WHICH TEXT MB WHICH ATTDATA moi text Me Wb mbi data 1 SendMessage menubtn MBM SETITEMDATA 0 LPARAM amp mbi Hi menubtn 24 2 7 MBS SORT MiniGUI MBM SETSTRCMPFUNC LB_SETSTRCMPFUNC 24 3 MBS NOTIFY 315 human MiniGUI V2 0 4
232. 16 4 256 H 8 16 FE 16 EM 256 RGB RGB RGB
233. MiniGUI MiniGUI 2 0 4 1 6 10 CQPF TTF BOOL GUIAPI LoadDevFontFromFile const char devfont name const char file name DEVFONT devfont void GUIAPI DestroyDynamicDevFont DEVFONT devfont MiniGUI 3 1 4 MiniGUI Processes OH TrueTpye Type1 MiniGUI Processes InitVectorialFonts TermVectorialFonts 14 3 MiniGUI
234. MiniGUI m mgClients MG Client MG_Client WB mgTopmostLayer MG_Layer mgLayers MG Layer mginit MG Client MG Layer MiniGUI API Reference Manual MDE mginit on new del client 239 MiniGUI V2 0 4 nman A c on_change_layer LCO NEW LAYER LCO DEL LAYER LCO TOPMOST CHANGED
235. _ E 1 fina i 5 1 define IDC 100 define IDC STATIC2 150 IDC BUTTON1 110 ddefine IDC BUTTON2 120 define IDC_EDIT1 130 define IDC EDIT2 140 hStaticWndl1 CreateWindow CTRL STATIC unns Ste em WS CHILD SS NOTIFY SS SIMPLE WS VISIBLE WS BORDER 3X STATICL 349 SO lue hStaticwndi hButtonli CreateWindow CTRL BUTTON Bucconi t WS CHILD BS PUSHBUTTON WS VISIBLE IDC BUTTON1 26 29 90 20 Sere csi ODE hButton2 5 CreateWindow CTRL BUTTON UBUEt On WS CHILD BS PUSHBUTTON WS VISIBLE IDC BUTTON2 20 50 80 20 hStaticWndl 0 hStaticwndi hEditi CreateWindow CTRL EDIT Edit Box 1 WS CHILD WS VISIBLE WS BORDER EDC 26 5010022 EIS WE CIH ME OE hStaticWnd1l hStaticwnd2 hStaticWnd2 CreateWindow CTRL STATIC Wiper sity Pesan Ie aa e Reem oe WS_CHILD SS_NOTIFY SS_SIMPLE WS_VISIBLE WS_BORDER IDC STATICI 20 110 100 50 hStaticWnd1l 0 hStaticwnd2 hnEdit2 hEdit2 hstaticwndl hEdit2 CreateWindow CTRL EDIT Bo
236. int message WPARAM wParam LPARAM lParam at int PreDefDialogProc HWND hWnd DefaultControlProc MiniGUI PreDefControlProc HWND hWnd int message WPARAM wParam LPARAM lParam int PreDefControlProc 36 MiniGUI V2 0 4 q nman 68946 fr 3 3 5 O MiniGUI PostMessage GetMessage PostMessage MiniGUI PostMessage SendMessage
237. CreateWindowEx CTRL COOLBAR res bk bmp 35 2 CBM ADDITEM COOLBARITEMINFO itemInfo SendMessage hwndCoolBar CBM ADDITEM 0 LPARAM amp itemInfo itemInfo COOLBARITEMINFO typedef struct COOLBARITEMINFO int insPos ia int id int ItemType PBITMAP Bmp elit 5 401 MiniGUI V2 0 4 NMOAN m const char ItemHint const char Caption DWORD dwAddData COOLBARITEMINFO id id wParam id 1 ltemType TYPE TEXTITEM TYPE BARITEM 25 TYPE_TEXTITEM wParam id
238. DestroyCursor LoadCursorFromFile CreateCursor BOOL GUIAPI DestroyCursor HCURSOR hcsr DestroyCursor hcursor 10 2 3 GetCursorPos SetCursorPos void GUIAPI GetCursorPos POINT ppt void GUIAPI SetCursorPos int x int y GetCurrentCursor SetCursorEx HCURSOR GUIAPI GetCurrentCursor void HCURSOR GUIAPI SetCursorEx HCURSOR hcsr BOOL set def SetCursorEx hesr set def TRUE SetCursorEx
239. GRID_ERR GRIDM_SETNUMFORMAT GRIDCELLDATANUMBER GRIDCELLS cells char format 3 EUM SendMessage hwndGrid GRIDM_SETNUMFORMAT cells format HB cells format GRIDM_SETSELECTED GRIDCELLS cells SendMessage hwndGrid GRIDM SETSELECTED 0 cells cells SendMessage GRID_OKAY GRID ERR GRIDM GETSELECTED GRIDCELLS cells SendMessage hwndGrid GRIDM GETSELECTED 0 cells SendMessage cells 37 3
240. y gt 10 4 Hinclude stdio h Hinclude stdlib h HRinclude string h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h define IDC MYEDIT 100 static int MyeditWindowProc HWND hWnd int message WPARAM wParam LPARAM lParam char pBuffer s elle m e 0 lm HDC hade switch message case MSG CREATE SetWindowFont hWnd GetSystemFont SYSLOGFONT WCHAR DEF if CreateCaret hWnd NULL 1 GetSysCharHeight Te Pu E t em lenan lt malloc nos pButfter 0 break case MSG SETFOCUS SetCaretPos hWnd pos GetSysCharWidth 0 ShowCaret hWnd break case MSG_KILLFOCU
241. 15 2 Alpha FillBoxWithBitmap DC MDE gdidemo 15 2 BITMAP rme OO coy BOO int county BITMAP bitmap 5 ne ea ciek Ene elek if LoadBitmap hdc amp bitmap res icon bmp return bitmap bmType BMP_TYPE_ALPHACHANNEL Alpha Sa em ee el sse ovum Count T000 while count tox toy Alpha bitmap bmAlpha rand 256 DC EeeosxW etna 0 Jesse 5 eur eki NccEeeou E stammt Eme en bitmap bmType BMP TYPE ALPHACHANNEL BMP TYPE COLORKEY 202 MiniGUI V2 0 4 nman 68946 fr bitmap bmColorKey GetPixelInBitmap amp bitmap 0 0 Alpha starter COuUnE 10097 while count tox s randi toy rand GetTickCount OE 800 80
242. 360 MiniGUI V2 0 4 nman EZEK TF m SVN_CLICKED m SVN_SELCHANGING SetNotificationCallback T SVN CLICKED SVN SELCHANGED Inn E SVN SELCHANGING T 30 4 Millu lm in 30 1 I mg samples scrollview c 90 1 define IDC_SCROLLVIEW 100 ddefine pe BT 200 ddefine IDC BT2 300 define IDC_BT3 400 define IDC_BT4 500 static HWND hScrollView Static const char people poem el ewell Igbu y whee ar p Hellen Zhang Tomas Zhao
243. GetFirstWord 14 5 TE MiniGUI anp GG UNICODE typedef unsigned short UChar16 typedef signed int Bie imguz 32 p int GUIAPI MB2WCEx PLOGFONT log font void dest BOOL wc32 const unsigned char mstr int n ddefine MB2WC log font dest mstr n N MB2WCEx log font dest sizeof wchar t int GUIAPI WC2MBEx PLOGFONT Fort define WC2MB log font s wc N WC2MBEx log font s unsigned char s UChar32 wc int GUIAPI MBS2WCSEx PLOGFONT log font void const unsigned char mstr ne dest be ms Mens define MBS2WCS log font dest mstr MBS2WCSEx log font mstr len n NULL mp OW sizeof wchar t mm Er ny Best 190 BOOL wc32 ine a UChar32 wc MiniGUI V2 0 4 q nman 68246 fr int GUIAPI WCS2MBSEx PLOGFONT log font unsigned char dest const void wcs int wcs len BOOL wc32 int n nemis cre vie diwesi lemi ddefine WCS2MBS log font dest wcs wcs len n N WCS2MBSEx log font dest wcs wcs len sizeof wchar t 4 N n NULL MB2WCEx MBS2WCSEx
244. 1 SB PAGEUP SB PAGEDOWN SB PAGELEFT SB_PAGERIGHT HUMBTRACK IParam SB THUMBPOSITION M HAMIR LEFT RIGHT UP DOWN TOP BOTTOM 8 3 SB BS Scroll Bars Pressed SB LINEUP or SB LINELEFT gt Pressed SB_PAGEUP or SB_PAGELEFT YM Pressed SB THUMBTHACK Pressed SB PAGEDOWN or SB_PAGERIGHT Pressed SB LINEDOWN or SB LINERIGHT noe t M 8 3
245. 9 2 3 N 91 MiniGUI V2 0 4 NMOAN a hu ERZEK TF SetCapture ReleaseCapture MiniGUI x HWND GUIAPI SetCapture HWND hWnd void GUIAPI ReleaseCapture void HWND GUIAPI GetCapture void GetCapture
246. 8 4 84 MiniGUI V2 0 4 ee nman 68946 fr 9 MiniGUI Mini GUI 9 1 9 1 1 8 9 4 MiniGUI 9 1 MiniGUI MiniGUI MiniGUI MiniGUI 255 129 PC lt minigui common h gt
247. LVM_COLSORT a alee SendMessage hwndListView LVM COLSORT nCol 0 nCol Ud T 381 MiniGUI V2 0 4 nman PP strcasecmp LVM_SETSTRCMPFUNC tB EE BE ER SendMessage hwndListView LVM SETSTRCMPFUNC 0 LPARAM pfnStrCmp pfnStrCmp STRCMP M ON SIRISMPMEconstechan mens clo co nn s1 s2 n 0 0 0 32 2 5 LVS_TREEVIEW LVM GETRELATEDITEM
248. TabbedTextOutEx K TAB 14 1 TextOut TabbedTextOut TabbedTextOutEx Textout GB2312 Song 16x16 ABCD1234 EFGHIJK LMNOPQRST UVWXYZ 01 23456789 ABCD EFGHIJK LMNOPQRST UVWXYZ 01234 The quick fox jumps Over the lazy dog TabbedTextOutEx am kajsdf jk asdf Ikjfsd askdf asdf iouqwer kjuujker asdfjqweru asdf asfd asdf asdfasdff asdfaf sdf 14 1 TextOut TabbedTextOut TabbedTextOutEx DrawText UTF 16 14 1 DrawText K 14 1 DrawText DT_TOP SE M 3 DT_VCENTER fE3E Hi DT_SINGLELINE DT_WORDBREAK DT CHARBREAK DT_SINGLELINE DTTABSTOP i ILIDUNESUIXT 1
249. src1 W src2 A src2 src1 B MiniGUI GDI GDI 198 MiniGUI V2 0 4 nman 15 2 Alpha SetRasterOperation GetRasterOperation C lt minigui gdi h gt zt define ROP SET define ROP AND define ROP OR ddefine ROP XOR int GUIAPI GetRasterOperation HDC hdc TE 6 SethRasteroperatijon in
250. state erste C C C C C B s i i ERR est TS DE iseto CTRLLISTBOX s s s progressbar CTRLPRORESSBAR E Pesar foreman II mae combobox CTRLCOMBOBX SIGUE CTRI NEWTOOLBAR menubutton CTRL MENUBUTTON propsheer CTRLPROPSHEET serownd CTRLSCROLWND O o KUU forr ScROLMEW enn CTRL WONTHONENDAR EHE dt mgext MiniGUI EIE iu NS gs 18 A MiniGUI CreateWindow 2 CreateWindow CreateWindowEx 5 1 MiniGUI CreateWindow lt minigui window h gt HWND GUIAPI CreateWindowEx const char spClassName const char spCaption DWORD dwStyle DWORD dwExStyle int id int x int y int w int h HWND hParentWnd DWORD dwAddData BOOL GUIAPI DestroyWindow HWND hWnd define CreateWindow class_name caption style id x
251. wParam O LB GETSEL select SendMessage hwndList LB GETSEL index 0 index select 0 0 LB GETSELCOUNT LB GETSELITEMS MESH OE sure ell stes Sel count SendMessage hwndList LB GETSELCOUNT O0 OL SLE Sel coume return gel itema alloca sz eo tiar el C TTE SendMessage hwndList LB GETSELITEMS sel count sel items For Gh c Gp oe rcu xeu 3 sel items i 283 MiniGUI V2 0 4 nman enttC nor ieeaPA BS A 4Z AAASEBAAAXS ssnsss A A 21 2 4 index SendMessage hwndList LB FINDSTRING LPARAM string th string string LB_ERR LB FINDSTRINGEXACT
252. 9 2 9 2 MiniGUI MiniGUI MiniGUI 89 MiniGUI V2 0 4 NMOAN us OOSUOOuLLnu INn i 10
253. GetWindowCallbackProc SetWindowCallbackProc GetWindowAdditionalData SetWindowAdditionalData GetWindowAdditionalData2 SetWindowAdditionalData2 GetWindowCaption SetWindowCaption InvalidateRect DJ im 3 2 GetUpdateRect ClientToScreen ScreenToClient WindowToScreen ScreenToWindow sMainWindow IsControl ShowWindow IsWindowVisible 2 IsWindowEnabled SetWindowBkColor i SetWindowFont i SetWindowCursor i SetWindowCaption i p ScreenToClient i WindowToScreen i ScreenToWindow i lsMainWindow lsContro 44 MiniGUI V2 0 4 r u Is KEnarrrrrrsrs lt rrrn nman ERBIN IsDialog Ja
254. SendMessage hwndEdit PBM STEPIT 0 0 320 MiniGUI V2 0 4 nman EZEK TF 25 3 PBS NOTIFY m PBN_REACHMAX m PBN_REACHMIN 25 4 25 1 createProgressWin destroyProgressWin MiniGUI MiniGUIExt 25 1 25 3 mg samples progressbar c TT Es 25 1
255. TBM_SETPOS TBM GETPOS TBM SETTICKFREQ 1 TBM_GETTICKFREQ TBM SETTIP TBM_GETTIP TBS_NOTIFY m TBN_CHANGE m REACHMAX m TBN_REACHMIN 26 4 26 1 26 3 mg samples trackbar c X fF 326 MiniGUI V2 0 4 nman 26 1 tinenle stdio h dinclude stdlib h dinclude lt string h gt include minigui common h dinclude minigui minigui h dinclude mini
256. x dpt 13 7 GUI GUI Mx K UNICODE GUI MiniGUI UNICODE H o L5 QT Embedded AE UNICODE A GU ZUR T PLA T gt lt 2 OB x AC MiniGUI AA LFF o f gt MiniGUI
257. x1 y1 rw x 1 2 KE rh y 1 2 15 7 MiniGUI GDI
258. 1024x768 DIR 16 Red Hat Linux 9 Debian Linux Fedora Linux 3 usr 5GB usr usr local home var opt 3 Fo nman lusrllocal opt XH 1 5 MiniGUI MiniGUI V2 0 4 3GB MiniGUI MiniGUI MiniGUI 9 MiniGUI GPL
259. DialogBoxIndirectParam int GUIAPI DialogBoxIndirectParam PDLGTEMPLATE pDlgTemplate HWND hOwner WNDPROC DlgProc LPARAM lParam BOOL GUIAPI EndDialog HWND hDlg int endCode void GUIAPI DestroyAllControls HWND hD19g fr DialogBoxIndirectParam pDlgTemplate hOwner DlgProc 49 9 Min nman ERHCE IParam EndDialog J dL i EndDialog rZ 1 4 4 MSG INITDIALOG 4 2 iGUI V2 0 4 DestroyAllControls ELTE Tm P ERR US J A ri E MSG INITDIALOG j DialogBox
260. GetSystemFont font id m SYSLOGFONT DEFAULT RBF m SYSLOGFONT WCHAR DEF RBF SYSLOGFONT_DEFAULT m SYSLOGFONT_FIXED m SYSLOGFONT CAPTION m SYSLOGFONT MENU m SYSLOGFONT CONTROL MiniGUI MiniGUl cfg MiniGUI 189 MiniGUI V2 0 4 phan EREIN 3 1 5 bu ys Um gt X8 si GetCurFont 14 4 DesroyLogFont Jll
261. SVM_GETITEMADDDATA SendMessage hScrWnd SVM GETITEMADDDATA idx hsvi hsvi hsvi 0 idx SVM_SETITEMADDDATA ala ee DWORD addData SendMessage hScrWnd SVM SETITEMADDDATA idx addData idx addData SVM_GETITEMCOUNT int count SendMessage hScrWnd SVM GETITEMCOUNT O0 0 SVM RESETCONTENT SendMessage hScrWnd SVM RESETCONTENT O0 0 30 2 4
262. var tmp m serv accept cli conn name var tmp lt pid gt c project MiniGUI Processes a a W sock write t sock write t sock read t sock_write t write 10ms mginit G m sock read t sock read t read 10ms mginit
263. PowerPC Little Endian Big En m dian IPC MMU CPU System V IPC CPU Linux CPU Ne 11 MiniGUI 12 5 1 MiniGUI Endian native sima sl lawaalea2p MiniGUI Endian
264. pXorBits XOR XOR MiniGUI 16 256 colornum XOR 1 16 4 256 8 10 2 Createlcon mg samples createicon c 10 2 T include lt minigui common h gt dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h AND xoR static BYTE ANDmaskIcon Oxf 0x00 0x00 QFE OXIE 0x00 0x007 oxic Orf 0x00 0x007 0x00 0X00 0xe0 0x0f 0X00 0x00 OOT 0x00 0X00 OZS 0x00 EO OG 0x80 0x03 0x00 0x00 x00 OZOLI 0x00 0x00 0x00 0x00 0
265. 1 HAH ZN dj 79 3 BeginPaint BeginPaint MSG PAINT IParam MSG_PAINT IE F T A JH H AIJE 2C lt 158 I MiniGUI ZN MiniGUI V2 0 4 q nman EndPaint EndPaint ReleaseDC GetClientDC BeginPaint
266. 255x255x255 RGB 16 0 15 256 0 255 16 0 2 16 1 MiniGUI SetPixel RGB SetPixelIRGB RGB2Pixel RGB Ex 13 6 3 313 RE S MiniGUI lt minigui gdi h gt Clipping support I onda UM ATi Gibt
267. GetCursorPos SetCursorPos GDI HDC_SCREEN GetWindowDC GDI K 0 0 GetClientDC BeginPaint GDI MiniGUI
268. Hp index SendMessage 1 GRIDM ADDCOLUMN int index GRIDCELLDATA celldata SendMessage hwndGrid GRIDM_ADDCOLUMN index celldata index celldata GRIDCELLDATA GRIDM DELCOLUMN int index SendMessage hwndGrid GRIDM DELCOLUMN 0 index index GRIDM_GETCOLCOUNT eon tale count SendMessage hwndGrid GRIDM GETCOLCOUNT 0 H SendMessage 1 il 37 2 2 GRIDM SETROWHEIGHT int index int height SendMessage hwndGrid GRIDM SETROWHEIGHT index height Hp index height
269. MiniGUI MSG ACTIVEMENU MiniGUI libvcongui case MSG ACTIVEMENU if wParam 2 CheckMenuRadioItem HMENU lParam IDM 40X15 IDM CUSTOMIZE pConInfo gt termType CheckMenuRadioItem HMENU lParam TDM DEFAULT TDM BIG5 pConInfo termCharset MF BYCOMMAND CheckMenuRadioltem 3 7 1 MDE notebook
270. EM_SETLINEHEIGHT EM_GETLINECOUNT Eee line count SendMessage hwndEdit EM GETLINECOUNT 0 0 22 2 5 EM_LIMITTEXT SendMessage hwndEdit EM LIMITTEXT 10 OL 10 22 2 6 EM_SETREADONLY wParam TRUE wParam FALSE 22 2 7 MiniGUI EM SETPASSWORDCHAR SendMessage hwndEdit EM SETPASSWORDCHAR OL 295 MiniGUI V2 0 4 nma
271. Ff LOWORD lParam HIWORD lParam CE nd SB HORZ FALSE LCLK nd SB HORZ TRUE lt 5 up fe ow hWnd GetSysCharWidth 0 NULL NULL gt Q ow hWnd GetSysCharWidth 0 NULL NULL LINEDOWN 2 HER B SexollWimd else if 82 wParam SB LINEUP ci ow hWnd 0 20 NULL NULL MiniGUI V2 0 4 nman if istart 0 iStart BI FIER 20 28 e ScrollWindow hWnd 0 20 NULL NULL SetScrollPos hWnd SB VERT iStart break case MSG PAINT HDC hdc jnt iy RECT rcClient GetClientRect hWnd amp rcClient hdc BeginPaint hWnd 17 for GL m op 5 x 3 2 eare s ee q rcClient left 0 rcClient right strlen strLine 1 1 iStart iStartPos GetSysCharWidth see top 5 31532100 reelent bottom eelent ope reset n t hac ee eee EndPaint hWnd hdc return 0 e case MSG CLOSE DestroyCaret hWnd DestroyMainWindow hWnd PostQuitMessage hWnd return 0
272. KEE M ge DispatchMessage H DefaultMainWinProc MiniGUI PreDefMainWinProc WPARAM wParam LPARAM lParam int message int PreDefMainWinProc HWND hWnd DefaultDialogProc MiniGUI PreDefDialogProc DefaultMainWinProc
273. at TEXTPOSINFO info unsigned char buff 32 info start pos 5 lem e 105 DUTE SRDE info paragraph index 1 SendMessage hwnd EM GETPARAGRAPHTEXT amp info 0 info TEXTPOSINFO typedef struct TEXTPOSINFO The index of paragraph if value is 1 it will take effect on the whole text int paragraph index The beginning byte position can be copied to the buffer int start pos The maximal number of bytes can be copied to the buffer len The pointer to a buffer receives the text Please make sure buffer size is more than the value of copy len char buff TEXTPOSINFO start pos copy_len paragraph index 1 buff x 22 3 ES NOTIFY EN_SETFOCUS
274. ANIMATION anim CreateAnimationFromGIF89aFile HDC SCREEN banner gif if anim NULL recura T CreateWindow CTRL ANIMATION nm WS VISIBLE ANS AUTOLOOP db 010 10 10 300 200 hWnd DWORD anim 406 MiniGUI V2 0 4 nman 68246 fr CreateWindow ANIMATION dwAddData 36 2 m ANS_AUTOLOOP m ANS_SCALED m ANS_FITTOANI 36 3 m ANM_SETANIMATION ANIMATION ANM GETANIMATION ANIMATION m ANM_STARTPLAY ANM_STARTPLAY ANIMATION ANM_STARTPLAY ANIMATION
275. CE e Ea e SE int bmp index char tip xx DWORD attached 123 MiniGUI V2 0 4 NMUN P void type data id id x y rc_hittest bmp_index 18 Cskin head t bmps
276. GRIDM GETROWHEIGHT 412 MiniGUI V2 0 4 q nman 68246 fr int height int index height SendMessage hwndGrid GRIDM_GETROWHEIGHT 0 index Toh index SendMessage 1 u gt GRIDM_ADDROW int index GRIDCELLDATA celldata SendMessage hwndGrid GRIDM ADDROW index celldata index celldata GRIDCELLDATA GRIDM DELROW int index SendMessage hwndGrid GRIDM DELROW 0 index index GRIDM GETROWCOUNT int count count SendMessage hwndGrid GRIDM GETROWCOUNT 0 H SendMessage 5 37 2 3 GRIDM_SETCELLPROPERTY
277. MSG SYSKEYDOWN MSG_SYSKEYUP MSG_KEYDOWN MSG_KEYUP MiniGUI DefaultMainWinProc wParam IParam SHIFT ALT CTRL 9 1 3 MSG_CHAR MSG_CHAR wParam MSG CHAR TranslateMessage MSG KEYDOWN MSG_SYSKEYDOWN MSG_CHAR MSG_SYSCHAR
278. MiniGUI LBS USEICON LBS CHECKBOX 21 3 279 MiniGUI V2 0 4 NMAN PP LBS AUTOCHECK LBS_MULTIPLESEL FH 21 3 WS BORDER WS VSCROLL WS HSCROLL
279. index SendMessage lParam NULL F BJ SF 280 MiniGUI V2 0 4 q u nman SendMessage LB_ERRSPACE SendMessage LB ERR SendMessage LB OKAY SendMessage LBS SORT LB ADDSTRING SendMessage hwndList LB ADDSTRING 0 LPARAM string LB_INSERTSTRING SendMessage hwndList LB INSERTSTRING index LPARAM string index 4 WA string 4 5
280. 13 3 13 3 StretchBIt StretchBIt bt TES 182 MiniGUI V2 0 4 13 9 GDI RGB 13 9 1 palette 16 4 256 4 8 CCRT 3 RAM FrameBuffer
281. 22 1 Multiple line edit box auto wrap This is a simple edit box It uses fixed svstem Single line edit box using variable width font Multiple line edit box using variable width font This is a single line edit box It uses fixed system font to display text KIRE 3 22 1 Min 22 1 WS CHILD WS VISIBLE WS BORDER font SS mut zl iGUI RISE m ES_UPPERCASE 291 phan MiniGUI V2 0 4 ES LOWERCASE ES PASSWORD C ES_READONLY
282. LVM_GETSUBITEMTEXT LVM_SETSUBITEMTEXT LVM_GETSUBITEMLEN LVSUBITEM subltem HLVITEM hItem int len SendMessage hwndListView LVM GETSUBITEMTEXT hItem LPARAM amp subItem SendMessage hwndListView LVM SETSUBITEMTEXT hlItem LPARAM amp subItem len SendMessage hwndListView LVM GETSUBITEMLEN hlItem LPARAM amp subItem 32 2 3 LVM SELECTITEM int nItem HLVITEM hItem SendMessage hwndListView LVM SELECTITEM nItem hItem hitem hltem X 0 nltem 379 MiniGUI V2 0 4 nman tn mwimUM IBHB ABABBB AAARR595 REAE mm LVM GETSELECTEDITEM HLVITEM hItemSelected hlItemSelected SendMessage hwndListView LVM GETSELECTEDITEM SendMessage
283. MGUI_ReadLE16 MGUI_ReadLE32 MGUI ReadBE16 MGUI ReadBE32 Little Endian MGUI_WriteLE16 MGUI_WriteLE32 Little Endian MGUIL WriteBE16 fll MGUI WriteBE32 FILE out int count MGUI WriteLE32 out count L Little Endian count 12 5 2 4 1
284. MiniGUI MiniGUI Processes MSG_QUIT select select MiniGUI Processes select MiniGUI Threads
285. SendMessage hwndButton BM SETCHECK BST CHECKED 0 t wParam 20 1 BM_GETCHECK sal H K 20 1 272 MiniGUI V2 0 4 rrsssv HI r Ir rss P s nman EZEK TF BST UNCHECKED 0 BST CHECKED 1 BST INDETERMINATE 2 BM SETSTATE Rx SendMessage hwndButton BM SETSTATE BST PUSHED 0 SendMessage hwndButton BM SETSTATE 0 0 BM GETIMAGE BM SETIMAGE int image type PBITMAP btn bmp HICON btn icon int ret val SendMessage hwndButton BM GETIMAGE WPARAM amp image type 0 if image type BM IMAGE BITMAP btn bmp PBITMAP ret val else ET
286. ShowCursor 1 1 0 10 2 4 ClipCursor 108 MiniGUI V2 0 4 EE S S II rr Ng r nman void GUIAPI ClipCursor const RECT prc prc prc X NULL ClipCursor ClipCursor GetClipCursor void GUIAPI GetClipCursor RECT prc 10 2 5 MiniGUI MiniGUI cfg bs b cursorinfo 3 4 XE X T R Br JE RUE DERI Br A 26 cursorinfo cursornumber
287. int nTextMax Tuis yaspa E COLOR DWORD image LVSUBITEM typedef LVSUBITEM PLVSUBITEM flags LVFLAG_BITMAP LVFLAG_ICON flags LVFLAG_BITMAP nltem subltem LVM_SETSUBITEM wParam nltem pszText nTextMax LVM SETSUBITEM LVSUBITEM pszText nTextMax nTextColor LVM_SETSUBITEMCOLOR image flags LVFLAG_BITMAP LVFLAG_ICON
288. CreatePopupMenu 69 human CRKNE Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 REGE Sly HMENU hmnu MENUITEMINFO mii memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING mii id 0 mii typedata DWORD hmnu CreatePopupMenu amp mii memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING mii state 0 mii id IDM NEW mii typedata DWORD InsertMenuItem hmnu 0 TRUE amp mii 7 2 2 hmnu RF fH o TrackPopupMenu CreatePopupMenu int GUIAPI TrackPopupMenu HMENU hmnu UINT uFlags x y uFlags m TPM_LEFTALIGN 3 m TPM_CENTERALIGN m TPM RIGHTALIGN m TOPALIGN m TPM_VCENTERA
289. IAL IAL iPAQ COMPAQ iPAQ StrongARM PC PC ENTER 18 2 y 18 2 iPAQ Crc ial ipaq c Hinclude stdio h dinclude stdlib h 255 MiniGUI V2 0 4 nman EHI imclude lt string h gt dinclude unistd h dinclude sys ioctl h dinclude sys poll h include linux kd h dinclude lt sys types h gt dinclude sys stat h HRinclude fcntl h dinclude common h Hifdef include misc h HRinclude ial h include ipag h dinclude linux h3600 ts h for data reading from dev hs3600 ts typedef struct unsigned short b unsigned short x unsigned short y unsigned short pad POS Static unsigned char state NR KEYS static inte ts
290. hddc dx dy dwRop 13 2 BitBlt mg samples bitblt c 13 2 BitBlt include minigui common h include lt minigui minigui h gt include minigui gdi h include lt minigui window h gt static int BitbltWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HDC hdc us VR switch message case MSG_PAINT hdc BeginPaint hWnd SetBrushColor hdc PIXEL blue Weele ke 10 30 7 tor 5v e 0p s 2407 y ce 29 1 mee a MO Mcr PM 219 BitBlt lt 180 MiniGUI V2 0 4 q nman 68946 fr Diesle Wee 0 20 20 Mer 55 y O EndPaint hWnd hdc return 0 case MSG CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return Oy return DefaultMainWinPro
291. 1 SetWindowText GetDlgItem GetParent hwnd IDC PROMPT prompts id IDC LAMIA TE static int DialogBoxProc2 HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_INITDIALOG INE abe from ME IDC_LAMIAN de IDC SHUIJIAO i SetNotificationCallback GetDlgItem hDlg i my notif proc return T case MSG_COMMAND switch wParam qase TFDOK case IDCANCEL EndDialog hDlg wParam break break return DefaultDialogProc hDlg message wParam lParam int MiniGUIMain int argc const char argv ifdef MGRM PROCESSES JoinLayer NAME DEF LAYER button 0 0 276 MiniGUI V2 0 4 ssFF rT rss aa nman endif DigYourTaste controls CtrlYourTaste DialogBoxIndirectParam amp DlgYourTaste HWND DESKTOP DialogBoxProc2 0L return 0 ifndef MGRM PROCESSES dinclude minigui dti c dendif TEE XXHE pishpa te C Ix C ALISRRRBE C Tianjin fired dough twist C MARDEK Mihm 6 Eti EAER Ht we 20 5 277 MiniGUI V2 0 4 nman ia a rr II aaj 278 MiniGUI V2
292. SPS AUTOSCROLL SendMessage hwndSpinBox SPM DISABLEDOWN 0 0 SendMessage hwndSpinBox SPM ENABLEDOWN 0 0 SendMessage hwndSpinBox SPM DISABLEUP O0 0 SendMessage hwndSpinBox SPM ENABLEUP O0 0 34 2 3 SPM_SETTARGET HWND hTarget SendMessage hwndSpinBox SPM SETTARGET 0 LPARAM hTarget MSG_KEYDOWN MSG KEYUP wParam SCANCODE CURSORBLOCKUP SCANCODE CURSORBLOCKDOWN IParam 396 MiniGUI V2 0 4 nman KS SPINPOST SPM_GETTARGET HWND hTarget hTarget SendMessage hwndSpinBox SPM SETTARGET 34 3 SPN_REACHMAX SPN_REACHMIN 34 4
293. helloworld helloworld minigui 4 MiniGUI MiniGUI Threads pthread pthread POSIX MiniGUI Threads i UNUM MiniGUI libmgext libvcongui _MiniGUL _MiniGUL JPEG PNG FEE x Bs MiniGUI _ MiniGUI Processes helloworld MiniGUI mginit MDE mginit helloworld helloworld helloworld helloworld 2 1 16 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu RHEAN Only i s MiniGUI Threads MiniGUI S
294. BitBlt DC DC BitBlt 15 5 GDI GDI FilBox FilCircle GDI KAH Noe nt deep Ue DXC akele wp chm 15 vorid euvrApre lee nt ont ITEE BOOL GUIAPI ScaleBitmap BITMAP dst const BITMAP src BOOL GUIAPI GetBitmapFromDC HDC hdc int x int y int w int h BITMAP bmp 203 huan MiniGUI V2 0 4 gal pixel GUIAPI GetPixelInBitmap const BITMAP bmp int x int y BOOL GUIAPI SetPixelInBitmap const BITMAP bmp int x int y gal pixel pixel m FilBox KAARE A J63 BR TE XC UM o m FillCircle m ScaleBitmap BITMAP m GetBitmapFromDC BITMAP m GetPixellnBitmap BITMAP m SetPixellnBitmap BITMAP
295. E CreateMainWindow CreateWindowEx dwExStyle WS EX 26 lt minigui window h gt WS_ dwStyle 3 1 MiniGUI V2 0 4 ssrvr Wc r nman EZEK TF 3 1 WS_NONE WS_VISIBLE WS DISABLED WS CAPTION WS SYSMENU LIS EXERCERE Ws EXNONE 44 RAS WS EX TOOLWINDOW I IT EN Tooltip Xf UXWIDT TOAENTH m SEE EXU ESSE WS EX CLIPCHILDREN i BegainPaint JH
296. RECT m InflateRect RECT m InflateRectToPt RECT PtlnRect RECT 13 5 2 MiniGUI MiniGUI MiniGUI lt minigui gdi h gt typedef struct CLIPRECT RECTE Sr ie P CLERICIS DERE ifdef USE NEWGAL ptructoc dendif CLIPRECT typedef CLIPRECT PCLIPRECT bvpederestrocteN e niPRGN ifdef USE NEWGAL BYTE type type of region BYTE reserved 3 endif RECT rcBound PCLIPRECT head PChIPRECT tail PBLOCKHEAP heap CLIPRGN
297. minute offset if minute 0 minute 59 if minute 59 minute 0 else change hour hour offset hour 0 hour 23 Iona hour 0 Sprintf time 02d 02d 02d hour minute second SetWindowText hwnd time SendMessage hwnd EM SETCARETPOS 0 caretpos 65 MiniGUI V2 0 4 nman static int TimeEditBox HWND hwnd int message WPARAM wParam LPARAM lParam on down up if message MSG_KEYDOWN switch wParam case SCANCODE CURSORBLOCKUP on down up hwnd 1 return 0 case SCANCODE CURSORBLOCKDOWN on down up hwnd 1 return 0 case SCANCODE PAGEUP on down up hwnd 10 return 0 case SCANCODE PAGEDOWN on down up hwnd 10 return 0 case SCANCODE CURSORBLOCKLEFT case SCANCODE CURSORBLOCKRIGHT break Geass return 0 if message MSG KEYUP message MSG CHAR return o r
298. HLVITEM hItem int nItem SendMessage hwndListView ITEM nItem hItem SendMessage hwndListView QJALLITEM 0 hitem hltem X 0 nltem LVM_SETSUBITEM LVM_SETSUBITEMTEXT LVM SETSUBITEMCOLOR LVM_GETSUBITEMTEXT LVM SETSUBITEM LVM_FILLSUBITEM LVSUBITEM subltem HLVITEM hItem SendMessage hwndListView LVM SETSUBITEM hItem LPARAM amp subItem hitem subltem LVSUBITEM typedef struct LVSUBITEM DWORD flags int nItem int subItem 378 MiniGUI V2 0 4 Ts stascsrmn n sas ssrsrsr a nman cbar pszText
299. SendMessage hwndButton BM SETIMAGE BM IMAGE BITMAP btn bmp SendMessage hwndButton BM SETIMAGE BM IMAGE ICON btn icon BM CLICK 20 3 BS NOTIFY m BN CLICKED 0 BN CLICKED MSG COMMAND wParam BS NOTIFY m BN PUSHED BN_UNPUSHED 273 human m DBLCLK m BN_SETFOCUS m KILLFOCUS 20 4 MiniGUI V2 0 4
300. Z 17 1 2 MiniGUI MDE mginit AboutMiniGUI AboutMDE 17 1 3 mginit 17 1 i 11 17 1 MDE mginit SL MiniGUIExt CoolBar mginit rc
301. right gt left j H bottom gt top m CopyRect T tt 168 MiniGUI V2 0 4 nman EqualRect RECT RECT IntersectRect RECT FALSE HZ RARE EX m Doeslntersect IsCovered RECT A ETEME RECT H B B RECT B RECTA m UnionRect FALSE m GetBoundRect SubstractRect 4 OffsetRect
302. sa s Oa as 40 345 8 MSC hr aci e RR OE da EX ap RE Ea cesa dad 40 84 6 MSG Fw Facta iE de 41 41 NT 42 9 43 dot ADOS SDESTRUT e tinae 43 3 5 a E a E E 44 4 NC IU EREM MM 47 ai SEE uu TO E OT mms 47 E 47 4 3 ob Ta e E RE B 49 4 4 MSG_INITDIALOG RE 50 5 E err iBny M 51 CA E AINE E E 52 SES 000 a e E 55 55 5 2 4 56 5 3 RR 58 IV MiniGUI V2 0 4 q nman 5 4 61 B3 ua EE E OE 63 6 RS u RR 63 ss ci sunman TET 63 63 ee 64 d ME 69 7 csv E 69 yv ed qo Em 69 1 G SS LO EM 69 7 2 2 c 70 2 2 MENULTEMINFO Afi eoa ss iirskus Edo dro Pha EP 71 E E Pid ded ae tacit 72 7 2 5 E ERE 73 MSG C TTVEMENIPS BL oo oe Peace ran ea dA ERE
303. si nrmslider t thumb_bmp_index m SI_NRMSLIDER_HORZ m SI NRMSLIDER VERT m SI NRMSLIDER STATIC skin_item_t style SI NRMSLIDER HORZ SI _NRMSLIDER_STATIC skin get slider info skin set slider info skin scale slide pos BOOL ekia ger Slider iato skia heall ne ene BOOL okin Hei Elices tato akla heel es kia bac Const ade Slicer Eie imt skinigetithumbiposi skiniheadit skin ROOMESE elnino SLs mn me tiskin iat T piqtu mitesiimmwscalessitiderSposs constesuiemsisdert org na skin get slider info sie slider t skin set slider info skin get thumb pos skin set thumb pos skin scale slider pos
304. Hl MiniGUI 7E BeginPaint GetClientDC EndPaint BeginPaint MSG_PAINT MSG_PAINT 162 MiniGUI V2 0 4 q L nman 68946 fr MSG PAINT HDC hdc BeginPaint hWnd zor 1 95 3 10 es iecit edite Once NET Fu iklan oss nls seems e tereg esj e S Ne cem EE EndPaint hWnd hdc _ LL L 5 i l l X GetClientDC ReleaseDC GetDC GetClientDC
305. Setpeneapety bcc 20 SetPenWidth hdc 20 I ee mele m0 0 Q 1190 5 SetBrushType hdc BT OPAQUE STIPPLED ArcEx hdc 400 100 200 300 180364 1803464 Ahlak ARE UnloadBitmap amp bitmap renditi A ADV 2DAPI 224 MiniGUI V2 0 4 nman ERBEN ines and curves and curves transparent bitmaps alpha blending bitmaps and blitting Complex region Type J YUV overlay displa Type K Advanced 2D functions Type G to quit 15 14 MiniGUI MiniGUI MiniGUI DC GDI 15 14 1 MiniGUI
306. status 0 ReleaseCapture gt RBN np 92 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu RHEAN Only nman InvalidateRect hWnd NULL TRUE break case MSG PAINT hdc BeginPaint hWnd if status SetBkMode hdc BM TRANSPARENT TextOut hdc 0 0 pressed EndPaint hWnd hdc return 0 case MSG_DESTROY return 0 return DefaultControlProc hWnd message wParam lParam BOOL RegisterMybutton void WNDCLASS WndClass WndClass spClassName mybutton WndClass dwStyle WndClass dwExStyle WndClass hCursor WndClass iBkColor WndClass WinProc 0 GetSystemCursor 0 PIXEL lightgray MybuttonWindowProc Hog oa H return RegisterWindowClass amp WndClass main windoww proc Static int CaptureWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG_CREATE lt RegisterMybutton CreateWindow mybutton WS VISIBLE WS CHIbD MYBUTTON 56 6 ws ODE break case MSG_CLOSE DestroyAllControls
307. typedef struct CONTAINERINFO typedef CONTAINERINFO PCONTAINERINFO WNDPROC user proc user defined window procedure of the container TE Ono number of controls PCTRLDATA controls pointer to control array DWORD dwAddData additional data controInr controls CTRLDATA CONTAINERINFO dwAddData SVM RESETCONTENT SendMessage hScrWnd SVM RESETCONTENT O0 0 29 3 2 SVM GETCTRL HWND hCtrl HCtrl SendMessage hScrWnd SVM GETCT SVM GETFOCUSCHILD HWND hFocusCtrl HFocusCtrl SendMessage hScrWnd SVM GETFOCUSCHILD EON 29 3 3
308. GRIDCELLDATA va mask of properties TEM Sy Dai N ry OGVIT 2o WIT EW EM TET typedef struct _GRIDCELLDATA can be OR ed with following values a IR P 16 I EM EM_FON Xm 3 3 3b OB 3 03 EE TEM IR BGCOLORNn AL spy 1 Q ITE M M INCONTENTNn ALLCONTENT n L FGCOLORNn icon IMAGENn CONTENT n 2x DWORD mask DWORD style e 7 cos Toco ice hor Fc E Teram cos o ose Were lo fes wj PLOGFONT So TODE icon PBITMAP image void content GRIDCELLDATA content GRIDCELLDATAHEADER char xx int size xx buff dae diese Towe p GRIDCELLDATAHEADER
309. MiniGUI 7 L update mouse get mouse xy x y set mouse xy get mouse button MOUSE LEFTBUTTON IAL MOUSE MIDDLEBUTTON IAL MOUSE RIGHTBUTTON Set mouse range update keyboard get keyboard state 1 suspend keyboard resume keyboard
310. Normal label item info structure typedefaesitmuctesiemsimllabelNs char label xx DWORD color xx DWORD color focus xx DWORD color click xx ES si_nrmlabel_t skin get item label skin set item label 1 skim ekin per ieem lebel akin hacac es ekim dat dch Chers label 128 MiniGUI V2 0 4 nman 68946 fr 11 2 6 skin item t LE AN RE IER 2 o ATIS HI style SI TYPE BMPLABEL type data si bmplabel t Bitmap label item info structure typedef struct si bmplabel s xx char label
311. ZNOP SETACTIVE z node ZNOP_ENABLEWINDOW z node disabled enabled ZNOP_STARTDRAG z node ZNOP_CANCELDRAG z node ZNOP CHANGECAPTION z node gt ci idx znode z M OnLockClientReq OnTrylockClientReq OnUnlockClientReq MiniGUI Processes socket minigui minigui h typedef int ON LOCK CLIENT REQ void ON LOCK CLIENT REQ OnLockClientReq typedef int ON TRYLOCK CLIENT REQ void ON TRYLOCK CLIENT REQ OnTrylockClientReqg typedef int ON TRYLOCK CLIENT REQ void ON UNLOCK CLIENT REQ OnUnlockClientReg mginit MiniGUI
312. length SendMessage hwndList LB GETTEXTLEN index 0 length SendMessage hwndList LB GETTEXT index LPARAM buffer length NULL buffer LB GETTEXTLEN LB SETTEXT SendMessage hwndList LB SETTEXT index buffer LB GETITEMDATA LB SETITEMDATA HICON hIconl LISTBOXITEMINFO lbii hlIconl LoadIconFromFile HDC SCREEN res audio ico 1 282 MiniGUI V2 0 4 srss isTKaisx m T r rss nman amp 244 fF ibid hroom
313. 29 3 1 SVM_ADDCTRLS wParam IParam CTRLDATA controls ctrl nr SendMessage hScrWnd SVM ADDCTRLS WPARAM ctrl nr LPARAM controls 349 MiniGUI V2 0 4 nman PP SVM_ADDCTRLS CreateWindow 1 SVM_SETCONTRANGE CONTAINERINFO
314. PF m CB_GETEDITSEL EM_GETSEL 21 22 W CB_SPIN wParam 0 1 m PageUp PageDown wParam 0 1 Dui m CB_GETDROPPEDCONTROLRECT JRH EHEH F 1 7136 X IAE JE A E m CB_GETDROPPEDSTATE 306 23 2 2 3t An At 3 3E 69 2 MiniGUI V2 0 4 q nman m CB_GETSPINRANGE
315. PSM_REMOVEPAGE wParam SendDlgItemMessage hDlg IDC PROPSHEET PSM REMOVEPAGE 0 0 28 2 4 PSM_GETPAGE uni Pn hwnd SendDlgItemMessage DC PROPSHEET PSM GETPAGE index 0 index index SendDlgItemMessage hDlg IDC PROPSHEET PSM GETPAGEINDEX hwnd 0 340 MiniGUI V2 0 4 ee nman CreateWindow
316. BLOCKHEAP RECT BLOCKHEAP 169 Fo nman MiniGUI V2 0 4 static BLOCKHEAP sg MyFreeClipRectList CLIPRGN my region InitFreeClipRectList InitClipRgn amp sg MyFreeClipRectList amp my regioni Eg fE 2 amp sg MyFreeClipRectList BLOCKHEAP m SetClipRgn m ClipRgnCopy m ClipRgnlntersect m GetClipRgnBoundRect IsSEmptyClipRgn m EmptyClipRgn m AddClipRect
317. IVITEMINFO ivii SendMessage hlIconView IVM ADDITEM LPARAM amp ivii ivii IVITEMINFO IVITEMINFO Z typedef struct IVITEMINFO ritem PBITMAP bmp 421 V2 0 4 MiniGUI nman 62946 fi const char label DWORD addData DWORD dwFlags IVITEMINFO 0 IVM_SETITEMSIZE int width int height SendMessage hIconView IVM SETITEMSIZE width height Hh width height ScrollView m IVM_RESETCONTENT SV m m IVM_SETITEMDRAW SVM m m E m I
318. MSG NCRBUTTONUP MSG NCLBUTTONDBLCLK MSG NCRBUTTONDBLCLK 90 MiniGUI V2 0 4 ee nman IParam x y wParam window h HT define HT UNKNOWN 0x00 ddefine HT OUT 0x01 define HT_MENUBAR 0x02 define HT TRANSPARENT 0x03 Hdefine HT BORDER TOP 0x04 ddefine HT BORDER BOTTOM 0x05 ddefine HT BORDER LEFT 0x06 define HT BORDER RIGHT 0x07 define HT CORNER TL 0x08 HWdefine HT CORNER TR 0x09 define HT CORNER BL OxOA define HT CORNER BR OxOB HWdefine HT CLIENT 0x0C define HT NEEDCAPTURE 0x10 define HT_BORDER 0x11 define HT_NCLIENT 0x12 define HT_CAPTION 0x13 define HT ICON 0x14 ddefine HT CLOSEBUTTON 0x15 define HT MAXBUTTON 0x16 ddefine HT MINBUTTON 0x17 ddefine HT HSCROLL 0x18 ddefine HT VSCROLL 0x19
319. MSG_RBUTTONUP MSG LBUTTONDBLCLK MSG_RBUTTONDBLCLK Param x F y 0 0 IParam CTRL SHIFT CTRL SHIFT IParam amp KS_SHIFT TRUE E SHIFT MSG NCLBUTTONDOWN MSG_NCLBUTTONUP MSG NCRBUTTONDOWN
320. MiniGUI Processes typedef int SRVEVTHOOK PMSG pMsg pMsg HOOK_GOON HOOK_STOP mginit SRVEVTHOOK GUIAPI SetServerEventHook SRVEVTHOOK SrvEvtHook VA EROR n RI J F BR WALT RE EL HU ZR ER AR PRSE TRI 314 R EE 5 PRINT 3135 8 P Pi Di 97 MiniGUI V2 0 4 nman ia a rr II aaj 98 MiniGUI V2 0 4 10 10 1
321. return DefaultMainWinProc hWnd message wParam lParam Static void InitCreateInfo PMAINWINCREATE pCreateInfo pCreateInfo gt dwStyle WS BORDER WS CAPTION WS HSCROLL WS VSCROLL pCreateInfo dwExStyle WS EX NONE WS EX IMECOMPOSE pCreateInfo spCaption The scrollable main window pCreatelnfo shMenu D pCreateInfo hCursor GetSystemCursor 0 porestelnto shlicon 0 pCreateInfo MainWindowProc ScrollWinProc pereateInfo lIx 05 pCcreatelnfo sty 0 pCreateInfo srx e 400 pCreatelnfo sby e 2805 pCreateInfo iBkColor COLOR lightwhite pCreateInfo dwAddData 0 pCreateInfo hHosting HWND DESKTOP II int MiniGUIMain int args const char arg l MSG Msg MAINWINCREATE CreateInfo HWND hMainWnd ifdef MGRM PROCESSES JoinLayer NAME DEF LAYER scrollbar 0 0 endif 83 MiniGUI V2 0 4 nman InitCreateInfo amp CreateInfo hMainWnd CreateMainWindow amp CreateInfo if hMainWnd HWND INVALID return 12 ShowWindow hMainWnd SW SHOW while GetMessage amp Msg hMainWnd DispatchMessage amp Msg MainWindowThreadCleanup hMainWnd even ifndef _MGRM_PROCESSES dinclude minigui dti c dendif 8 4 8 1
322. 336 MiniGUI V2 0 4 68946 fr 28 28 1 MiniGUI 28 1 CT
323. H m ANM_PAUSE_RESUME m ANM STOPPLAY ANIMATION E M 36 4 amp 36 1 mg samples animation c 36 1 Static int AnimationWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG CREATE ANIMATION anim CreateAnimationFromGIF89aFile HDC SCREEN banner gif if anim NULL Tie age SetWindowAdditionalData hWnd DWORD anim CreateWindow CTRL ANIMATION 407 MiniGUI V2 0 4 nman WS VISIBLE ANS AUTOLOOP 100 10 10 300 200 hWnd DWORD anim SendMessage GetDlgItem hWnd 100 ANM STARTPLAY 0 0 CreateWindow CTRL ANIMATION nm WS VISIBLE ANS AUTOLOOP 2007 10 210 300 200 hwnd DWORD anim break case MSG LBUTTONDOWN SendMessage GetDlgItem hwna 200 ANM STARTPLAY 0
324. MiniGUI MiniGUl cfg CreateLogFont CreateLogFontByName CreateLogFontlndirect SelectFont DestroyLogFont lt minigui gdi h gt PLOGFONT GUIAPI CreateLogFont const char type const char family 188 MiniGUI V2 0 4 human 68246 fr char Eip const char charset char weight char slant char other char underline char struckout ime suze rocatc ion PLOGFONT GUIAPI CreateLogFontByName const char font name PLOGFONT GUIAPI CreateLogFontIndirect LOGFONT logfont void GUIAPI DestroyLogFont PLOGFONT log font void GUIAPI GetLogFontInfo HDC hdc LOGFONT log font PLOGFONT GUIAPI GetSystemFont int
325. MiniGUI MiniGUI 371 MiniGUI V2 0 4 phan HEH ERHCE 372 32 1 MiniGUI V2 0 4 lo FRA KF mgext E EL FUIS 75 2H 9 CreateWindow listview RKA header mgext E CTRL_LISTVIEW
326. RGB YUV f RGBtoYUV r g b yuv vuv nm op 0 yuv 01 if x 2220 amp amp y 2 220 op 1 yuv 2 2 11 yuv 11 vov UnlockYUVOverlay void Draw void RECT rect ine i for i 30 i lt 200 i rect left i pece rect right rect left overlay gt w rect Dottomsrecrt top 4 om vuv fius pc DisplayYUVOverlay overlay amp rect peine Te p Te 5 nt EIE void test yuv HWND hwnd HDC hdc Uint32 overlay format inte iy 32 pc pic CreateMemDC 400 300 32 MEMDC FLAG HWSURFACE 0x00FF0000 0x000 000FF 0x00000000 DC LoadBitmapFromFile pic amp logo res sample bmp 217 MiniGUI V2 0 4 nman ERBEK NE aota emaa one 0 9 O0 0 Glos9 s vuv Y veu overlay format GAL YV12 OVERLAY vov overlay CreateYUVOverlay logo bmWidth logo bmHeight overlay format hdc ii oyerlay Nomi d f o int
327. TYPE_BARITEM TYPE_BMPITEM Bmp ItemHint TPYE_TEXTITEM Caption dwAddData CBM ENABLE ahne BOOL beEnabled SendMessage hwndCoolBar CBM_ENABLE id beEnabled id id ffi beEnabled TRUE FALSE 35 3 M 1 35 1 ddefine ITEM NUM 10 Statuieaconstackhamn ecapits oni Qu mj 2 3m man ngu 6 7 bs static const char ns 0 Ju BS 5 6 7 8 ba 35 1 5
328. case MSG_DESTROY DestroyAllControls hWnd return 0 case MSG_CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam 267 MiniGUI V2 0 4 III 1 rO s R i ERZEK TF Demo for STATIC Control I am double clicked 19 6 268 MiniGUI V2 0 4 20 human MiniGUI H FEJT tB u V n F ll CTRL_BUTTON CreateWindow 20 1 20 1 1 CreateWindow CreateWindow
329. hdc bmp BIPMAP le 1 lip ip PF hdc 1 1 64 205 MiniGUI V2 0 4 NMUN PP hdc bmp BIPMAP Ix ty DC angle 1 1 64 w h m RotateScaledBitmapHFlip RotateScaledBitmapVFlip 15 6 3 MiniGUI RoundRect BOOM EXUDID XIS E ne ZOnE yO nn hdc x0 y0
330. MCM_SETCURMONTH 390 MiniGUI V2 0 4 nman SETCURYEAR iine Clg p int month int year SendMessage hwndMonthcal MCM SETCURDAY day 0 SendMessage hwndMonthcal MCM SETCURMONTH month 0 SendMessage hwndMonthcal MCM SETCURYEAR year 0 by day month year MCM SETCURDATE SYSTEMTIME systime SendMessage hwndMonthcal MCM SETCURDATE 0 LPARAM amp systime MCM SETTODAY SendMessage hwndMonthcal MCM SETTODAY 33 2 3 MCM_GETCOLOR MCM_SETCOLOR MCCOLORINFO color SendMessage hwndMonthcal MCM GETCOLOR LPARAM amp color SendMessage hwndMonthcal MCM SETCOLOR LPARAM amp Color color MCCOLORINFO typedef struct MCCOLORINFO
331. MSG CREATE MSG_NCCREATE MSG DESTROY fil MSG CLOSE m MSG KEYDOWN MSG CHAR MSG LBUTTONDOWN fll MSG MOUSEMOVE m MSG_SETCURSOR MSG SETFOCUS MSG_KILLFOCUS MSG_MOUSEMOVEIN wParam IParam MiniGUI MSG USER define MSG MYMESSAGEI MSG USER 1 define MSG MYMESSAGE2 MSG USER 2 3 3 3 MiniGUI m
332. mg samples configure in Makefile am configure in AM CONDITIONAL MGRM THREADS test x threads version Xyes AM CONDITIONAL MGRM PROCESSES test x procs version xyes L MGRM STANDALONE test x standalone version xyes AM CONDITIONAI MiniGUI MiniGUI Processes MiniGUI Threads MiniGUI Standalone MGRM PROCESSES MGRM THREADS MGRM STANDALONE Makefile am src Makefile am if MGRM PROCESSES noinst PROGRAMS helloworld mycontrol dialogbox input bmpbkgnd simplekey N Scrollbar painter capture bitblt stretchblt loadbmp drawicon N createicon caretdemo cursordemo N Scrnsaver mginit etse noinst PROGRAMS helloworld mycontrol dialogbox input bmpbkgnd simplekey N 245 MiniGUI V2 0 4 nman i a n C niic Ek ft Scrollbar painter capture bitblt stretchblt loadbmp drawicon N createicon caretdemo cursordemo endif mginit SOURCES mginit c Scrnsaver SOURCES scrnsaver c automake MGRM PROCESSES mgini
333. 64 MiniGUI V2 0 4 nman ERBEK NE mg samples timeeditor c 6 1 A4 N H 62 Hinclude stdio h Hinclude stdlib h HRinclude a dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h dinclude minigui mgext h ddefine IDC EDIT 100 ddefine IDC SPINBOX 110 TrueType static PLOGFONT timefont Static WNDPROC old edit proc static void on_down_up HNND hwnd int offset char time 10 int caretpos int hour minute second GetWindowText hwnd time 8 caretpos SendMessage hwnd EM GETCARETPOS 0 0 hour atoi time minute atoi time 3 second atoi time 6 if caretpos 5 change second second offset if second 0 Second 59 if second 59 second 0 else if caretpos gt 2 change minute
334. BOOL GUIAPI DestroyCaret HWND hWnd DestroyCaret 113 huan 68246 fr dul R fe MSG_DESTROY MiniGUI V2 0 4 10 3 2 ShowCaret ur 1 MSG KILLFOCUS PF MSG CREATE H DestroyCaret CreateCaret Tr pesi tc c E za gt XR MSG SETFOCUS HideCaret ZEE df CRT ES jk BOOL GUIAPI ShowCaret BOOL GUIAPI HideCaret ShowCaret T du or Ae EI ES d HWND hWnd HWND hWnd
335. ES_UPPERCASE ES_LOWERCASE ES_READONLY ES_BASELINE ES_AUTOWRAP ES_NOHIDESEL ES_TITLE ES_UPPERCASE ES_LOWERCASE ES_READONLY ES_BASELINE ES_LEFT ES_CENTER ES_RIGHT ES_PASSWORD ES_NOHIDESEL ES_AUTOSELECT ES 22 2 HI MSG GETTEXTLENGTH MSG_GETTEXT MSG SETTEXT 292 GetWindowTextLength GetWindowText MiniGUI V2 0 4 ee nman B SetWindowText 22 2 1 EM_GETCARE
336. W cr y MSG_LBUTTONDOWN GetWindowRect 3 ClipCursor ShowCursor JE bs Eg PE TEARSEMSG RBUTTONDOWN ShowCursor LL um AN 112 MiniGUI V2 0 4 ee nman MSG_SETCURSOR SetCursor 1 trap 10 3
337. include lt stdio h gt stdlib h include lt minigui common h gt include lt minigui minigui h gt dinclude minigui gdi h dinclude minigui window h dinclude minigui control h ddefine IDC LAMIAN 101 ddefine IDC CHOUDOUFU 102 define IDC JIANBING 103 ddefine IDC MAHUA 104 ddefine IDC SHUIJIAO 105 define IDC_XIAN 110 define IDC LA 111 ddefine IDC PROMPT 200 0 TOOP NULL WS BORDER WS CAPTION WS EX NONE OPEEOP Static DLGTEMPLATE DlgYourTaste static CTRLDATA CtrlYourTaste MiniGUI V2 0 4 nman M se E rem a WS VISIBLE SS GROUPBOX Jo 39 39 dis TDC STATIC 0 outton BS_CHECKED WS VISIBLE BS AUTORADIOBUTTON BS CHECKED WS TABSTOP WS GROUP 36 38 88 20 IDC LAMIAN 0 putton WS VISIBLE BS AUTORADIOBUTTON So 20 IDC CHOUDOUFU 0 putton WS_VISIBLE BS_AUTORADIOBUTTON 36 90 88 20 IDC JIANBING Il ZR SUBE 0 putton WS_VISIBLE BS_AUTORADIOBUTTON 3 LIG OS 20 IDC MAHUA R RE 0 putton WS_VISIBLE BS_AUTORADIOBUTTON 36 35 L00 20 IDC_SHUIJIAO Jj A ZL H ZK En 0
338. li int count count SendMessage hwndListView LVM GETCOLUMNCOUNT 0 0 375 MiniGUI V2 0 4 nn a w rT4 u SendMessage it H 3k H E 26 90 9 E o LVM DELCOLUMN ry G e ber SendMessage hwndListView LVM DELCOLUMN nCols 0 nCols LVM_SETHEADHEIGHT int newHeight SendMessage hwndListView LVM SETHEADHEIGHT newHeight 0 newHeight 32 2 2 CreateWindow LVM_ADDITEM HLVITEM hItem HLVITEM hParent LVITEM lvItem hlItem SendMessage
339. max_nr_topmosts max_nr_normals max nr topmosts max nr normals ServerStartup GetLayerlnfo GHANDLE GUIAPI GetLayerInfo const char layer name lace Clients EOD cbe Mae Clil Gree ea NULL SetTopmostLayer DeleteLayer MiniGUI API Reference Manual 246 MiniGUI V2 0 4 ee nman 17 4 Mginit ServerStartup OnNewDelClient mgClients MiniGUI Processes mginit MiniGUI Processes
340. 11 2 1 MiniGUIExt MiniGUI button 3 label slider skin head t DWORD s const B const D int bk nb nr skin it xx xx char name xx eyler Skin header information structure struct ITMAP bmps OGFONT fonts bmp index items Gum E drenas fe RSS DWORD attached xx
341. 13 8 6 bit block transfer RAM MiniGUI BitBIt StretchBlt BitBIt StretchBlt BitBlt BitBIt o GNOME Ep T E p ise SG HDC hddc int dx int dy DWORD dwRop BitBlt GAL GDI BitBlt NEWGAL f GDI BitBlt hsdc sx sy sw sh
342. LoadlconFromMem HICON GUIAPI LoadIconFromFile HDC hdc const void area int which area Windows ICO Drawlcon Drawlcon LoadlconFromFile Createlcon Drawlcon CC 99 MiniGUI V2 0 4 nman py aw com Hiei die oe op wys abad oe ee oreo m hdc B xy 1 ER Br XE FE J II Zc E f A ER B wh m hicon 10 1 drawicon c mg samples drawicon c 10 1 ak dinclude minigui common h dinclude mini
343. TRUE FALSE RotateBitmap rf bmp BIPMAP x ty hdc angle 1 1 64 PivotBitmap hdc DC X bmp BIPMAP x y DC cx 1 64 RotateScaledBitmap cy DC LI A s angle 1 fb Ix ty ang 1 64 w h RotateBitmapVFlip P bmp BIPMAP ty A fv BA DC angle RotateBitmapHF RotateBitmapVFI RotateScaledBitmapVFlip
344. XE JE PP MiniGUI Processes 1 MiniGUI Threads H 8 J 3 2 3 M MiniGUI sz HWND DESKTOP H R MiniGUI F 4
345. include lt stdio h gt stdlib h include lt stdarg h gt HRinclude string h dinclude sys stat h dinclude sys time h dinclude lt sys types h gt dinclude unistd h dinclude errno h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h static HWND createProgressWin HWND hParentWnd char title char label dE Mam e HWND hwnd MAINWINCREATE CreateInfo int ww wh HWND hStatic hProgBar WB ww ClientWidthToWindowWidth WS CAPTION WS BORDER 400 wh El i ric WS CAPTION WS BORDER range 0 70 35 FALSE CreateInfo dwStyle WS ABSSCRPOS WS CAPTION WS BORDER WS VISIBLE CreateInfo dwExStyle WS EX NONE CreateInfo spCaption gabe le CreateInfo hMenu 0 CreateInfo hCursor GetSystemCursor IDC WAIT Createinfo hteoni o0 8 CreateInfo MainWindowProc DefaultMainWinProc ifndef LITE VERSION CreateInfo lx GetGDCapability HDC SCREEN GDCAP MAXX ww 1 321 MiniGU
346. int MiniGUIMain int argc const char argv IDF main MiniGUI MiniGUI MiniGUIMain MiniGUI mginit MiniGUIMain argc argv 5 C main arge argv 2 2 3 MiniGUI Processes ifdef MGRM PROCESSES JoinLayer NAME DEF LAYER helloworld endif JoinLayer MiniGUI Processes _MGRM_PROCESSES 11 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI ign Only RA 105 185 NE MiniGUI Processes MiniGUI MiniGUI MiniGUI Processes ServerStartup uM Seen 9 fprintf stderr Can not start the server of MiniGUI Processes mginit Wn return i Min
347. seat T enim EE SEHEN 81 nman MiniGUI V2 0 4 Static int iStartPos switch message case MSG CREATE eeeonee break case MSG_SHOWWINDOW EnableScrollBar Seu esse l Range ShowCaret hWnd break case MSG SETFOCUS ActiveCaret hWnd ShowCaret hWnd break case MSG KILLFOCUS 0 stderr hWnd hwnd NULL 8 14 Create caret error Nn hWnd SB HORZ FALSE 0 20 SBAVERE 29 s Jp HideCaret break hWnd case MSG LBUT sSetCarecpo break s hWnd l ONDBI H j case MSG LBUTT BUER Z BE XW ShowScrollBar break hw case MSG_RBUTTONDBI ShowScrollBar break hW case MSG_HSCROLL ifs if iStartPos iStartPos ScrollWind else if abig w iStartPos iStartPos ScrollWind break case MSG_VSCROLL if wParam SB e T iStart wParam SB LINERIGHT TR BEUGR T 2 Param SB LINELEFT
348. CB SETCURSEL LB_SETCURSEL CB GETITEMADDDATA LB_GETITEMADDDATA m CB_SETITEMADDDATA LB_SETITEMADDDATA m CB_GETITEMHEIGHT LB_GETITEMHEIGHT m CB_SETITEMHEIGHT LB_SETITEMHEIGHT m CB SETSTRCMPFUNC LB_SETSTRCMPFUNC CB_GETLBTEXT LB_GETTEXT CB GETLBTEXTLEN LB_GETTEXTLEN KH m CB GETCHILDREN wParam IParam m CB_LIMITTEXT EM LIMITTEXT m SETEDITSEL EM_SETSEL
349. DC HAZ Alpha Alpha BitBlt StretchBlt DC SetMemDCColorKey DC BitBlt DC GDI lt minigui gdi h gt define MEMDC FLAG NONE 0x00000000 None ddefine MEMDC FLAG SWSURFACE 0x00000000 DC is in system memory 199 Fo nman Gif MiniGUI V2 0 4 ddefine MEMDC FLAG HWSURFACE ddefine MEMDC FLAG SRCCOLORKEY ddefine MEMDC FLAG SRCALPHA ddefine MEMDC FLAG RLEACCEL 0x00000001 DC is in video memory 0x00001000 Blit uses a source color key 0x00010000 Blit uses source alpha blending 0x00004000 Surface is RLE encoded HDC GUIAPI CreateCompatibleDC HDC hdc HDC GUIAPI CreateMemDC int width int height int depth DWORD flags Uint32 Rmask Uint32 Gmask Uint32 Bmask Uint32 Amask BOOL GUIAPI ConvertMemDC HDC mem dc HDC ref dc DWORD flags BOOL GUIAPI SetMemDCAlpha HDC mem dc DWORD flags Uint8 alpha BOOL GUIAPI SetMemDCColorKey HDC mem dc DWORD flags Uint32 color key void GUIAPI DeleteMemDC HDC
350. SKIN STYLE TOOLTIP NULL NULL 0 8 Skin main items FALSE be const char bmp name Ima Tit ej i o rayo ue E op e L progress on ose vssmenu ena pile p Willy mume tyre MR E urmana TR E prade iat Ciit POS WERE Uie ERR void load skin bmps skin head t skin BOOL load int i bmp num sizeof bmp name sizeof char 1loadg skin bmps pmps Static int main event cb HWND hwnd skin item t item int event void data if event SIE BUTTON CLICKED switch item id 133 MiniGUI V2 0 4 nman case SIID PLAY SIID_PLAY SIE_BUTTON_CLICKED lin break else if event SIE SLIDER CHANGED return l static int msg event cb HWND hwnd int message WPARAM wparam LPARAM lparam int resu lt switch message case MSG_TIMER hostskin get window skin hwnd Skin set thumb pos hostskin SIID PROGRESS cur pos Skneseteitemel abeT s hositskn iS h Tipi Pn bU break return 1
351. old edit proc SetWindowCallbackProc timeedit TimeEditBox Spin CreateWindow CTRL SPINBOX nmn WS CHILD WS VISIBLE IDC SPINBOX 1 ec EG rd cec Wd MSG_KEYDOWN E i SendMessage spin SPM SETTARGET 0 timeedit break case MSG DESTROY DestroyAllControls hWnd DestroyLogFont timefont Te no case MSG CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam This is a time editor Pressing Down Rrrow lUp Rrrouw PaDn and PgUp keys when the box has input focus will change the time You can also change the time bv clicking the SpinBox 11 58 04 R 6 1 67 MiniGUI V2 0 4 nman ia a rr II aaj 68 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 AEGEAN Only nman EZEK TF 7 7 1 7 2 7 2 1 u
352. 12 5 out y vode seale tO Tiacon Comae double Ema Econs da y Corle ote z CIUS keris Gere cx0 0 2 peor exe 350 0 p 12 sham s Error aba 33 p tizdqec E slum y EEOC os anm Enoccdan a ME cM Gee messes Mem cr ES F Toco f Tosmu s F Toco mbi F aix 5x 38 Eso 5 3E 19 F ee os E T 2mu ts Uo 15 slm wes sS sw X 19 153 MiniGUI V2 0 4 NMOAN w k A Meuu rwoe v wi uo ERMMETE MiniGUI m B NEWGAL GDI 154 MiniGUI V2 0 4 human 6 155 MiniGUI V2 0 4 NMAN P 13 GDI Graphics Device Interface GUI GDI GUI MiniG
353. MiniGUI RGBA DC WAR WR WERE Alpha 16 ff DC 16 RGBA HJ 44505 0x0000F000 0x00000F00 0x000000F0 0x0000000F ConvertMemDC DC WZ DC DC L Blit DC DC DC SetMemDCAlpha DC Alpha MEMDC FLAG RLEACCEL DC RLE Alpha DC SetMemDCColorKey T DC ColorKey
354. T see Do Em Voc Ge Umpc ul Re bans degno cone ert MEE o EX Om NE Von da Recitmtesrsectel consi 171 phan MiniGUI V2 0 4 void GUIAPI SelectClipRect void GUIAPI GetBoundsRect BOOL GUIAPI PtVisible HDC hdc BOOL GUIAPI RectVisible HDC hdc ExcludeClipRect E X GetBoundsRect IncludeClipRect ClipRectlntersect SelectClipRect SelectClipRegion XE E J HDC hdc void GUIAPI SelectClipRegion HDC hdc HDC hdc RECT pRect const POINT pPt const RECT prc const CLIPRGN pRgn const RECT pRect bc by HH BEER 25 XE fJ AE J PtVisible RectVisible
355. YUV YUV DisplayYUVOverlay YUV 15 4 YUV WZ Hinclude stdlib h Hinclude stdio h include lt string h gt dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h St aP e PHG static BITMAP logo Static GAL Overlay overlay 216 MiniGUI V2 0 4 nman RGB yuv fH o 1 GI iG B E eo YU V UT E S y cj i9 sie AN yuv 0 2 0 299 r 0 587 g 0 114 b yuv 1 b yuv 0 1 0 565 4 128 2 01 135 2e void ConvertRGBtoYV12 HDC pic GAL Overlay PNE Xy saie yacen p Uint8 op 3 int width logo bmWidth height logo bmHeight Umi Cr 39 vuv MERRE vuv LockYUVOverlay o Convert for y 0 y height amp amp y o h y eol spiels s eesmpsusemss lesa op 1 2 o pixels 1 1 o pitches 11 y 2 op 2 2 o pixels 2 1 o pitches 21 y 2 for x20 x width amp amp x o w X DC RGB GetPixelRGB pic x y amp r amp b
356. on onsen age susmi wJ a BOOL GUIAPI PolygonGenerator void context const POINT pts int vertices CB POLYGON lS x1 X x2 X y Y 15 7 7 flood filling MiniGUI FloodFill FloodFill Flood Filling MiniGUI
357. pts vertices 211 huan 4 MiniGUI V2 0 m SplineTo LineTo pts 4 POINT m Circle sx sy A r Ellipse ZZ WO Cx sy X rx Y ry CircleArc KAA AA 5 sy r ang1 ang2 ang1 ang2 1 64 Circle Ellipse pts 0 pts 1 pts 0 pts 1 int rx ABS pts 1 x pts 0 x int ry ABS pts 1 y pts 0 y if rx ry Circle hdc pts 0 x pts 0l y
358. 23 4 k o 2o 23 4 m CBS_SPINARROW_TOPBOTTOM m CBS_SPINARROW_LEFTRIGHT MiniGUI m CBS_READONLY ES_READONLY m CBS UPPERCASE ES UPPERCASE m CBS_LOWERCASE ES LOWERCASE m CBS_EDITBASELINE ES BASELINE m CBS SORT LBS_SORT 304 MiniGUI V2 0 4
359. ColorSelDialog SELCOLOR OK SELCOLOR CANCEL MiniGUI NEWGAL 8 RJ 7 JE 11 4 MiniGUI V1 6 MiniGUIExt 11 7 TEGEOLEE Lx home stardict dic x 5 35 stardict cdict gb 2 4 2 tar bz2 4483233 35 stardict cedict gb 2 4 2 tar bz2 520307 25 stardict langdao ce gb 2 4 2 tar bz2 7345014 a b AI file 77 xus 11 7 136 MiniGUI V2 0 4 nman 68246 fr ShowOpenDialog PA it amp SC FTT JE XL TA NE int ShowOpenDialog HWND hWnd int lx int ty int w int h PNEWFILEDLGDATA pnfdd hWnd lIx ly w h MiniGUI
360. V2 0 phan MEJET V2 0 4 ERHCE 324 MiniGUI V2 0 4 nman 68946 fr 26 ig CTRL_TRACKBAR CreateWindow 26 1 26 1 26 1 WS CHILD WS VISIBLE TBS NOTIFY TBS NOTIFY 26 2 TBS VERTICAL IIAI 26 2 W M m TBS_TIP 26 1 Min Max m TBS NOTICK m TBS_BORDER 325 Fo nman 26 2
361. comol WS CHILD SS NOTIFY SS SIMPLE WS VISIBLE WS BORDER EE ST Lor 2 level 0 CreateWindow CTRL STATIC Jais e CREE aime cdita or tc airs o a WS CHILD SS NOTIFY SS LEFT WS VISIBLE WS BORDER IDC STATICZ2 5 a CreateWindow CTRL STATIC This is a right aligned static control auto wrap WS CHILD SS NOTIFY SS RIGHT WS VISIBLE WS BORDER TC 10 90 L00 45 CreateWindow CTRL STATIC Jitie de e Cenker oe gratie Camerrol etto marena o Ny WS_CHILD SS_NOTIFY SS_CENTER WS_VISIBLE WS_BORDER IDC STATICA EOM METRO PME A S MIT WT CIONES CreateWindow CTRL STATIC SS LEFTNOWORDWRAP NtTabs are expanded but words are not wrapped Text that extends past the end of a line is clipped WS CHILD SS LEFTNOWORDWRAP WS VISIBLE WS BORDER IDC STATIC 2998 E49 20 ls 9 5 19 2 This is a simple static contri This is a left aligned static icontrol auto wrap This is a right aligned static control auto wrap This is a center aligned static control auto wrap 55 LEFTNOWORDURRP Tabs are expanded but words are not wrapped Text that 19 2 XU 19 1 2
362. define IDI APPLICATION 0 define HAND i ddefine STOP IDI HAND define IDI QUESTION 2 define IDI EXCLAMATION 3 ddefine ASTERISK 4 define IDI INFORMATION IDI ASTERISK MiniGUl cfg 0 4 5 5 6 treeview T H GetLargeSystemlcon GetSmallSystemlcon LoadSystemlcon MiniGUl cfg HICON GUIAPI LoadSystemIcon const char szItemName int which szltemName MiniGUI cfg iconinfo icon0 form ico which 3 LoadSystemlcon LoadlconFromFile
363. dinclude stdio h dinclude minigui common h dinclude minigui minigui h dinclude minigui gdi h dinclude minigui window h Static int HelloWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HDC hdc switch message case MSG PAINT hdc BeginPaint hWnd TextOut hdc 60 60 Hello world EndPaint hWnd hdc ten case MSG CLOSE MiniGUI V2 0 4 nman 68246 fr DestroyMainWindow hWnd PostQuitMessage hWnd EU return DefaultMainWinProc hWnd message wParam lParam int MiniGUIMain int argc const char argv MSG Msg HWND hMainWnd MAINWINCREATE CreateInfo ifdef MGRM PROCESSES JoinLayer NAME DEF LAYER helloworld O 0 dendif CreateInfo dwStyle WS VISIBLE WS BORDER WS CAPTION CreateInfo dwExStyle WS EX NONE CreateInfo spCaption HelloWorld Croatelnfo bMeng s CreateInfo hCursor GetSystemCursor 0 CreateInfo hIcon 0 CreateInfo MainWindowProc HelloWinProc CreateInfo 1x 0 Cresatelnfo ty 05 CreateInfo rx 240 Crosatelnfo by 18905 mes eipmitio ipis eodors Nc one rb wb CreateInfo dwAddData 0 CreateInfo hHosting HWND DESKTOP hMainWnd CreateMainWindow amp CreateInfo if hMainWnd HWND INVALID wetu ShowWindow hMainWnd SW SHOWNORMAL while GetMessage amp Msg hMainWnd TranslateMessage amp Msg DispatchMessage amp Msg
364. ine elr le sba s te it pe eres e pfam ow te Pr Er qupd E f W 3 26 BJ Ext int clr arrowHibk int clr weekcaptbk echte Tre ic l daybk int clr dayHibk GBS H Bm 391 MiniGUI V2 0 4 inte pt ra Pure exe nte dove MCCOLORINFO 33 2 4 MCM_GETMINREQRECTW MCM_GETMINREQRECTH int minw minh minw SendMessage hwndMonthcal MCM GETMINREQRECTW minh SendMessage hwndMonthcal MCM GETMINREQRECTH SendMessage 33 3
365. pdc gt skip_pixel equal_pixel H Lj pdc skip pixel 210 MiniGUI V2 0 4 nman _flood fill draw hline MiniGUI GDI LineTo MiniGUI 4 pratile vote caw pizel voids ome Er nn HDC hdc HDCJ context 2 Puj i ie i e pe mele xis y 52 Eileen ee 552 wu 3 vol DawMy masc EI Ch cic nt Ex v Punt Er 8 pixe pixel gal pixel old brush old bursh SetBrushColor hdc pixle Gnimeneaenemsati
366. typedef struct 6 xx char buff xx nee na et GRIDCELLDATATEXT typedef struct GRIDCELLDATANUMBER double number xx 2f char format timete nmal GRIDCELLDATANUMBER typedef struct GRIDCELLDATASELECTION xx xx Yes nNo char selections xx 7 1 GRIDCELLDATASELECTION typedef struct GRIDCELLDATACHECKBOX BOOL checked xx char text Moses pus lem Cesti GRIDCELLDATACHECKBOX GRIDM SETCOLWIDTH LLL 411 MiniGUI V2 0 4 nman PP CHEKE int index int width SendMessage hwndGrid GRIDM SETCOLWIDTH index width index width GRIDM_GETCOLWIDTH int width int index width SendMessage hwndGrid GRIDM_GETCOLWIDTH index
367. void GUIAPI WindowToScreen HWND hWnd int x int y void GUIAPI ScreenToWindow HWND hWnd int x int y void GUIAPI ClientToScreen HWND hWnd int x int y void GUIAPI ScreenToClient HWND hWnd int x int y WindowToScreen ScreenToWindow ClientToScreen ScreenToClient 13 4 4 MiniGUI 167 MiniGUI V2 0 4 Ek ff void GUIAPI GetViewportExt HDC hdc POINT pPt void GUIAPT GetViewportOrg HDC hdc POINT pPt void GUIAPI GetWindowExt HDC hdc POINT pPt void GUIAPI GetWindowOrg HDC hdc POINT pPt void GUIAPI SetViewportExt HDC hdc POINT pPt void GUIAPI SetViewportOrg HDC hdc POINT pPt void GUIAPI SetWindowExt HDC hdc POINT pPt void GUIAPI SetWindowOrg HDC hdc POINT pPt Get POINT pPt Set
368. 7 1 mt K I d 28 Im I Static HMENU createpmenufile void 73 MiniGUI V2 0 4 nman HMENU hmnu MENUITEMINFO mii memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING mii id O mii typedata DWORD hmnu CreatePopupMenu amp mii memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING mii state 0 mii id IDM NEW mii typedata DWORD InsertMenuItem hmnu 0 TRUE amp mii mii type STP PNG mii state 0 13 IDM_OPEN mii typedata DWORD ImsertMenuItem hmnu 1 TRUE amp mii mii type METISTP TING mii state 0 mii id IDM SAVE mii typedata DWORD ImsertMenuItem hmnu 2 TRUE amp mii mii type MFT STRING mii state 0 IDM_SAVEAS mii typedata DWORD InsertMenuItem hmnu 3 TRUE amp mii mii type MFT SEPARATOR mii state 0 mied Je mii typedata 0 InsertMenuItem hmnu 4 TRUE amp mii mii type MFT_SEPARATOR mii state 0 mmidd EX mii typedata A ImsertMenuItem hmnu 5 TRUE amp mii ESAE mii state 0 mii id IDM EXI
369. 7 1 7 2 7 2 static HMENU CreateQuickMenu void HMENU hNewMenu MENUITEMINFO mii 75 MiniGUI V2 0 4 nman ERBAK NE HMENU hMenuFloat char msg A 5 F n H np 5 pP S nx DE memset amp mii 0 sizeof MENUITEMINFO uel MFT STRING mati EX mii typedata ESI DONOR DIERE hNewMenu CreatePopupMenu amp mii sh s ass MET memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING ma es sro Eales ga mii typedata DWORD msgl il InsertMenuItem hNewMenu i TRUE amp mii hMenuFloat StripPopupHead hNewMenu TrackPopupMenu hMenuFloat TPM CENTERALIGN TPM LEFTBUTTON 40 151 hWnd y 7 2 7 2 Bran A N N 2 poi He 76 MiniGUI V2 0 4 2246 F 8 8 1
370. DWORD colFlags LVCOLUMN typedef LVCOLUMN PLVCOLUMN LVCOLUMN LVM ADDCOLUMN LVM_GETCOLUMN LVM_SETCOLUMN LVM_MODIFYHEAD LVM_ADDCOLUMN LVCOLUMN pszHeadText 0 nCols 1 nCols 0 width 0 nTextMax image pfnCompare PFNLVCOMPARE
371. GRIDCELLS cells GRIDCELLDATA celldata SendMessage hwndGrid GRIDM SETCELLPROPERTY cells celldata cells GRIDCELLS GRIDCELLS typedef struct int row int column int width xx int height GRIDCELLS LH SendMessage OKAY n A WC 413 MiniGUI V2 0 4 nman ia a EISSMMMARAADSDOC HH i i iS Aa 62946 fi GRID ERR GRIDM GETCELLPROPERTY FT gt c Inm GRIDCELLS cells GRIDCELLDATA celldata SendMessage hwndGrid GRIDM GETCELLPROPERTY amp cells celldata Ep cells SendMessage GRID_OKAY celldata
372. MiniGUI MiniGUI MiniGUI F MiniGUI MiniGUI TER GPL MiniGUI MiniGUI MiniGU API Reference Manual MiniGUI V2 0 4 NMOAN ciiEEEEDSAMSEem eeoe ai7 ESEee scEPERsswinn EPH TE MiniGUI 2 0 4 MiniGUI Version 2 0 4 1 6 10 C 2003 2007
373. event data item id event m SIE BUTTON_CLICKED 126 MiniGUI V2 0 4 nman m SIE SLIDER CHANGED m SIE GAIN FOCUS m SIE LOST FOCUS skin_msg_cb_t typedef int skin msg cb t HWND hwnd int message WPARAM wparam LPARAM lparam int result hwnd message wparam Iparam result lt
374. iBkColor dwAddData MiniGUI BOOL GUIAPI RegisterWindowClass PWNDCLASS pWndClass BOOL GUIAPI UnregisterWindowClass const char szClassName const char GUIAPI GetClassName HWND hWnd BOOL GUIAPI GetWindowClassInfo PWNDCLASS pWndClass BOOL GUIAPI SetWindowClassInfo const WNDCLASS pWndClass WNDCLASS RegisterWindowClass Ff UnregisterWindowClass L3 d J Y 5 define CTRL NAME mycontrol Static int MyControlProc HWND hwnd int message WPARAM wParam LPARAM lParam HDC hdc switch message case MSG PAINT NIMH hello world from my control hdc BeginPaint hwnd Huesca Hl onl ME Em mmy contem o E MiniGUI V2 0 4 nman EndP
375. 157 phan ERHCE 13 2 13 2 1 MiniGUI MiniGUI MSG_PAINT MiniGUI V2 0 4 MiniGUI 22 amp nz MSG PAINT MSG_PAINT FP BeginPaint
376. LoadCursorFromFile Windows HCURSOR GUIAPI LoadCursorFromFile const char filename LoadCursorFromFile LoadCursorFromMem A py ff rH i A 26 F HCURSOR GUIAPI LoadCursorFromMem const void area area Windows CreateCursor CreateCursor HCURSOR GUIAPI CreateCursor int xhotspot int yhotspot int w int h const BYTE pANDBits const BYTE pXORBits int colornum PERE HH F xhotspot yhotspot w h pAndBits AND pXorBits XOR colornum XOR Createlcon CreateCursor
377. SendMessage MCM_GETFIRSTWEEKDAY int weekday weekday SendMessage hwndMonthcal MCM GETFIRSTWEEKDAY 0 SendMessage 0 6 0 MCM_GETCURDATE SYSTEMTIME systime SendMessage hwndMonthcal MCM GETCURDATE 0 LPARAM amp systime systime SYSTEMTIME MCM GETTODAY typedef struct SYSTEMTIME int day int weekday SYSTEMTIME typedef SYSTEMTIME PSYSTEMTIME MCM GETTODAY SYSTEMTIME systime SendMessage hwndMonthcal MCM GETTODAY 0 LPARAM amp systime systime SYSTEMTIME 33 2 2 Linux root MCM SETCURDAY
378. m LCO NEW LAYER m LCO DEL LAYER m LCO JOIN CLIENT Bi LCO REMOVE CLIENT LCO TOPMOST CHANGED OnZNodeoperation MiniGUI V2 0 4 V1 6 10 Ul Processes MiniGUI Processes Z OnzNodeOperation minigui minigui h m typedef void ON ZNODE OPERATION int op int cli int idx znode ON ZNODE OPERATION OnZNodeOperation m ZNOP_ALLOCATE z node m ZNOP_FREE z node m MOVE2TOP z node ZZ 7j TopMost 238 MiniGUI V2 0 4 q nman ZNOP SHOW z node ZNOP HIDE z node ZNOP MOVEWIN z node
379. 0 1 LBS SORT LB_INSERTSTRING index LBS_CHECKBOX LBS_USEICON LISTBOXITEMINFO T HICON hIcon1l LISTBOXITEMINFO lbii hIconl LoadIconFromFile HDC SCREEN res audio ico 1 Wosa MGE non lbii cmFlag CMFLAG CHECKED 11551 hchildWnd3 LB ADDSTRING 0 LPARAM klbii SendMessage tB cmFlag CMFLAG CHECKED CMFLAG BLANK CMFLAG PARTCHECKED
380. 15 7 48 Im LZ lt m n KW 15 5 ifdef ADV 2DAPI const unsigned char stipple bits Nx81Nx42Nx24NX18NVxX18NX24Nx42Nx81 Static STIPPLE my stipple 5 cabe Stipple bits ur void GDIDemo Adv2DAPI HWND hWnd HDC hdc POINT pt 10 BITMAP bitmap gt if LoadBitmap hdc amp bitmap res sample bmp return Bi SOW 7 SetPenDashes hdc 0 N1N1 2 SetPenWidth hdc 5 SetPenCapStyle hdc PT CAP ROUND pinen hdc 1 50 50 SetPenJoinStyle hdc PT JOIN BEVEL joe 0 20s pe I9 wo E 223 MiniGUI V2 0 4 nman fr Be 9s pie als e 396 jue 2 Gs pie IA gU pt 3 x 20 pt 3 y 80 je 21 pt 4 y 20 PolyLineEx hdc pt 5 ban 20
381. 256 16 4 16 0 15 256 RGB f RGB f Hin 4 struct palette unsigned char r g b 141 s ug 328 38 o2 43929 98 55 955 355 h 0 1 2 3
382. H m int GUIAPI Send2Client MSG msg int cli Send2Client MiniGUI Processes mginit msg cli m CLIENT ACTIVE m CLIENTS_TOPMOST m CLIENTS EXCEPT TOPMOST m CLIENTS ALL SOCKERR_OK lt 0 KE m SOCKERR_OK m SOCKERR_IO R IO m SOCKERR_CLOSED m SOCKERR_INVARG BOOL GUIAPI Send2TopMostClients int iMsg WPARAM wParam LPARAM lParam Send2TopMostClients MiniGUI Processes mginit BOOL GUIAPI Send2ActiveWindow const MG Layer layer int iMsg WPARAM wParam LPARAM lParam Send2ActiveWindow ii
383. MiniGUI 24 MiniGUI V2 0 4 nman amp 224 fF 3 2 MiniGUI 3 3 MiniGUI static controls x This is a simple static ESELA eb Coe de This is a left aligned auto wrap This is ajg File Controls Please choose This is a time editor Pressing Dowrn Arrow LU p Arrow lt PgDn gt and lt PgUp gt keys when the box have input focus will change the time Button controls Push Butt iple Li nli X Normal check box C Normal radio button ListView control Pix like check box File name res Makefile am bkgnd ip
384. MiniGUI pthread pth_entry minigui entry Static char main stack MAIN PTH DEF STACK SIZE char argv pth entry NULL Start minigui pthread minigui entry 1 argv main stack MAIN PTH DEF STACK SIZE MiniGUI RTOS Linux VxWorks USE OWN STDIO USE OWN MALLOC USE OWN PTHREAD fX X vxWorks5 5 vxWorks5 5 uC OS Il USE OWN STDIO USE OWN MALLOC USE OWN PTHREAD 430 MiniGUI V2 0 4 T nman EBAKI Win32 USE OWN STDIO OSE USE OWN PTHREAD Win32 OSE O ThreadX USE OWN STDIO USE OWN MALLOC USE OWN PTHREAD Nucleus USE OWN STDIO USE OWN MALLOC USE OWN PTHREAD 431
385. MiniGUI Processes 38 mginit H MiniGUI V2 0 4 q nman 68246 fr MiniGUI Threads MiniGUI Processes MSG_SRVNOTIFY x R 3 4 3 4 1 MSG_NCCREATE MiniGUI IPa
386. 1 64 cb x y 15 7 5 15 4 4211 6 15 1 E
387. 13 2 3 MiniGUI MSG_PAINT MSG_PAINT x bk hv Hj RE Jy uj EA fi H InvalidateRect BOOL GUIAPI InvalidateRect HWND hWnd const RECT prc BOOL bEraseBkgnd hWnd prc 18 ln JE RAE J B RET bEraseBkgnd InvalidateRect MSG_PAINT bEraseBkgnd 7j TRUE MSG_ERASEBKGND MSG_ERASEBKGND DefaultMainWinProc MiniGUI MSG_E
388. 410 typedef struct _GRIDCELLDATAHEADER ou MiniGUI V2 0 4 ssrna at sr rc nman GRIDCELLDATAHEADE size buff len_buff size GRIDCELLDATA 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
389. HavePendingMessage dom It is time to read from master pty and output ReadMasterPty pConInfo MiniGUI V2 0 4 phan Ek ff pConInfo terminate break while HavePendingMessage hMainWnd if GetMessage amp Msg hMainWnd break amp Msg DispatchMessage ReadMasterPty while TRUE MSG QUIT F MiniGUI Threads GUI GetMessage hMainWnd MiniGUI Processes GetMessage hMainWnd MSG 8 DispatchMessage
390. MEMDC FLAG RLEACCEL DC RLE DC DC 200 GDI BIR DC H MiniGUI V2 0 4 nman iK TE BitBlt DC rp iR 15 1 MDE gdidemo DC DC Alpha Blitting 15 1 BITMAP KA Alpha mem dc CreateMemDC 400 100 16 MEMDC FLAG HWSURFACE MEMDC FLAG SRCALPHA 0x0000F000 0x00000F00 0x000000F0 0x0000000F SetBrushColor mem dc RGBA2Pixel mem dc OXFEF 0x00 OxERE oss men cle 0 200 50 255 SetBrushColor mem dc RGBA2Pixel mem dc OxFF OxFF 0x00 0x40 p oss usn ce 256 0 200 SetBrushColor mem dc RGBA2Pixel mem dc OxFF OxFF 0x00 0x80 i l P OE er CC OPEN EP TOTO P MES ON NE 75 SetBrushColor mem dc RGBA2Pixel mem dc OxFF OxFF 0x00 0OxCO rj p OMM msu ce 200 8508 398 50 7 SetBkMode
391. MSG_FDEVENT ML E 229 MiniGUI V2 0 4 nman MiniGUI Processes define MAX NR LISTEN FD 5 Return TRUE if all OK and FALSE on error BOOL GUIAPI RegisterListenFD int fd int type HWND hwnd void context Return TRUE if all OK and FALSE on error BOOL GUIAPI UnregisterListenFD int fd m MAX NR LISTEN FD 5 m RegisterListenFD type POLLIN POLLOUT POLLERR MSG_FDEVENT m UnregisterlistenFD PA E T RegisterListenFD MSG
392. MiniGUI is a fast lightweight and cross DS embedded GUI support system For more information please visit http wiww miniqui com Refresh 28 2 Hl 345 MiniGUI V2 0 4 nman ia a rr II aaj 346 MiniGUI V2 0 4 amp 224 fF 29 CScrollWnd CTRL_SCROLLWND CreateWindow MiniGUIExt InitMiniGUIExt MiniGUIExtCleanUp MiniGUIExt i
393. SS_BITMAP SS_ICON dwAddData SS_CENTERIMAGE SS_REALSIZEIMAGE SS REALSIZEIMAGE SS REALSIZEIMAGE SS CENTERIMAGE 264 MiniGUI V2 0 4 swr4scrmwh lsi wssrssrn Cram nman SS REALSIZEIMAGE SS_CENTERIMAGE CreateWindow CTRL STATIC nn WS CHILD SS BITMAP WS VISIBLE IDC_STATIC 280 80 50 50 hwnd DWORD GetSystemBitmap SYSBMP CHECKMARK CreateWindow CTRL STATIC nmn WS CHILD SS ICON WS VISIBLE SHADE 280
394. int MiniGUIMain int argc const char argv l MSG msg HWND hWndMain ifdef _MGRM_PROCESSES JoinLayer NAME DEF LAYER skindemo 0 0 endif aae o alan 9 4 return 2 load skin bmps amp main skin TRUE if skin init amp main skin main event cb msg event cb lt prineri US kinne Hom else hwndMain create skin main window amp main skin HWND DESKTOP 100 100 100 DEF WIDTH 100 DEF HEIGHT FALSE while GetMessage amp msg hWndMain TranslateMessage amp msg DispatchMessage amp msg MainWindowCleanup hWndMain Skin deinit amp main skin load skin bmps amp main skin FALSE HHR V Ea MiniGUIExtCleanUp return 0 ifndef MGRM PROCESSES dinclude minigui dti c endif main_skin 134 MiniGUI V2 0 4 nman fF E skin_init H create skin main window AP 3538 78 2 8 FEY A 7 skin_dei
395. pre_x 2 pre_y x break case MSG LBUTTONUP bdraw FALSE ReleaseCapture break case MSG RBUTTONDOWN MiniGUI V2 0 4 nman 68946 fr InvalidateRect hWnd NULL TRUE break case MSG CLOSE DestroyAllControls hWnd DestroyMainWindow hWnd PostQuitMessage hWnd etum return DefaultMainWinProc hWnd message wParam lParam 9 3 painter MSG_LBUTTONDOWN bdraw TRUE MSG MOUSEMOWVE MSG LBUTTONUP painter SetCapture MSG_LBUTTONDOWN MSG_MOUSEMOVE MSG_LBUTTONUP ReleaseCapture MSG_RBUTTONDOWN InvalidateRect 9 3
396. 14 1 DrawText MDE fontdemo c 14 2 192 MiniGUI V2 0 4 nman 14 4 DrawText PERCI sels sem es ueq const char szBuff1 This is a good day Mn void OnModeDrawText HDC hdc const enart Sad DrawText GB2312 Song 12 day Mn const char szBuff4 SetBkColor hdc COLOR Rectangle Rectangle Rectangle Rectangle hdc re2 lef hdc re3 lef hdc rc4 lef InflateRect InflateRect InflateRect InflateRect SelectFont hdc logfon DrawText hdc szBuffl1 SelectFont hdc logfon DrawText hdc szBuff2 See cre Montes brote rom DrawText hdc szBuff3 SelectFont hdc logfon DrawTextEx hdc szBuff DrawText const char szBuff3 GB2312 Song 16
397. 338 MiniGUI V2 0 4 nman ETE Ip s 25 3 Te p 0 1 28 1 static int PageProcl HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG INITPAGE break case MSG SHOWPAGE return 1 case MSG SHEETCMD if wParam IDOK char buffer 20 m he sC Qh lent pe ipi ps er Puf Fe l o WO s ewe 9 MessageBox hDlg Please input something in the first edit box Warning MB OK MB ICONEXCLAMATION MB BASEDONPARENT return 0 case MSG_COMMAND switch wParam case IDOK case IDCANCEL break break switch message et net aul ap static int PropSheetProc return 1 hDlg mess HWND hDlg case MSG INITDIALOG int message WPARAM wParam age wParam lParam LPARAM lParam HWND pshwnd GetDlgItem hDlg IDC PROPSHBEET
398. 34 1 mg samples spinbox c 34 1 define IDC SPIN 10 eje Fe PERCRE 20 define IDC CTRL2 30 ducem i pe IC pin 40 define IDC_CTRL4 50 static int SpinProc HWND hDlg int message WPARAM wParam LPARAM lParam SPININFO spinfo HWND hSpin GetDlgItem hDlg IDC SPIN switch message case MSG INITDIALOG ome mn 1 Spa rf estem e SendMessage hSpin SPM SETTARGET 0 D Io SendMessage hSpin SPM SETINFO 0 LPARAM amp spinfo break case MSG KEYDOWN if wParam SCANCODE CURSORBLOCKUP wParam SCANCODE CURSORBLOCKDOWN if lParam amp KS SPINPOST ine eun cur SendMessage hSpin SPM GETCUR 0 0 if wParam SCANCODE CURSORBLOCKUP cce alge cur SendMessage hSpin SPM SETCUR cur 0 397 MiniGUI V2 0 4 nman InvalidateRect hDlg NULL TRUE break case MSG PAINT HDC 3v Wu ats int cur cur
399. SI_TYPE_NRMLABEL SI TYPE BMPLABEL SI TYPE CMDBUTTON S TYPE CHKBUTTON S TYPE NRMSLIDER 363878 2 SI TYPE ROTSLIDER SI TYPE CONTROL MiniGUI 124 MiniGUI V2 0 4 nman 68246 fr SI TYPE CONTROL MiniGUI m SI TEST SHAPE RECT m SI TEST SHAPE ELLIPSE m SI TEST SHAPE LOZENGE 3 76 m SI TEST SHAPE LTRIANGLE m SI TEST SHAPE RTRIANGLE m SI TEST SHAPE UTRIANGLE m SI TEST SHAPE DTRIANGLE m SI STATUS VISIBLE m SI STATUS DISABLED m SI STATUS HILIGHTED
400. poiter to control array typedef DLGTEMPLATE PDLGTEMPLATE CTRLDATA DLGTEMPLATE j CTRLDATA TAB DLGTEMPLATE controls 4 1 4 1 static DLGTEMPLATE DlgInitProgress WS_BORDER WS_CAPTION WS EX NONE 120 150 400 130 VAM CNC oo 3 NULL 0 Static CTRLDATA CtrlInitProgress Mta ur WS VISIBLE SS SIMPLE 30 Su d IDC PROMPTINFO WUETE out 0 progressbar WS VISIBLE 10 380 IDC PROGRESS NULL 0 20 pucton WS_TABSTOP WS_VISIBLE BS DEFPUSHBUTTON JL70 YO QU 25 TDOK static
401. size mem ext m StretchPaintlmageEx hdc x y w h area ext 15 6 2 MiniGUI void GUIAPI x fixed cy void GUIAPI void GUIAPI 204 PivotScaledBitmapFlip HDC hdc const BITMAP bmp fixed x fixed y fixed c me ehaveller upael eeuls i Meceasa BOO lo ve ls ao We eas RotateBitmap HDC hdc const BITMAP bmp int Ix int ty int angle Pivotbitmapii HDCihde conste MA Pm i EM TV E E MiniGUI V2 0 4 human 8 void GUIAPI RotateScaledBitmap HDC hdc const BITMAP bmp int lx int ty int angle in Ew hi void GUIAPI RotateBitmapVFlip HDC hdc const BITMAP bmp int 1x int ty int angle void GUIAPI RotateBitmap
402. 243 MiniGUI V2 0 4 nman EK fir elge ii p e execl file name app name NULL perror execl eee Ds else perror vfork return pid static unsigned int old tick count Static pid t pid scrnsaver 0 Static int my event hook PMSG msg colon Ter Ncetmselsc oun if pid scrnsaver Pe c ensawie r EST GENIS ShowCursor TRUE pid scrnsaver 0 if msg message MSG KEYDOWN switch msg wParam case SCANCODE F1 exec app edit edit break case SCANCODE F2 exec app timeeditor timeeditor break case SCANCODE F3 exec app propsheet propsheet break case SCANCODE F4 exec app bmpbkgnd bmpbkgnd break return HOOK GOON Static void child wait int sig int status while pid waitpid 1 amp status WNOHANG gt 0 if WIFEXITED status printf pidz d status x rc d WMn pid status WEXITSTATUS status else if WIFSIGNALED status printf pidz d signal d NMn pid WTERMSIG status int MiniGUIMain int args const char arg MSG msg Struct sigaction siga siga sa handler child wait Siga 8 rias memset e essga sammask neon Sg ty Sigaction SIGCHLD amp siga NULL OnNewDelClient on new del client if ServerStartup 0 0 fprintf stderr Can not start the server of Min
403. CMFLAG CHECKED new item lbii cmFlag lbii string SendMessage hChildWnd3 LB SETITEMDATA index LPARAM amp lbii LB SETCURSEL SendMessage hwndList LB SETCURSEL index 0 LB GETCURSEL index SendMessage hwndList LB GETCURSEL 0 0 O LB_ERR LB_SETCURSEL LB_GETCURSEL LB SETSEL eu SendMessage hwndList LB SETSEL wParam LPARAM index wParam 0
404. Destroylcon 10 2 105 MiniGUI V2 0 4 III i w OTT MiniGUI 16 MiniGUI 256 10 2 1
405. SVM_SETITEMDESTROY S BRE IVM SETITEMCMP SVM_SETITEMCMP IVM_MAKEPOSVISIBLE SVM_MAKEPOSVISIBLE IVM_GETHSCROLLVAL di IVM GETVSCROLLVAL W SVM GETHSCROLLVAL SVM_GETVSCROLLVAL IVM_GETHSCROLLPAGEVAL IVM_GETVSCROLLPAGEVAL SVM_GETHSCROLLPAGEVAL SVM_GETVSCROLLPAGEVAL IVM_SETSCROLLVAL SVM_SETSCROLLVAL IVM_SETSCROLLPAGEVAL SVM_SETSCROLLPAGEVAL IVM_SORTITEMS SVM_SORTITEMS IVM_GETITEMCOUNT SVM_GETITEMCOUNT IVM_GETITEMADDDAT
406. cells column source column i for j 0 j source height j data content amp num data style GV TYPE NUMBER cells row source row j SendMessage hGVWnd GRIDM GETCELLPROPERTY WPARAM amp cells LPARAM amp data value num number count e data mask GVITEM MAINCONTENT num number value count cells row target row cells column target column SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cells LPARAM amp data return 0 pe tuy Static int ControlTestWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG_CREATE GRIDVIEWDATA gvdata gvdata nr rows 10 gvdata nr cols 10 gvdata row height 30 gvdata col width 60 hGVWnd CreateWindowEx CTRL GRIDVIEW Grid View WS CHILD WS VISIBLE WS VSCROLL WS HSCROLL WS BORDER WS EX NONE IDC GRIDVIEW 2 3 8908 300 hWnd DWORD amp gvdata int i GRIDCELLS cellsel GRIDCELLDEPENDENCE dep GRIDCELLDATA celldata GRIDCELLDATAHEADER header GRIDCELLDATANUMBER cellnum memset amp header 0 sizeof header memset amp celldata 0 sizeof celldata file for i l i lt 3 i header buff colnames i 1 headern lend bunt celldata content amp header celldata mask GVITEM_MAINCONTENT celldata style GV TYPE HEADER cellsel row 0 cellsel column i c
407. i _ID_TIMER hwnd SetTimer hWnd ID TIMER 100 break case MSG TIMER wParam SetDlgItemText hWnd TIME STATIC mk time buff break ma z ID TIMER case MSG CLOSE 141 human ERHCE MiniGUI V2 0 4 KillTimer hWnd ID TIMER DestroyAllControls hWnd DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam SetTimer fl 4 Z ZUM TR XE XE RALA 10 100 HJ 1 7 ResetTimer SetTimer lsTimerlnstalled 12 2 MiniGUI 1 6 0 HaveFreeTimer
408. memset amp header 0 sizeof header memset amp celldata 0 sizeof celldata header buff header size 1 celldata mask GVITEM MAINCONTENT celldata content amp header celldata style GV TYPE HEADER SendMessage hGVWnd GRIDM ADDROW 4 LPARAM amp celldata memset amp celldata 0 sizeof celldata memset amp cellnum 0 sizeof cellnum cellnum number 0 cellnum format NULL celldata content amp cellnum celldata mask GVITEM MAINCONTENT celldata style GV TYPE NUMBER cellsel row 1 cellsel column 4 cellsel width 1 cellsel height 4 SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cellsel LPARAM S amp cel ldata cellsel row 5 cellsel column 1 cellsel width 4 cellsel height 1 SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cellsel LPARAM S amp cel ldata memset amp dep 0 sizeof dep dep callback totals for i l i lt 4 i 418 MiniGUI V2 0 4 sssssrcs ta I nman dep source row i dep source column s T dep source width 3 dep source height 1 dep target row i dep target column 4 dep target width 1 dep target height 1 SendMessage hGVWnd GRIDM ADDDEPENDENCE 0 LPARAM amp dep dep callback s averge dopo Se
409. ntbii flags NTBIF_SEPARATOR 334 MiniGUI V2 0 4 nman melona elama CSLL ntbii text e NULL SendMessage ntb TBM ADDITEM 0 LPARAM amp ntbii ntbii flags NTBIF PUSHBUTTON NTBIF DISABLED ntbii id IDC NTB UP s sloma CSLL OF SendMessage ntb TEM ADDITEM O0 LPARAM amp ntbii static int ToolBarWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG_CREATE if LoadBitmap HDC_SCREEN amp ntb bmp new2 jpg return 1 create new toolbar hWnd break case MSG PAINT HDC hdc BeginPaint hWnd ClipRectIntersect hdc amp rcCircle SetBrushColor hdc PIXEL red Fi Terrete hdc 140 offset 120 50 EndPaint hWnd hdc return 0 case MSG DESTROY UnloadBitmap amp ntb bmp DestroyAllControls hWnd return 0 case MSG CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam o 03 B 27 4 335 MiniGUI V2 0 4 nman ia a rr II aaj
410. 11 2 2 MiniGUI MiniGUI MiniGUI MiniGUI IHI tT EY MiniGUI MiniGUI MiniGUI MiniGUI HWND create skin main window skin head t skin HWND hosting int x int y int w int h BOOL modal HWNIDMCeateasmgconimolMsiciimgheac a ES W
411. 212 pts 0 pts 1 pts 0 pts 1 e ARAMEA EMET ul MiniGUI V2 0 4 rrs srs n a sI ar nman pes TOIR ant Ex x sake sey RSS orelil cw pex LOU x 5 abis uem ee sew meke sss Towel s xe else ILOR qeu dl owes seso Em 15 10 MiniGUI x y banned 1 MiniGUI I pus I OON GUIAS ap Gam e le Recto i Pom GNEd si Mim MEE rara BOOL GUIAPI InitEllipseRegi
412. 71 MiniGUI V2 0 4 p ntee EEEeee Cm Eel v2 tV m state m MFS_GRAYED m MFS_DISABLED m MFS_CHECKED type type MFT_RADIOCHECK MFS_ENABLED m MFS_UNCHECKED KARRERA WAW id e hsubmenu uncheckedbmp itemdata type MFT_BMPSTRING checkedbmp uncheckedbmp 7 2 4 iH MFT_STRING typedata cch GetMenultemlnfo checkedbmp
413. 98 myWinEntries 1 result myWinEntries HWND DESKTOP Je bu 240 150 FALSE entries buttons col atoi newcols newcols newrows row atoi newrows newcols newrows myWinEntries DEA Bin free newcols free newrows a resule d HR ERSTIE else Feturrn 50 TT 25 11 2 myWinEntries 121 Fo nman 11 2 Z Skin MiniG F3 BE tH F BJ 3k tE 9181 2 B HI E 2 n UL 38 MiniGUI V2 0 4 UI 1 3 1
414. GDI GAL NEWGAL GDI NEWGDI 156 MiniGUI V2 0 4 NEWGAL NEWGAL GDI phan 68246 fr m NEWGAL Bliting B NEWGDI NE E WGAL g NEWGAL iX F NEWGAL Blitting
415. GDI BitBlt Alpha Alpha Blitting NEWGAL Blitting Alpha Blitting 1 NEWGAL NEWGAL FrameBuffer 5 Ed H A sJ o NEWGAL Matrox 3dfx 8 NEWGAL Shadow F 8 Shadow NEWGAL 15 NEWGAL GDI
416. HT BN CLICKED BM GETCHECK 20 2 20 2 Ban Me CheckDIgButton CheckRadioButton IsDIgButtonChecked 20 1 4 EET p mg samples button c 20 5 20 1
417. MSG Msg HWND hMainWnd MAINWINCREATE CreateInfo InitCreateInfo amp CreateInfo hMainWnd CreateMainWindow amp CreateInfo if hMainWnd HWND INVALID return l while GetMessage amp Msg hMainwnd TranslateMessage amp Msg DispatchMessage amp Msg GetMessage si hMainWnd TranslateMessage MSG KEYDOWN MSG KEYUP MSG CHAR DispatchMessage s T 0 PostQuitMessage GetMessage MSG_QUIT GetMessage 0 i Ur mr zi r MiniGUI Threads
418. SVM_SETITEMDRAW SVITEM DRAWFUNC myDrawItem SendMessage hScrWnd SVM SETITEMDRAW 0 LPARAM myDrawItem SVITEM_DRAWFUNC typedef void SVITEM DRAWFUNC HWND hWnd HSVITEM hsvi HDC hdc RECT rcDraw 1 FX hdc hWnd hsvi Fk x x H PR Bl XE A s 30 2 2 SVM_SETITEMOPS SVITEMOPS myops SendMessage hScrWnd SVM SETITEMOPS 0 LPARAM smyops myops SVITEMOPS 2 79 B t 1 Y YR D 78 e PE F P ELIT 7 ER AL WP typedef struct svitem operations SVITEM INITFUNC initItem called when
419. SetPenWidth hdc 20 SeluDenc acen SO SetPenCapStyle hdc PT CAP ROUND miim ege eor 860 96 SetPenColor hdc PIXEL blue ArcEx hdc 100 100 200 300 180 64 180 64 SetBrushType hdc BT SOLID SetBrushColor hdc PIXEL green pin o 120 PACAGE IOO 2100 Solna SetBrushInfo hdc amp bitmap amp my stipple SetBrushOrigin hdc 100 100 0 270 Eu A el SetBrushType hdc BT STIPPBED 0 360 EK EAA Ee O00 200 150 3260 6 SetPenType hdc PT DOUBLE DASH SetPenDashes hdc 0 N20N40 2
420. ali CTRL ICONVIEW CreateWindow 38 1 CreateWindow WS BORDER WS_VSCROLL WS_HSCROLL x ScrollView ScrollView T m 38 2 38 2 1 d 2 IVM_ADDITEM
421. mginit rc mginit rc MiniGUI Processes HI xh X mginit 17 1 1 MiniGUI Processes MiniGUIMain int MiniGUIMain int args const char argl l int pid desktop Struct sigaction siga MSG msg OnNewDelClient on new del client OnChangeLayer on change layer if ServerStartup 0 0 0 fprintf stderr Can not start the server of MiniGUI Processes mginit Wn return i if InitMiniGUIExt fprintf stderr Can not init mgext library in return 1 OnNewDelClient OnChangeLayer mginit ServerStartup mginit ServerStartup MDE mginit
422. BS LEFT 20 3 LI HH CreateWindow CTRL BUTTON Auto 3 state check box WS CHILD IDC CHECKBOX 607 CreateWindow 150 30 hWnd 0 CTRL BUTTON Auto check box on left WS CHILD LTO Auto 3 state check box 20 1 3 60 hWnd 203 BS AUTO3STATE WS VISIBLE E BS_AUTORADIOBUTTON
423. DestroyCaret hWnd if pBuffer free pBuffer 116 MiniGUI V2 0 4 nman return 0y return DefaultControlProc hWnd message wParam lParam BOOL RegisterMyedit void WNDCLASS WndClass WndClass spClassName myedit WndClass dwStyle WndClass dwExStyle 0 WndClass hCursor GetSystemCursor IDC IBEAM WndClass iBkColor PIXEh Iightwhite WndClass WinProc MyeditWindowProc return RegisterWindowClass amp WndClass main windoww proc HWND hMyedit switch message case MSG CREATE RegisterMyedit 30 50 100 20 bwnd 0 SetFocus hMyedit break case MSG CLOSE DestroyAllControls hWnd DestroyMainWindow hWnd PostQuitMessage hWnd recurn return DefaultMainWinProc hWnd message wParam lParam Using caret demo 10 4 myedit hMyedit CreateWindow myedit WS VISIBLE WS CHILD IDC MYEDIT Static int CaretdemoWinProc HWND hWnd int message WPARAM wParam LPARAM lPa
424. MSG_DESTROY 118 11 MiniGUIExt libmgext MiniGUI libminigui libmin m MiniGUI V2 0 4 MiniGUIExt igui phan 68946 fr MiniGUIExt InitMiniGUIExt TermM Imge 4 MiniGUIExt MiniGUI 1 3 1 xt 11 1 M mywins mgext J r Red Hat Linux iniGUIExt
425. POINT pPt 13 5 13 5 1 MiniGUI pedet c Wp CI dae lerez int top abe seals nmt OE tem RECH AWAZ E 7 XE KRA x y Cleft top x y Cright bottom MiniGUI EC x y w MiniGUI RECT m SetRect RECT SetRectEmpty RECT XI WE MiniGUI IsRectEmpty RECT m NormalizeRect MiniGUI
426. V2 0 4 nman ia a rr II aaj 248 MiniGUI V2 0 4 18 MiniGUI 0 3 xx phan Graphics and Input Abstract Layer GAL IAL Linux MiniGUI POSIX r XE UN XAR EE E H Si H Linux FrameBuffer MiniGUI FBCON PC
427. eneate ovenl ru s exit 1 RGB vov vov Siu ConvertRGBtoYV12 pic overlay vuv DC Draw vuv Hi FreeYUVOverlay overlay DC XE DeleteMemDC pic UnloadBitmap amp logo 15 12 2 Gamma Gamma RGB Gamma RGB RGB Gamma SetGamma RGB Gamma T gt int GAL SetGamma float red float green float blue define SetGamma GAL SetGamma Gamma 0 1 10 0 Gamma RE iZ 1 SetGammaRamp RGB Gamma int 6 SetGammaRamp Vinee red een usar es iu define SetGammaRamp GAL SetGammaRamp int GAL GetGammaRamp Uinti6 re
428. nn 421 38 1 421 38 2 Noc Rc C 421 38 2 1 i 421 38 39 4 OR MEME HE 424 60 424 A MiniGUI 0 429 A NT TH uu u 429 A2 430 A 3 POSIX Threads 430 XV MiniGUI V2 0 4 ee nman MiniGUI ES TE E amp ZEB TEL TRI EK A SX AR Z BJ ec 2 2 J H J I IBI gt FE EE MiniGUI 1998 MiniGUI 2 0 4 1 6 10 MiniGUI 2 0 4 1 6 10 MiniGUI Qu zi MiniGUI MiniGUI API MiniGUI MiniGUI API MiniGUI API Refere
429. MiniGUI NR_CLIPBOARDS NR_CLIPBOARDS window h 4 CreateClipBoard BmERG UM ATPIEGTegteimppoarsdliiconstMcebamcbiamc Tem ne cb name size CBERR_OK CBERR_BADNAME Ji 4 py f iE RE CBERR_NOMEM DestroyClipBoard CreateClipBoard int GUIAPI DestroyClipBoard const char cb name 12 3 2 SetClipBoardData int GUIAPI SetClipBoardData const char cb name void data size t n int cbop cb name data n cbop m CBOP_NORMAL m
430. lParam CB SETSPINFORMAT MiniGUI sprintf sscanf MiniGUI sprintf sscanf 23 3 CBS_NOTIFY X4 mc m ERRSPACE m CBN SELCHANGE m CBN_EDITCHANGE m CBN_DBLCLK WB CBN_CLICKED m CBN _SETFOCUS CBS AUTOFOCUS m CBN_KILLFOCUS 307 MiniGUI V2 0 4 nman e momoOo o CSOSAAHAHAYZAPPAAAAAA5SREeEkwc ERMMETE
431. unfold ico TVS_WITHICON BRP AM Wt TVS ICONFORSELECT TVS SORT TVS_NOTIFY 31 2 31 2 1 CreateWindow dwAddData TVITEMINFO 31 4 TVITEMINFO Y QR 365 MiniGUI V2 0 4 NMOAN Ns ERMMEKTE typedef struct TVITEMINFO char text DWORD dwFlags hIconFold DES UPS HICON hlIconUnfold DWORD
432. BITMAP bmp endif The next frame struct ANIMATIONFRAME next The previous frame struct ANIMATIONFRAME prev ANIMATIONFRAME Animation structure typedef struct ANIMATION xx The width of the animation unsigned int width The height of the animation unsigned int height The background color 405 MiniGUI V2 0 4 HIC ERBAT RGB bk The number of all frames int nr frames mhes e troe ciwe will be wsed counte the deley cime gue vn Pan mas de ln Wl ro mss Tri me es Pointer to the animation frame ANIMATIONFRAME frames ANIMATION ANIMATION 1 10ms ANIMATIONFRAME
433. ID MAX_SYS_REQID ID 5 uu 18 1 RegisterRequestHandler ID MAX_SYS_REQID MAX_REQID E pf A typedef struct TEST REQ imera j auus span tegt ceexeuiese Gum lt lme elare vodic yuki Elze Len me OF TEST REQ test req TEST REQ buff retivalue rcs res a eeu ServersenmnRe elle mae salla melee sme RegisterRequestHandler MAX SYS REQID 1 1 test request 233 nman EHI MiniGUI V2 0 4 REQUEST reg IESHSHSEONUCSUNESEG abs ret valus 5 req id MAX SYS REQID 1 edi neo Lea ga zg um ene equestca seca sel valus Sz e cM aen p printf the returned
434. MiniGUI V2 0 4 nman tns OOIIEYAOMPSMU S SA PPAPAAAAAAosp e mmmm HDC hdc BeginPaint hWnd GDI EndPaint hWnd hdc remo 0p BeginPaint hWnd GDI MiniGUI MiniGUI MSG_PAINT MiniGUI MiniGUI MSG_PAINT
435. S NRI 390 a EE 391 IM EA 392 33 3 ccm 392 33 4 IPS MEE 392 SA EE 395 34 1 0000 395 34 2 395 34 2 1 Deer aki A A E Ea ete E eu m e Rute xe ess 395 EE E EE E ESET 396 p 9 Ban iu E Aa Bo E E EATE e SE a ARESA a E s 396 TI RM 397 344 T TT 397 35 e E ON E RR HR E kus 401 XIV MiniGUI V2 0 4 nman 68246 fr SER HE cro PK 401 352 we crop E 401 E Assai 402 405 36 1 ANIMATION Waaa 405 3062 m M 407 36 3220 m ass 407 TE SE IIS s 407 37 RE TERI TN 409 y 409 37 2 pe t m 409 31 3 1 3D ne dia ENa eo EERE EA E aa i 410 Te a y wa spa u 412 UN E C 10 EET 413 37 3 HEW IUD DTE 414 co E 415 375 pos p EE EEEE E Ae A oss 416 38
436. Static void my notif proc HWND hwnd int id int nc DWORD add data unsigned char buff 256 0 if id IDC CHAR amp amp nc EN CHANGE GetWindowText hwnd buff 4 SendMessage hwnd EM SETCARETPOS 0 0 SendMessage GetDlgItem GetParent hwnd IDC CHARS MSG CHAR buff 0 0L else if id IDC CHARS amp amp nc EN CHANGE GetWindowText hwnd buff 255 oeme Verrine OA lows Static int InputCharDialogBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam Static PLOGFONT my font HWND hwnd switch message case MSG INITDIALOG meon ereatenmooh nee Nur me su FONT WEIGHT REGULAR FONT SLANT ROMAN FONT FLIP NIL FONT OTHER NIL FONT UNDERLINE NONE FONT STRUCKOUT NONE 260 hwnd GetDlgItem hDlg IDC CHAR SetNotificationCallback hwnd my notif proc SetWindowFont hwnd my font ifdef UNICODE SUPPORT test utf8 hwnd my font endif INSERT SendMessage hwnd MSG KEYDOWN SCANCODE INSERT OL return i case MSG CLO
437. V2 0 4 RegisterListenFD KAEH SAN nman 68946 fr MiniGUI Processes 16 2 MiniGUI Processes MiniGUI Processes UNIX Domain Socket MiniGUI Processes MiniGUI Processes UNIX Domain Socket MiniGUI Processes UNIX Domain Socket MiniGUI Processes MiniGUI Processes
438. cGc ERZEK TF WS CHILD SS GROUPBOX WS VISIBLE IDC STATIC 350 200 100 anae A Group Box Group Box 19 4 DARAN IHI 19 1 4 SS_WHITERECT SS GRAYRECT SS_BLACKRECT SS_GRAYFRAME SS WHITEFRAME m SS_BLACKFRAME 19 5 R black box E R black frame A gray box A gray frame A white box A white frame 19 5 19 2 m STM_GETIMAGE m STM_SETIMAGE wParam Em 19 3 SS NOTIFY 266 MiniGUI V2 0 4 nma
439. domain socket I O functions Returns SOCKERR OK if all OK const odd bU RP Gime secolo vorid ddefine sock write fd buff oom ea Eom Er EF MiniGUI Processes a listen socket Name is the name of listen socket e in var tmp directory Rf ion to arrive and accept it S pid and user ID from the pathname su NONOUI OG lt J Gime lises atel e Joicoer abel e ocated at the directory var tmp p xxxxx c where xxxxx is the pid of client distinguish diferent projects Used by clients to connect to a server Name is the name of the listen socket The created socket will 1 and with name of var tm and c 1s a character to Mamm GU Tius ema asthe projectie haracter a char project dL z 0 E 0 on error intecounte9unssgnedasntetameonut int count unsigned int timeout count 0 count sec writer ra butt SOc ea td Count 0 J UNIX Domain Socket MiniGUI V2 0 4 nman m serv listen
440. ej 28 rh qs 6 2x SendMessage E 96 MiniGUI V2 0 4 q nman K EX MiniGUI Threads MiniGUI Standalone 1541419 F BR T ALEA MiniGUI MiniGUI Processes i2 171 Ei KE t T Ahe EJ Lil MiniGUl Processes HWND GUIAPI RegisterKeyHookWindow HWND hwnd DWORD flag HWND GUIAPI RegisterMouseHookWindow HWND hwnd DWORD flag hwnd flag HOOK_GOON HOOK_STOP MiniGUI Processes flag ur MiniGUI MiniGUI Processes Jlkrzsd t T 5 4 Tu T
441. init MiniGUI malloc system init minigui malloc heap heap size threadx heap lock threadx heap unlock 429 MiniGUI V2 0 4 nman BEET ELSNBLDD IIIIIICCCLL LZ ZUUIDUSSSSSSZ CC UE A 2 MiniGUI printf 1 _USE_OWN_STDIO MiniGUI MiniGUI printf N irt mummif arm aie Setete ehe ae lay ag Saaie eae GB Seriel veste cim p Sreema Serdal sesal Godec p init MiniGUI s own printf system diae ma rq en mpu Tri e ew Ta ww mr e ieser Ta secr A 3 POSIX Threads MiniGUI MiniGUI POSIX USE OWN PTHREAD define MAIN PTH MIN STACK SIZE 1024 define MAIN PTH DEF STACK SIZE 1024 4 int start minigui pthread int pth entry int argc const char argv 1 int const char argv l choris toek Fase Tr Sb ae Sz NT
442. make src FHK gcc helloworld c helloworld o gcc helloworld helloworld gcc pthread minigui jpeg png Ipthread Iminigui MiniGUI MiniGUI Threads 20 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu a ign Only L nman ERMMEKTE MiniGUI Threads pthread mH MiniGUI jpeg png JPEG PNG helloworld src Makefile am helloworld SOURCES make noinst PROGRAMS helloworld helloworld SOURCES helloworld c helloworld h modulel c module2 c foo SOURCES
443. x y banned x gt GDI lt minigui gdi h gt BOOL GUIAPI PtInRegion PCLIPRGN region int x int y BOOL GUIAPI RectInRegion PCLIPRGN region const RECT rect GUIAPI IntersectRegion ChIPRGN dst const CHIPRGN const ChrPRGN src2 BOOL GUIAPI UnionRegion PCLIPRGN dst const CLIPRGN srcl const CLIPRGN src2 BOOL GUIAPI SubtractRegion CLIPRGN rgnD const CLIPRGN rgnM const CLIPRGN rgnS BOOL GUIAPI XorRegion CLIPRGN dst const CLIPRGN srcl const CLIPRGN src2 PtInRegion RectlnRegion IntersectRegion UnionRegion x y banned SubstractRegion xl XorRegion
444. 13 1 FillBoxWithBitmapPart mg samples loadbmp c 178 MiniGUI V2 0 4 nman XH fh 13 1 case MSG CREATE if LoadBitmap HDC SCREEN amp bmp bkgnd jpg case MSG PAINT hdc BeginPaint hWnd 0 0 100 100 FillBoxWithBitmap hdc 0 O 100 100 amp bmp Rectangle hcc 100 0 200 200 7 FillBoxWithBitmap hdc 100 0 200 200 amp bmp Rectangle hdc 100 0 300 200 10 10 410 210 0 200 400 200 af Isi oc Wet Bitmap Pat 200 4060 9 Wr SEE me LO 10 Rectangle hdc 0 200 400 400 S EndPaint hWnd hdc reu 05 case MSG CLOSE UnloadBitmap amp bmp DestroyMainWindow hWnd PostQuitMessage hWnd mac OT 179 MiniGUI V2 0 4 nman BU EEUU SS asss Ek ff 13 1
445. GB2312 ISO8859 UTF 8 GBK BIG5 UNICODE I HE WC2MBEx WCS2MBSEx MiniGUI UNICODE ISO8859 GB2312 GBK BIG5 UTF 8 l 14 6 lt minigui gdi h gt Cj T p TG et Text tentpolmteeDe conmstechad st extant ln extrema wade Cherig Lace Dog Chaire rrt Cbs Chede SIMI Text output support int GUIAPI GetFontHeight HDC hdc int GUIAPI GetMaxFontWidth HDC hdc void GUIAPI GetTextExtent HDC hdc const char spText int len SIZE pSize void GUIAPI GetTabbedTextExtent HDC hdc const char spText int len SIZE pSize anl GetTextExtentPoint GetTextExtentPoint
446. MPEG YUV MPEG YUV RGB JA YUV YUV RGB YUV YUV YUV RGB RGB YUV MiniGUI YUV DisplayYUVOverlay YUV YUV DC 215 MiniGUI V2 0 4 nman MiniGUI YUV ss TRTEP gU YUV overlay support dg define GAL YV12 OVERLAY 32315659 Planar mode Y 1 11 3 planes ddefine GAL IYUV OVERLAY 0x56555949 Planar mode Y U V 3 planes
447. RKR HX GPL m Mde mg samples COPYING W Ui http www gnu org licenses licenses html MiniGUI V2 0 4 nman EZEK TF I MiniGUI MiniGUI MiniGUIExt MiniGUI V2 0 phan AEGEA V2 0 4 ERHCE Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu iQ a ign Only ffe ERMMEKTE 2 MiniGUI MiniGUI MiniGUI 2 1 2 1 1 MiniGUI GUI MiniGUI Zu GUI E
448. ScrollView M L FPL IconView IMI human EZEK TF 261 MiniGUI V2 0 4 nman ia a rr II aaj 262 MiniGUI V2 0 4 nman 19 1 ED 989 234 19 1 CTRL_STATIC CreateWindow 19 1
449. WS_VISIBLE WS_VSCROLL WS_HSCROLL io 10 290 300 IDC_ICONVIEW nn 0 CTRL BUTTON WS CHILD WS VISIBLE BS DEFPUSHBUTTON WS TABSTOP o0 S590 50 398 IDC ADD Add 0 CTRL BUTTON WS CHILD WS VISIBLE WS TABSTOP BS PUSHBUTTON 170 390 50 30 IDC DELETE ecc 0 js Static DLGTEMPLATE DlgIcon WS BORDER WS CAPTION WS EX NONE OP 310 2600 My Friends 0 0 TABLESIZE CtrlBook CtrlBook 0 mue acroread icons looknfeel games A lt O tus xemacs gimp kpilot e HSO multimedia realplayer usb mms 6 acroread icons looknfeel games A lt A Add Dele 38 1 427 MiniGUI V2 0 4 nman ia a rr II aaj 428 MiniGUI V2 0 4 sssksvrrscrrr rc srsr I nman EZEK TF A MiniGUI MiniGUI 2 0 4 1 6 10 RTOS MiniGUI MiniGUI rtos lt os gt _startup c POSIX pthread
450. a S S S const chark ape lies si bmplabel t label chars label skin item t N ghz Ex 20 a bmp index label chars HARE m xu 21 30 11 3 11 3 Si bmplabel t timelabel cimelapel lape MSNZ 1 30 0223456765 n label_chars skin get item label skin set item label 129 MiniGUI
451. break return DefaultDialogProc 50 P RO CS 4106 oer i struct DepInfo GetWindowAdditionalData hDlg message wParam int message WPARAM wParam LPARAM lParam JE truct Deprinfo lParam E 5 DWORD lParam Ef ES hD1g lParam MiniGUI V2 0 4 nman 68246 fr MSG_INITDIALOG MiniGUI WS_TABSTOP 4 5 MiniGUI DialogBoxIndirectParam
452. define GAL YUY2 OVERLAY 0x32595559 Packed mode YO UO Y1 VO 1 plane define GAL UYVY OVERLAY 0x59565955 Packed mode UO YO VO Y1 1 plane Hdefine GAL YVYU OVERLAY 0x55595659 Packed mode YO VO Y1 UO 1 plane S GAL Overlay GUIAPI CreateYUVOverlay int width int height Uint32 format HDC hdc int GAL LockYUVOverlay GAL Overlay overlay void GAL UnlockYUVOverlay GAL Overlay overlay ddefine LockYUVOverlay GAL LockYUVOverlay ddefine UnlockYUVOverlay GAL UnlockYUVOverlay FORBES void GAL FreeYUVOverlay GAL Overlay overlay FreeYUVOverlay GAL FreeYUVOverlay DC 2 void GUIAPI DisplayYUVOverlay GAL Overlay overlay const RECT dstrect http www webartz com fourcc indexyuv htm http www neuro sfc keio ac jp aly polygon info color space fag html 15 4 XH MDE gdidemo YUV YUV
453. m DROPDOWN PageDown PageUp m CBN_CLOSEUP CBN SELENDOK CBN SELENDCANCEL 23 4 23 1 MessageBox mg samples combobox c 23 6 23 1 tinclude lt stdio h gt include lt minigui common h gt include lt minigui minigui h gt He de minigui gdi h include lt minigui window h gt dinclude minigui control h ddefine HOUR 100 ddefine IDC MINUTE 110 define IDC SE
454. m ShowOpenDialog m ColorSelDialog HI FS HJ H HI myWinHelpMessage 11 1 myWinHelpMessage hwnd 300 200 About SpinBox control We use the SpinBox control in this Help Message Box n n elie coe a OE khe Control 5 55 0 the message and click the down arrow of the control to scroll down You can also scroll the message by typing ArrowDown and ArrowUp keys n n In your application you can call myWinHelpMessage function to build a Help Message box like this The Help Message Box is useful for some PDA like applications Vn Mn The SpinBox control allways have the fixed width and height You can read the source of ext control spinbox c to know how to build such a control If you want to know how to use this control please read the Source of mywindows helpwin c in the MiniGUI source tree About SpinBox co
455. static int CreateiconWinProc HWND hWnd Static HICON new icon HDC switch message case MSG CREATE new icon CreateIcon HDC SCREEN break case MSG PAINT hdc BeginPaint hWnd if new icon 0 Draw con nde Oro DrawIcon hdc 50 50 64 64 EndPaint hWnd hdc return 0 case MSG_CLOSE DestroyIcon new icon DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd Hank 10 2 EE message 0x00 0x00 0x00 0x00 0x00 0x00 OxfO0 ORTO OXTE ORTE OxfO0 0xf0 0x00 0 00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x04 ORLE 03 00 0x00 0x00 0x00 0x04 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 Oxbf 0x00 0x00 0x00 0x00 0x08 0x08 int message WPARAM wParam LPARAM lParam 16 16 ANDmaskIcon XORmaskIcon 4 Q new new icon wParam lParam 103 MiniGUI V2
456. x 42 MiniGUI V2 0 4 nman EndPaint hWnd hdc return Ox 2 MiniGUI 3 4 9 MSG CLOSE MiniGUI MSG_CLOSE DestroyMainWindow WS_MINIMIZEBOX WS_MAXMIZEBOX MiniGUI MSG_MINIMIZE MSG_MAXIMIZE 3 4 10 MSG_DESTROY HH DestroyMainWindow DestroyWindow
457. 0 CTRL BUTTON WS TABSTOP WS VISIBLE BS DEFPUSHBUTTON JLz 0 215 IDOK 0 bs Static void my notif proc HWND hwnd int id int nc DWORD add data e if id IDC SIZE MM amp amp nc EN CHANGE char buff 60 double len GetWindowText hwnd buff 32 len atof buff len len 25 4 sprintf buff MRS 5f len SetDilginitemuesscesctbarence bwnd TCRO TAER bur EE lt static int InputLenDialogBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message MiniGUI V2 0 4 nman case MSG_INITDIALOG DialogBoxIndirectParam ep SetWindowAdditionalData hDlg lParam ep SetNotificationCallback GetDlgItem hDlg IDC SIZE MM my notif proc return 1 case MSG_COMMAND switch wParam case IDOR char buff 40
458. 0 break case MSG DESTROY DestroyAnimation ANIMATION GetWindowAdditionalData hWnd TRUE DestroyAllControls hWnd return 0 case MSG_CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0y return DefaultMainWinProc hWnd message wParam lParam 36 1 36 1 banner gif ANIMATION 36 1 banner gif 408 MiniGUI V2 0 4 37 gridview header
459. 20 50 50 hWnd DWORD GetLargeSystemIcon IDI INFORMATION CreateWindow CTRL STATIC n WS CHILD SS BITMAP SS REALSIZEIMAGE SS CENTERIMAGE WS VISIBLE TDCESTARLC 280 140 50 50 hWnd DWORD GetSystemBitmap SYSBMP_CHECKMARK CreateWindowEx dwAddData 19 3 YL Iv 19 3 IHI 19 1 3 SS_GROUPBOX 19 4 CreateWindow CTRL STATIC 265 MiniGUI V2 0 4 III iu A u R T UBPwK RuwBHRhmSES8
460. 23 2 1 lees 305 23 2 2 WES Dente eR eee pere 307 23 3 tais p aD LLL DL LL 307 PR M c 308 LOO MD M 313 E 4 E 313 MiniGUI V2 0 4 nman e S o 232 E E UL I EL MM EET 314 24 2 1 FRALRES MAR F 314 24 2 2 314 24 2 3 314 24 2 4 WCECOAB NE Hs eos edere Ree notare e dace ace ade UR IU teg 314 314 24 2 6 315 2 315 2 315 DA p ua uha nn 316 25 319 VE rd
461. AE DAdE SEES 2 1 2 MiniGUI MiniGUI MiniGUI m MiniGUI Threads MiniGUI Threads 7 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 minicu QF ya Align Only EU BER XE RUN GRE ZO EU uC OS ll eCos VxWorks pSOS Linux uClinux E MiniGUI MiniGUI Threads dei m MiniGUI Processes MiniGUI Threads MiniGUI Processes
462. GRIDCELLS source GRIDCELLS target GRIDCELLEVALCALLBACK callback DWORD dwAddData GRIDCELLDEPENDENCE typedef int GRIDCELLEVALCALLBACK GRIDCELLS target GRIDCELLS source DWORD dwAddDat a GRIDM ADDDEPENDENCE kL GRIDCELLDEPENDENCE dependece SendMessage hwndGrid GRIDM ADDDEPENDENCE 0 dependence LH GRID_ERR GRIDM DELDEPENDENCE ine SendMessage hwndGrid GRIDM DELDEPENDENCE 0 dependence id dependence id GRID_OKAY GRID ERR 37 4
463. NMAN P Little Endian X Big Endian ArchSwap16 m ArchSwapLE32 X Little Endian 32 Little Endian X Big Endian ArchSwap32 m ArchSwapBE16 X Big Endian 16 Big Endian X Little Endian ArchSwap16 m ArchSwapBE32 X Big Endian 32 Big Endian X Little Endian ArchSwap32 MiniGUI VO Endian Little Endian
464. WEC 3DBOX LIGHT ZAER WEC 3DBOX DARK WEC FLAT BORDER UJ FGC CONTROL DISABLE i d IO E ERE D BKC HILIGHT NORMAL BKC HILIGHT LOSTFOCU Wf 9 S E FGC_HILIGHT_NORMAL Ex S BKC CONTROL DEF FGC CONTROL NORMAL FGC HILIGHT DISABLED AS IE TAS BKC DESKTOP BKC_DIALOG Jis JE ftJ E V E kg D UR HWND hwnd GetDlgItem hDlg IDC STATIC ga puxelepixel s ERGEZIPSPC TQ selon gra SetWindowElementColorEx hwnd FGC CONTROL NORMAL pixel UpdateWindow hwnd TRUE UpdateWindow SetWindowBkColor HWND hwnd GetDlgItem hDlg IDC neci
465. hWnd DestroyMainWindow hWnd PostQuitMessage hWnd return return DefaultMainWinProc hWnd message wParam lParam 9 2 4 KIZ RATHA MSG LBUTTONDOWN MSG LBUTTONUP MSG_MOUSEMOVE MSG_LBUTTONDOWN 93 nman MiniGUI V2 0 4 MSG MOUSEMOVE MSG LBUTTONUP Cd 9 3
466. mem dc BM TRANSPARENT SetTextColor mem dc RGBA2Pixel mem dc 0x00 0x00 OxOO 0x80 TabbedTextOut mem dc 0 0 Memory DC with alpha Wn ime so ae pio e Ta piya cm Blit Gal pc geere ciek Ceci y count 100 while count Pit B E mew be 400 100 hoe cene O a H00 seme O a B00 p enel ciek Nec eom 1 mmeulSsmeedahwncdesEstrasscetm cia ende na e000 DC DeleteMemDC mem dc Alpha DC 32 RGB 8 Alpha mem dc CreateMemDC 400 100 32 MEMDC FLAG HWSURFACE MEMDC FLAG SRCALPHA MEMD C FLAG SRCCOLORKEY OxOOOO000FF 0x00000000 pc SetBrushColor mem dc RGB2Pixel mem dc OxFF OxFF 0x00 DSS ME OP 0 400 100 SetBkMode mem dc BM TRANSPARENT SetTextColor mem dc RGB2Pixel mem dc 0x00 0x00 OXEE TabbedTextOut mem dc 0 0 Memory DC with alpha Wn The source DC have alpha per surface Blit DE Je grawe tn c Me EEG om E ne c r00 while count DC Alpha SetMemDCAlpha mem dc MEMDC FLAG SRCALPHA MEMDC FLAG RLEACCEL rand 256 BitBlt mem dc 0 0 400 100 hdc rand 5 800 rand O 800 endir terk NccEmsels
467. minigui window h dinclude minigui control h define IDL DIR 100 ddefine IDL FILE 110 ddefine IDC PATH 120 Static DLGTEMPLATE DlgDelFiles WS_BORDER WS_CAPTION WS EX NONE 100 i09 904 225 7 NULG 0 9 static CTRLDATA CtrlDelFiles 287 MiniGUI V2 0 4 nman EHI CTRL STATIC WS VISIBLE SS SIMPLE mor 0 15 TOCE STATIO b CTRL LISTBOX WS VISIBLE WS VSCROLL WS BORDER LBS SORT LBS NOTIFY 30 150 100 TI Pp P nn 0 CTRL STATIC WS VISIBLE SS SIMPLE 3158 10 3990 Te Shu SC EE n 0 Hi af CTRL LISTBOX WS VISIBLE WS VSCROLL WS BORDER LBS SORT LBS AUTOCHECKBOX 35 30 130 100 TDL n D 0 m CTRL_STATIC WS VISIBLE SS SIMPLE JL STESO 290 ES DAE ER 6 S 0 J putten WS_VISIBLE BS_DEFPUSHBUTTON WS_TABSTOP WS_GROUP 10 170 i30 25 IDOK 0 Mot TU WS VISIBLE BS PUSHBUTTON WS TABSTOP 1 50 3E T
468. nCols nCols pszinfo addData 32 2 4 LVM_ADDITEM LVM_ADDCOLUMN LVM_SETCOLUMN LVM_SORTIEMS SendMessage hwndListView LVM SORTITEMS 0 LPARAM pfnCompare pfnCompare PFNLVCOMPARE
469. 0 4 EZZ TF 21 21 1 x 3 ifaddrs h initreq h GL inttypes h X11 I E usr include 21 1 CTRL LISTBOX CreateWindow 21 1 MiniGUI LBS MULTIPLESEL d dirent lib 21 2
470. 2 dE 2x PEERS o Lena d reed Her Tec ete e PERRO aes qa qua eia 171 ENG 171 C rir 172 T3 62 u a a a 173 Sa gs Bp oR Sa 73 3 82 u passa Sus OR 73 3 8 3 esee HI 75 3 84 0 77 MERERETUR 78 3 8 0 a Met exi Pe 80 183 13 9 Se pa makata qayqa PR E RU Ee ET VPE 183 19 2 AERE tete a trm ER RR pe RE Eder Yd 184 aea o m TT 186 FEN IO 71 cp 186 14 2 WERE 187 UP cs m 188 TAA A EE 190 145 SF EE E 190 EE TE 1D 191 TA T E j de NN NN 194 15 NEWGAL GD ener 198 UMEN neo E 198 15 2 e aypana 199 153 A DE nani 199 15 4 BITMAP a eene nnne enne enne nnns 202 15 5 GDI Z E a acc ned ecd d e dida 203 15 6 GDI 204 15 67
471. 20 WS CHILD WS VISIBLE WS BORDER TDJIDTA 9 20 399 23 seuil 9 p 57 MiniGUI V2 0 4 NMOAN u sns 5 3 m m ShowWindow MoveWindow EnableWindow SetWindowFont MSG COMMAND wParam IK IParam EN CHANGE
472. 3E Els Jir MAE 9 2 2 BH S MiniGUI 1 1 R MSG_MOUSEMOVE MSG LBUTTONDOWN MSG LBUTTONUP MSG RBUTTONDOWN
473. 8 2 color depth bit count bpp bits per pixel f 173 MiniGUI V2 0 4 NMUN P EZZ TF 1 monochrome 0 1 4 16 8 256 16 65536 PC display adapter PC RAM ROM BIOS VGA LCD LCD contro
474. 9 1 simplekey c include minigui common h include lt minigui minigui h gt include lt minigui gdi h gt include minigui window h 88 static int SimplekeyWinProc HWND hWnd switch int message WPARAM wParam LPARAM lParam message case MSG KEYDOWN MiniGUI V2 0 4 q nman printf MGS KEYDOWN key dNn LOWORD wParam break case MSG KEYUP printf MGS KEYUP key dWXn LOWORD wParam break case MSG CHAR printf MGS_CHAR char dNn wParam break case MSG CLOSE DestroyAllControls hWnd DestroyMainWindow hWnd PostQuitMessage hWnd return 0y return DefaultMainWinProc hWnd message wParam lParam F MSG_KEYDOWN MSG_KEYUP MGS CHAR wParam MSG_KEYDOWN MSG_KEYUP CMSG_CHAR 9 2 9 2 1 MiniGUI
475. CBN SELCHANGE int nc DWORD add_data int cur sel SendMessage hwnd MBM GETCURITEM 0 ax ewe mel s 9 SetWindowText GetDlgItem GetParent hwnd IDC 24 2 0 PROMPT daxia char cur sel MiniGUI V2 0 4 nman Static void prompt HWND hDlg char date 1024 int hour SendDlgItemMessage hDlg IDC HOUR CB GETSPINVALUE 0 0 int min SendDlgItemMessage hDlg IDC MINUTE CB GETSPINVALUE 0 0 int sel SendDlgItemMessage hDlg IDL DAXIA MEM GETCURITEM O0 0 sprintf date 02d 02q s s hour min Glass Taca alse MessageBox hDlg date ZJ WJ MB OK MB ICONINFORMATION Static int MyDateBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam int i switch message case MSG INITDIALOG SendDlgItemMessage hDlg IDC HOUR CB SETSPINFORMAT 0 LPARAM 02d SendDlgItemMessage hDlg IDC HOUR CB SETSPINRANGE 0 23 SendDlgItemMessage hDlg IDC HOUR CB SETSPINVALUE 20 EC SendDlgItemMessage hDlg IDC HOUR CB SETSPINPACE 1 1 SendDlgItemMessage hDlg IDC MINUTE CB SETSPINFORMAT 0 LPARAM 02d SendDlgItemMessage hDlg IDC MINUTE CB SETSPINRANGE 0 59 SendDlgItemMessage hDlg IDC MINUTE CB SETSPINVALUE
476. DigStructParams controls CtrlStructParanms SendMessage pshwnd PSM ADDPAGE WPARAM amp DlgStructParams LPARAM PageProcl DlgPassword controls CtrlPassword SendMessage pshwnd PSM ADDPAGE WPARAM amp DlgPassword LPARAM PageProc2 DlgStartupMode controls CtrlStartupMode SendMessage pshwnd PSM ADDPAGE WPARAM amp DlgStartupMode LPARAM PageProc3 DlgInitProgress controls CtrlInitProgress SendMessage pshwnd PSM ADDPAGE WPARAM amp DlgInitProgress LPARAM PageProc4 break 339 MiniGUI V2 0 4 nman SumEEEEEEEEEEEEEEEUB IuLwE iGQUi UEAAO OOLMMMM MAS asss case MSG_COMMAND switch wParam Gars cM FADE VIC break cane IDOK PSM_SHEETCMD int index SendDlgItemMessage hDlg IDC PROPSHEET PSM SHEETCMD IDOK 0 da nqa SendDlgItemMessage hDlg IDC PROPSHEET PSM SETACTIVEINDEX index 1 0 else EndDialog hDlg wParam break case IDCANCEL EndDialog hDlg wParam break break return DefaultDialogProc hDlg message wParam lParam 28 2 3
477. E TE E 225 1511 ET A A E E OET OTA 226 MiniGUI 227 MM 229 46 ss 229 16 2 MiniGUI Processes 11 231 16 2 1 MiniGUI Processes I 231 DAR XO E Son vod akaqa wcakasykassqaquqhassayaqiaaqasq 232 16 2 3 UNIX Domain Socket 43 esses rens 234 17 MiniGUI Processes 237 17 1 MDE mginit 237 17 1 1 MiniGUI Processes ii 237 241 u a muna d 241 MiniGUI V2 0 4 NMOAN Yw vs C k 1721 4 JE SCA E oe 242 RN XUI 0l MMC 242 17 2 mginit 243 17 3 MiniGUI Processes i 246 17 4 Mginit i 247 E TIU EE 249 18 1 Shadow J u u 249 18 2 CommLCD J R 250 18 3 MInGUL ME a aQ D TT 251 TEA Commi ALS N s
478. EY REDE NN HUP er EERER VES ERN Cen ETE ets 204 15 6 2 Fe kr le TE HIDE eise RA RR RR RR HER M RERTAREELEDE e aa 204 T Dar 206 MR 206 VIII MiniGUI V2 0 4 ee nman 68946 fr 5 7 1 ZEE RR s DO aad erp I ene oe 207 BE BN enses narices DIOE dps quias ds AU ard Nuka qes 207 VEU MAERA TT ODE 207 D Tet BOVEN y unay aun EIB TP 208 5 7 5 s Pais PE kayaq Do toa om 208 5 7 6 REUE ER 209 DOTT upra peres 209 5 7 8 es 210 eS Se EL su 211 15 9 ete teet et eese 212 15402 el usu usa uN aqa 213 214 15 12 YUV Gamma 215 215 5 212 2 Gamma Ca DTP 218 15 43 219 5 13 1 18285 7 A be eee exo EP pL E eer TERRY E EU P Ur REPAS 219 5 13 2 iml E EE esses Gd qq RSEN A AG ads 221 5 13 3 AA nd 222 5 13 4 enrolled sr Rhe ee bestie eee 223 Ur C 225 MEN EEG aE E EA AE E ET
479. GetPrivateClientDC HWND hwnd void GUIAPI DeletePrivateDC HDC hdc WS EX USEPRIVATEDC CreateMainWindow GetPrivateClientDC CS_OWNDC DeletePrivateDC MiniGUI V2 0 4 NMUN PP DeletePrivateDC 13 3 3 SaveDC RestoreDC C lt minigui gdi h gt int GUIAPI SaveDC HDC hdc BOOL GUIAPI RestoreDC HDC hdc int saved dc 13 3 4 MiniGUI
480. IN Bese de tale sum Vesl ly Static unsigned char btn state 0 static int mousex Static int mousey Static POS pos 0 undef DEBUG Level Input Operations k k k k k k k ko k k kk kk kk kk x x Mouse operations Event Static int mouse update void gety int s ifdef _DEBUG return 1 printf mousex d mousey mousex mousey endif if mousex 0 mousex 0 if mousey lt 0 mousey O0 if mousex 319 mousex 319 mousey s 839 mousey 299 ifdef COOR TRANS dif ROT DIR CCW x mousey y 319 mousex else x 239 mousey y mousex endif else x mousex y mousey endif static int mouse getbutton void return pos b Static int keyboard update void 256 MiniGUI V2 0 4 nman char statinfo int status int key Attention Statinfo btn state amp KEY RELEASED UP DOWN status btn state amp KEY RELEASED 0 1 key btn state amp KEY NUM ifdef DEBUG fprintf stderr key d is s key statinfo endif switch key cage Jis state H3600 SCANCODE RECORD Status State SCANCODE LEFTSHIFT status break cases State H3600 SCANCODE CALENDAR break caga 3 state H3600 SCANCODE CONTACTS break case 4 state H3600
481. MiniGUI Endian E SERA 149 12 5 2 AH Z amp E VE A 53 RTL esses e 150 4126 E POS R 192 II MiniGUI 154 13 APERE EE 156 13 1 MiniGUI iussisse nennen nenne eee nnns 156 Obi s a ass 56 9 56 158 3 9 aUe ted aie leis o Roe deg 58 2 0 MSG DATNT zu E ENERO 58 3 2 8 pak Scribd e MEME 59 IK UC 160 3 3 1 EDE A BAR 60 3 3 2 3KHR H EJR 61 3 3 3 onnan aanerer naaar reenn 64 3 3 4 IIR I 64 e ou 64 13 4 nn 164 TIA T RERA o maan uay wi 164 KT EE p ha apk a kada 165 13 NEG CI TI PC 167 13 4 4 AE f ZR IIR eese HH HH 167 KI Vr qe 168 13 5 1 AES MiniGUI V2 0 4 NMOAN c R 13 5 2 Pe RR E aUas CERE er EE Rer RR E RR Sui 169 13 6 4 170 13 6 1 AE EE I i seeded ER ERE RD 170 1326
482. O0 0 SendDlgItemMessage hDlg IDC MINUTE CB SETSPINPACE 1 2 Fee ak c pg x oc wg see d MENUBUTTONITEM mbi mbi text daxia il mbi bmp NULL mbi data 0 SendDlgItemMessage hDlg IDL DAXIA MBM ADDITEM 1 LPARAM amp mbi MEET LIS A H V SetNotificationCallback GetDlgItem hDlg IDL DAXIA daxia notif proc SendDlgItemMessage hDlg IDL DAXIA MBM SETCURITEM 0 0 SetWindowText GetDlgItem hDlg IDC PROMPT daxia char 0 return 1 case MSG_COMMAND switch wParam case prompt hDlg case 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 menubutton O 0 endif DlgMyDate controls CtrlMyDate DialogBoxIndirectParam amp DlgMyDate HWND DESKTOP MyDateBoxProc OL return 317 MiniGUI V2 0 4 NMUN P EZEK TF 24 2 318 MiniGUI V2 0 4 nman 68946 fr
483. PROGRESS 5 define SIID SYSMENU 6 define SIID CLOSE 7 ddefine SIID VOLUME 8 define SIID TIMER 9 define DEF WIDTH 284 ddefine DEF HEIGHT 135 define ID TIME 100 Static si nrmslider t progress 18990 b 5 hs Static si nrmslider t volume 1a 109 50h 9 jg Static si bmplabel t timer static skin item t skin main items SIID PLAY SI TYPE CHKBUTTON SI TEST SHAPE RECT SI STATUS VISIBLE 205 106 i mapah SIID PAUSE SI TYPE CHKBUTTON SI TEST SHAPE RECT SI STATUS VISIBLE 230 106 2 Eg SIID STOP SI TYPE CHKBUTTON SI TEST SHAPE RECT SI STATUS VISIBLE 25 3959 h 9 SIID PROGRESS SI TYPE NRMSLIDER SI TEST SHAPE RECT SI STATUS VISIBLE 51 NRMSLIDER HORZ 8 91 4 amp progress SIID SYSMENU SI TYPE CMDBUTTON SI TEST SHAPE RECT SI STATUS VISIBLE Sh Os hes 8 SIID CLOSE SI TYPE CMDBUTTON SI TEST SHAPE RECT SI STATUS VISIBLE 2995 25 lh y SIID VOLUME SI TYPE NRMSLIDER SI TEST SHAPE RECT SI STATUS VISIBLE SI NRMSLIDER HORZ 102 55 8 i 5 E 0 amp volume SIID TIMER SI TYPE BMPLABEL SI TEST SHAPE RECT SI STATUS VISIBLE 20 67 0 amp timer Skin head t main skin
484. SCANCODE Q status break case 59 state H3600 SCANCODE START status break case 6 state H3600 SCANCODE UP status break alc a state H3600 SCANCODE RIGHT status break case 53 state H3600 SCANCODE LEFT status break casga 9 State H3600 SCANCODE DOWN status break cage Los state H3600 SCANCODE ACTION status break Cagen Ti state H3600 SCANCODE SUSPEND status break reca Ne J Status Status static const char keyboard getstate void ifdef LITE VERSION gtatickintiwai tevent Ant imas roro imme CE out r decere struct timeval timeout return char state else Sr arm e ine Kwa m Pie ver lime waite Ee aet Sim e xeu Cue iol Ee Struct timeval timeout endif xeu eles int retvalue 0 int e ae quibm 4 in Rd FD ZERO in 257 MiniGUI V2 0 4 nman if which amp IAL_MOUSEEVENT amp amp ts gt 0 BD img s ifdef LITE VERSION if ts maxfd maxfd ts endif if which amp IAL KEYEVENT amp amp btn fd gt FD SET btn fd in ifdef LITE VERSION l Ff ptc d endif ifdef LITE VERSION e select maxfd 1 in out except timeout else e geleet D Sarel OUt Gos me endif AS ex 0 sb Qum ee 0 cedem 1S6 eh FD CLR ts in pos xz 0 pos yz
485. SendMessage hwndList LB MULTIADDITEM num LPARAM 1511 21 2 9 LBS SORT C strncmp LB SETSTRCMPFUNC static int my stremp const char 51 const char s2 size n dae weh 285 Fo nman MiniGUI V2 0 4 ine 5X2 p return 41 i2 SendMessage hwndList LB SETSTRCMPFUNC 0 LPARAM my strcemp 1 2 3 4 10 20 6 2 20 3 4 1 10 j 32 Hj LB_SETITEMADDDATA LB_GETITEMADDD
486. StatusCode Value IS_ENABLE IS_FULLCHAR IS_FULLPUNC IS_METHOD IME int GUIAPI GetIMEStatus int StatusCode IME amp StatusCode GetIMEStatus IME MiniGUI Processes Registe T rIMEWindow F 32 mginit MiniGUI 1 Afi AN 17 k f LETT TH IZ BU RB BE E 256 H MiniGUI V2 0 4 nman 3 3 3 3 1 MiniGUI
487. V2 0 4 ERHCE 354 MiniGUI V2 0 4 ee nman 30 ScrollView ScrollWnd Listbox Listview Listbox Listview zu 30 1 SVS AUTOSORT SVM_SETITEMCMP SVM SETITEMCMP myItemCmp SendMessage hScrWnd SVM SETITEMCMP 0 LPARAM myItemCmp myltemCmp
488. V2 0 4 pn sema n 11 2 7 skin item t style SI TYPE CMDBUTTON bmp index 11 4 11 4 SI_BTNSTATUS_ CLICKED 11 2 8 skin item t style SI_TYPE_CHKBUTTON bmp_index SI_BTNSTATUS CHECKED Xo Xn j skin get check status skin set check status
489. WS_NONE WS EX NONE 9 0 9 0 n Os Oz 1 NULL 0 Ur Stat ue Osa 1 WS_VISIBLE SS_LEFT 19 i9 370 160 IDC SYSINFO n n n n n n 0 bs srarieisiizeitirceadisysinroi Const Ee cohaerent MEET SIR a Sue Bp Ex Fine huru if fp NULL return 0 gdire om MEME CIE lem S fclose fp return size ddefine BUF LEN 10240 27 Static void get systeminfo HWND hD1g int type HWND hwnd char buff BUF LEN 1 1 Glue 5 Ur type type int GetWindowAdditionalData hDlg hwnd GetDlgItem hDlg IDC SYSINFO buff BUF LEN 0 switch type case PAGE VERSION 342 MiniGUI V2 0 4 nman Size read sysinfo proc version buff BUF LEN wae aizel e 9p break case PAGE CPU S
490. WS_VISIBLE WS_VSCROLL WS_HSCROLL ij 300 200 IDC_SCROLLWND image viewer 0 CERTI BUTTON WS TABSTOP WS VISIBLE BS DEFPUSHBUTTON Z0 220 60 25 ID ZOOMIN Zoom in 0 CTRL BUTTON WS TABSTOP WS VISIBLE BS PUSHBUTTON 20 2290 O0 225 ID ZOOMOUT 700m Out 0 ba static DLGTEMPLATE DlgViewer WS_BORDER WS_CAPTION WS_EX_NONE 0 950 2805 Image Viewer 0 20091 TABLESIZE CtrlViewer CtrlViewer 0 pa int MiniGUIMain int argc const char argv l ifdef _MGRM_PROCESSES JoinLayer NAME DEF LAYER scrollwnd 0 0 endif if LoadBitmap HDC SCREEN amp bmp bkgnd bkgnd jpg return 1 352 MiniGUI V2 0 4 Fsssssssv vsihas sss nman EZEK TF DialogBoxIndirectParam amp DlgViewer HWND DESKTOP ImageViewerProc OL UnloadBitmap amp bmp bkgnd recurnior ifndef _ MGRM_PROCESSES dinclude minigui dti c dendif SVM SETCONTAINERPROC MSG PAINT 29 2 Bros 29 2 353 MiniGUI V2 0 phan MEJET
491. William Sun Alex Zhang bg static void myDrawItem HWND hWnd HSVITEM hsvi HDC hdc RECT rcDraw const char name const char ScrollView get item adddata hsvi SetBkMode hdc BM TRANSPARENT Seltimeser o oso hcc EDITI GIN if ScrollView is item hilight hWnd hsvi SetBrushColor hdc PIXEL blue FillBox hdc rcDraw left 1 rcDraw top 1 RECTWP rcDraw 2 RECTHP rcDraw 1 SetBkColor hdc PIXEL blue Setrexteolonshdc ipi GF mature Rectangle hdc rcDraw gt left rcDraw gt top rcDraw gt right 1 rcDraw gt bottom TextOut hdc rcDraw gt left 3 rcDraw gt top 2 name Static int myCmpItem HSVITEM hsvil HSVITEM hsvi2 const char namel const char name2 const char ScrollView get item adddata hsvil const char ScrollView get item adddata hsvi2 361 MiniGUI V2 0 4 nman ERBAK M return strcmp namel name2 static int BookProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_INITDIALOG SVITEMINFO svii statig int 3 hScrollView GetDlgItem hDlg IDC SCROLLVIEW SetWindowBkColor hScrollView PIXEL lightwhite SendMessage hScrollView SVM SETITEMCMP 0 LPARAM myCmpItem SendMessage hScrollView SVM SETITEMDRAW 0 LPARAM myDrawItem for 1 0 1 TABLESIZE people i Svii nItemHeight 32 Svii addData DWORD people il sv
492. XA eese III erra 284 21 2 5 284 21 2 6 KEXI KEZ B KAS 284 21 2 7 284 21 2 8 ETT 285 ICM 285 24 3 Q Qs s Q u q S aaa ia 286 21 4 m TER 287 is oce Ma THEM 291 VORNE Q a a R A a R 291 PPE T EE Pn EEEE EEE EE TIME 292 22 2 1 RRR 293 22 2 2 Wr ya E E E kawa 293 22 2 3 3 294 22 2 S Eu been dia re nd e Y sua bua 295 22 2 5 BUB X b a Ziana ps taqahuyqaqaqqqaqqaqaeqykukauqQapaueasqaqakakaqaq 295 22 2 10 sD Dm 295 22 9 T Wr EUN 995 22 2 8 WB 296 22 2 9 WELT Ei ayda ena atas aasan pasa q pa b on 297 22 2 qoaa dades ded gm te ee E e EM estate aote olia 297 22 2 11 297 223 n S uu 298 22 5 Eee 299 I E 303 231 H S EB nei 303 23 1 1 303 aris M 305 215 45 E 905
493. b t ee b 1 RRRRRRIRIRRRIH Ih a oce d Dr tea 09b dE SER usaq uk Deu sod mea u usuyqa a S SL us E 0 3 4 aaaeeeaa eaaeo mls H MiniGUIExt J 4 11 1 11 2 1 EE ed aub d opi pet ac daga khas sS j j i eee E be erre E E sa sau Eea UP ERA asss HEU 6 ME Lio PME T c MMC Exc x lr E EEE NN P MNT RA E da ed 11 3 nn MiniGUI V2 0 4 nman 68246 fr WEE IRE o E E E EEEE ESS 136 12 c cu MEER 140 lg e 140 122 dg I M 142 2 143 143 12 3 2 eese IH n 144 123 3 JK nikik POK Pra ua a br montem Pere e wasqa ag ee asia 144 CO 2 S 145 POE sJ E m 148 12 5 1
494. buf len SendMessage hwndEdit EM GETSEL buf len LPARAM buffer IParam wParam EM_SETSEL 293 MiniGUI V2 0 4 pngn ia s lt lt ERMMEKTE lmt lisse pon imu dX SendMessage hwndEdit EM SETSEL line pos char pos rh IParam wParam EM_GETSELPOS Tamie eos int char pos SendMessage hwndEdit EM GETCARETPOS WPARAM amp line pos LPARAM amp char pos EM GETSELPOS EM GETCARETPOS EM SELECTALL CTRL A SendMessage hwndEdit EM SELECTALL 0 0 22 2 3
495. dwAddData TVITEMINFO text root dwFlags TVIF SELECTED TVIF_FOLD TVIF_FOLD hlconFold hlconUnfold TVS_ICONFORSELECT hlconFold hlconUnfold TVS_WITHICON TVM ADDITEM TVM_INSERTITEM TVITEMINFO tvItemInfo GHANDLE item item SendMessage hTrvWnd TVM ADDITEM 0 LPARAM amp tvItemInfo item 7j SendMessage TVM_DELTREE SendMessage hTrvWnd TVM DELTREE WPARAM item 0 item GHANDLE TVM_ADDIT
496. font id PLOGFONT GUIAPI GetCurFont HDC hdc PLOGFONT GUIAPI SelectFont HDC hdc PLOGFONT log font Static LOGFONT logfont logfontgb12 logfontbig24 logfont CreateLogFont NULL SansSerif ISO8859 1 FONT WEIGHT REGULAR FONT SLANT ITALIC FONT FLIP NIL FONT OTHER NIL FONT UNDERLINE NONE FONT STRUCKOUT LINE 16 0 logfontgb12 CreateLogFont NULL song GB2312 FONT WEIGHT REGULAR FONT SLANT ROMAN FONT FLIP NIL FONT OTHER NIL FONT UNDERLINE LINE FONT STRUCKOUT LINE I2 0 logfontbig24 CreateLogFont NULL ming FONT WEIGHT REGULAR FONT SLANT ROMAN FONT FLIP NIL FONT OTHER AUTOSCALE FONT UNDERLINE LINE FONT STRUCKOUT NONE Ach LE PE x logfont 16 logfontgb12 12 logfontbig24 BIG5 ming f amp AN 24 FONT_OTHER_AUTOSCALE
497. get item id 127 MiniGUI V2 0 4 nman EHI Skin item t skin get item skin head t skin int id skin get item status DWORDPeS ano tm Cou te Sam skin get hilited item Slikala Leem cs Skia Get cew Ska e a M gt Sisin p skin set hilited item Skim icem e Skia ieri dee mi kim neac sizim ime L6 y skin show item DWORD skin show item skin head t skin int id BOOL show skin enable item DWORD skin enable item skin head t skin int id BOOL enable 11 2 5 skin_item_t style SI_TYPE_NRMLABEL type_data si nrmlabel t
498. hDlg message wParam lParam Static int PropSheetProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_INITDIALOG HWND pshwnd GetDlgItem hDlg IDC PROPSHEET PageSysInfo controls CtrlSysInfo PageSysInfo caption PageSysInfo dwAddData PAGE VERSION SendMessage pshwnd PSM_ADDPAGE WPARAM amp PageSysInfo LPARAM SysInfoPagePr 343 nman fr PageSysInfo caption CPU fil PageSysInfo dwAddData PAGE CPU SendMessage pshwnd PSM ADDPAGE WPARAM amp PageSysInfo LPARAM SysInfoPagePr PageSysInfo caption PageSysInfo dwAddData PAGE SendMessage pshwnd PSM ADDPAGE WPARAM amp PageSysInfo LPARAM SysInfoPagePr PageSysInfo caption PageSysInfo dwAddData PAGE PARTITION SendMessage pshwnd PSM ADDPAGE WPARAM amp PageSysInfo LPARAM SysInfoPagePr PageSysInfo caption MiniGUI PageSysInfo dwAddData PAGE MINIGUI SendMessage pshwnd PSM ADDPAGE WPARAM amp PageSysInfo LPARAM SysInfoPagePr break MiniGUI V2 0 4 case MSG COMMAND switch cage NS ES wParam PSM SHEETCMD SendD
499. hwndListView LVM ADDITEM hParent LPARAM amp lvItem hParent hParent 0 hParent 0 lvltem LVITEM LVITEM typedef struct LVITEM int nItem int nItemHeight DWORD itemData LVIF_FOLDNn JUI yr 376 MiniGUI V2 0 4 r aw nrr sr r U nman listview LVIF_FOLD zy DWORD dwFlags LVITEM nltem LVM_ADDITEM wParam nltem itemData
500. mg samples coolbar c gn gn 4 TTD MiniGUI V2 0 4 nman erari vore Create Coolie HWND cb COOLBARITEMINFO item int TS HWND hWnd cb CreateWindow CTRL_COOLBAR n 7 WS CHILD TOO TO hWnd DES WS VISIBLE WS BORDER T00 2 item ItemType item Bmp NULL item dwAddData 0 for i 0 item insPos i item id i HVPE eE ssh T pP a i lt ITEM NUM i item Caption caption il item SendMessage static int CoolbarWinProc static HWND ed switch message case MSG_CREATE ItemHint hint il CBM ADDITEM 0 LPARAM amp item HWND hWnd int message WPARAM wParam LPARAM lParam FH 1 ed CreateWindow CTRL EDIT nn WS CHILD 200 LOS 3E hWnd 90 s create coolbar break case MSG COMMAND int id LOWORD int code HIWORD sse hel ez 390 1 WS VISIBLE WS BORDER 10 20 hWnd wParam wParam static char buffer 100 char buf 2 sprintf Buf uzdi Sen
501. o MN RR RENS 319 252 3 C P MN ER T T T T T T 319 25 9 1 819 Bn qug e Ca quae papa bmc Nd Pan aeris 320 25 99 e S rE eda E T pede Deni 320 25 2 4 0 320 25 2 5 fEBEEFAC BUXE 4 2P3RR 320 25 3 UE A LI MERE 321 PARURE E E kau sas 321 eco CE 325 26 S1 325 DIRE Dco KT HT 326 2060 0 lli Ta usa u uuu a u N a EE 326 26 4 MENU 326 2 329 D7 E NEIN A S 329 27 2 JEU asusnnnnunntsnneseBbeeBEBEBERDBHELBBUB HERMES MIS 330 203 T HIS E ESPUSUPUPSPUPDEDPUEUPUPOPUBOUPUPD PEE 331 YT EAE vh h e MEER NNI 331 27 3 2 3kHoR WEE LR 332 21 3 3 sa esed tem nrc een ree Ue c meses pate pers 333 vd Mee R 993 21 5 S tex EE EE 333 RR 337 XII MiniGUI V2 0 4 nman 68246 fr
502. rcDraw RECTHP rcDraw SecBrEColor hee if label RECT rex roDraw rcTxt top rcTxt bottom GetWindowFont hWnd size 2 rcTxt left rcTxt left GetWindowFont hWnd size 2 DrawText hdc label 1 amp rcTxt DT SINGLELINE DT CENTER DT VCENTER FillBoxWithBitmap hdc rcDraw left rcDraw top 0 0 pbmp static int BookProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG INITDIALOG IVITEMINFO ivii Bgrobtsc ime t s J sss hlIconView GetDlgItem hDlg IDC ICONVIEW SetWindowBkColor hlIconView PIXEL lightwhite SendMessage hlIconView IVM SETITEMDRAW 0 LPARAM myDrawItem SendMessage hlIconView IVM SETITEMSIZE 55 65 SendMessage hlIconView IVM SETITEMSIZE 35 35 for 3p ex Op 3 uw Sp s zm for 1 0 1 lt TABLESIZE myicons i memset amp ivii 0 sizeof IVITEMINFO ivii bmp amp myicons il ivi nltem j x 3s ivii label iconlabels i l ivii addData DWORD iconlabels i l SendMessage hlIconView IVM ADDITEM 0 LPARAM amp ivii 425 MiniGUI V2 0 4 nman EHI case MSG COMMAND int id LOWORD wParam int code HIWORD wParam switch id case IDC ICONVIEW if code IVN CLICKED int sel sel SendMessage hIconView IVM GETCURSEL 0 0 usa Weqe sipu j Cea med s break case IDC_ADD IVITEMINF
503. s 0 if app info app items appl cdpath chdir app info app items appl path Strcpy buff app info app items appl path Strcat buff app info app items appl name if app info app items appl layer 01 execl buff app info app items app l name layer app info app items appl layer NULL else execl buff app info app items app l name NULL perror execl eee 11 5 else So ER return pid 17 1 5 mginit while GetMessage amp msg hTaskBar DispatchMessage amp msg 242 MiniGUI V2 0 4 nman EE MiniGUI Processes 17 2 mginit MDE mginit MiniGUI Processes mginit MiniGUI Processes helloworld F1 FA mginit
504. tw ACERO ansa saa 73 7 3 73 ror rcm 77 Cue I S Po MEC E SDS s SAYU USD EE ae 77 7 78 8 3 2 EDDA E E 78 p mM TCI 79 LEGE Pp PS pr e aE o aE EE E E E SA UE Ura UDI SEES EEEE E E SE EE 81 9 T 85 DNE RR HR TN 85 85 ET 86 CETT 86 87 DT 88 9 ua suyasaq a 88 92 89 89 apuq wp a pakana REE E MURO ab 90 9 2 9 91 9 2 24 MER Un Eheu cete Ee Debe ea ELE SD PRINS 93 SE OI D sss 95 mgr RER 7 VI 10 11 10 1 10 10 10 10 10 2 10 3 jf A 1 JR A JTHPGDEETED RRRRIRRRRRIRRRRRRRRRRRRI I Rhe 0 8 2 tos E JH ATP de cteherEREEGrDhPCetelce a 1 1 jd N N MiniGUI V2 0 4 6 Nt zd MER uu eS tete eere app EE FEES i Us
505. unsigned int speed TIMERPROC timer proc BOOL GUIAPI SetTimerEx HWND hWnd int id unsigned int speed TIMERPROC timer proc ddefine SetTimer hwnd id speed N SetTimerEx hwnd id speed NULL ddefine ResetTimer hwnd id speed N ResetTimerEx hwnd id speed TIMERPROC OxFFFFFFFF ER TIMERPROC m 32 m ha ID X SetTimerEx ID Hg FALSE Hj MiniGUI TIMERPROC one shot LI gt MiniGUI MiniGUI R m MiniGUI Threads 82 32 m MiniGUI Processes 32
506. value ret value ret value 15 MAX REQID MiniGUI Processes mginit MiniGUI Processes K A 16 2 3 UNIX Domain Socket AS UNIX Domain Socket 8 MiniGUI Processes lt minigui minigui h gt Used by server to create Please located the socket Returne fd if all OK Wait for a client connect We also obtain the client returns new fd if all OK int serv accept Returns fd if all OK ddefine SOCKERR IO ddefine SOCKERR CLOSED ddefine SOCKERR INVARG define SOCKERR OK UNIX feXexels vourabieiss eb Wa eo Beso Mec 234 gt L n error int serv listen const char name that it must bind before calling us L Om qc int cli conn const char name
507. vgtaciet WS_VISIBLE SS_GROUPBOX WS_GROUP 3450 124 160 IDC STATIC Wk n 1 0 putton WS VISIBLE BS AUTOCHECKBOX T70 S39 88 25 IDC XIAN 0 putton BS_CHECKED WS VISIBLE BS AUTOCHECKBOX BS CHECKED T70 6A 889 20 LA LI 0 275 MiniGUI V2 0 4 nman EHI tust rcs WS VISIBLE SS LEFT WS GROUP 16 i89 3690 20 IDC PROMPT 3 0 putton WS_VISIBLE BS_DEFPUSHBUTTON WS TABSTOP WS GROUP 80 220 935 8 IDOK 0 U uE ton WS VISIBLE BS PUSHBUTTON WS TABSTOP 5 2207 957 28 IDCANCEL 0 m lE static char prompts v R RE RE bs Static void my notif proc HWND hwnd int id int nc DWORD add data
508. y w h parent add data N CreateWindowEx class name caption style 0 id x y w h parent add data CreateWindow class_name caption style id x y wW h parent add data I 56 MiniGUI V2 0 4 nman ETE CreateWindowEx CreateWindow K 2 3 CreateWindowEx dwExStyle DestroyWindow 5 1 hStaticWnd1 hWnd hButton1 hButton2 hEdit1 hStaticWnd2 hStaicWnd1 hStaticWnd1 D T ffl hEdit2 hStaicWnd2 hStaticWnd1
509. 0 bitmap bmAlpha rand MIEL b FillBoxWithBitmap hdc Alpha 256 CO c oy EET T NS GetTickCount hwnd end tick JTellSpeed OE Start tick end tick Alpha Blended Transparent Bitmap 1000 UnloadBitmap amp bitmap CreateMemDCFromBitmap BITMAP DC lt minigui gdi h gt HDC GUIAPI CreateMemDCFromBitmap HDC hdc BITMAP bmp BITMAP DC BITMAP bmBits BITMAP GDI MYBITMAP DC APR MYBITMAP CreateMemDCFromMyBitmap lt minigui gdi h gt HDC GUIAPI CreateMemDCFromMyBitmap HDC hdc MYBITMAP mybmp GAL BitBIt 3k HMA FillBoxWithBitmap BITMAP MYBITMAP F DC
510. 0 FIXME maybe failed due to the struct alignment read ts amp pos sizeof POS le Gm mes be 3 4 ii mese e mousex pos x mousey pos y pA Hifdef DEBUG if pos b 0 printf mouse down pos x d pos y dWMn pos x pos y endif Dosis pos retvalue IAL MOUSEEVENT ali tenifa gt 0 amp amp FD ISSET btn fd 31181 unsigned char key PDC P ot EF kuran eect oM cl ee oR ey btn state key retvalue IAL KEYEVENT ese return 1 return retvalue BOOL InitIPAQInput INPUT input const char mdev const char mtype ts open dev h3600 ts O RDONLY 3E ts 0 4 fprintf stderr IPAQ Can not open touch screen Mn return FALSE btn fd open dev h3600 key O RDONLY de exem jul lt 0 4 fpruntf sEdensr Cannot open DUCES KEV NTI return FALSE input update mouse mouse update input get mouse xy mouse getxy input set mouse xy NULL input get mouse button mouse getbutton 258 MiniGUI V2 0 4 q nman 68946 fr input set mouse range NULL input update keyboard keyboard update input get keyboard state keyboard getstate Scr lede Nurik input wait event wait event mousex 0 mousey 0 pos x pos y pos b 0 FecCurn TRUE void TermIPAQInput void
511. 0 23 o2a SendDlgItemMessage hDlg IDC HOUR CB SETSPINRANGE 0 23 SendDlgItemMessage hDlg IDC HOUR CB SETSPINFORMAT 0 LPARAM 02d 20 SendDlgItemMessage hD1 IDC HOUR CB SETSPINVALUE 20 0 1 SendDlgItemMessage hDlg IDC HOUR CB SETSPINPACE 1 1 d pe Q 0 59 02d SendDlgItemMessage hDlg IDC MINUTE CB SETSPINRANGE 0 59 SendDlgItemMessage hDlg ITDC MINUTE CB SETSPINFORMAT 0 LPARAM 02d 0 SendDlgItemMessage hD1g IDC MINUTE CB SETSPINVALUE 0 0 1 2 SendDlgItemMessage hDlg IDC MINUTE CB SETSPINPACE 1 2 D D D D x c see d SendDlgItemMessage hDlg IDL DAXIA CB ADDSTRING 0 LPARAM daxia il lt SetNotificationCallback GetDlgItem hDlg IDL DAXIA daxia notif proc SendDlgItemMessage hDlg IDLh DAXIA CB SETCURSEL 0 0 SetWindowText GetDlgItem hDlg IDC PROMPT daxia char 0 return 1 310 MiniG
512. 0 4 nman em GE EOE SUS2ODOO AUPHMADABAAAAW OD ERZEK TF Demo of creating icon 10 2 10 2 ANDmasklcon XORmasklcon Createlcon new icon 16x16 4 Drawlcon MSG_CLOSE Destroylcon Createlcon 10 1 4 MiniGUI MiniGUI cfg iconinfo iconinfo 4 Edit following line to specify icon files path iconpath usr local lib minigui res icon Note that max number defined in source code is 7 iconnumber 7 lcon0osform j60 iconisw95mbx01 ico icon2 2w95mbx02 ico icon32w95mbx03 ico icon4 w95mbx04 ico 4 default icons for TREEVIEW control BIG Onb5 on SG lcon6suntold 1co 7 MiniGUI
513. 2 2 25 SEN SIS e a a LLLI 13 2 2 6 J ap MEE 15 UEUNGETI Op TM uum ut 15 DIESE BI REEL 16 2 9 0 16 2 3 1 16 2 3 2 MiniGUI E s au uuu 17 2 4 MiniGUI Automake Autoconf i 17 87 23 3T cc mE mens esed xam dms 23 E indes oo 23 CRM X gu do 0 24 i JR DD 24 MEC UI i as a Ea REDE T TRADE 24 Ra Qe PROTECTION ES 25 MiniGUI V2 0 4 NMOAN lt Q ERZEK TF 2 26 UD Mcd IE S CMT 27 28 Dd estere eed eei Do ee eo 28 Pho dr TEC 31 S Cm 33 DCEOWM 33 ous l as Su oku ou TAE 33 SNC OBA iks MITES 34 Bord Nt HN EE 35 ESO l2 Pl P M 37 3 3 6 MiniGUI Processes 2 38 a 39 od DUE dE M EE AL LI eL dava 39 3 4 2 MSG SIZECHANGING 39 3 4 3 MSG SIZECHANGED MSG CSIZECHANGED 40 ON
514. 2 11 MiniGUI MiniGUI MiniGUI skin_item_t MiniGUI style SI TYPE CONTROL type data CTRLDATA MiniGUI id MiniGUI HWND skin get control hwnd skin head t skin int id 11 2 12 11 2 mg samples skindemo c ak Zh 11 2 include lt minigui common h gt include lt minigui minigui h gt include lt minigui gdi h gt include lt minigui window h gt dinclude minigui control h 132 MiniGUI V2 0 4 nman dinclude minigui mgext h dinclude minigui skin h dSdefine SIID TITLE 1 define SIID PLAY 2 ddefine SIID PAUSE 3 ddefine SIID STOP 4 define SIID
515. 211Input TermEP7211Input endif ifdef ADS IAL ADS InitADSInput TermADSInput endif ifdef IPAQ IAL iPAQ InitIPAQInput TermIPAQInput endif ifdef _VR4181_IAL VR4181 InitVRA4181Input TermVR4181Inputj dendif ifdef HELIO Helio InitHelioInput TermHelioInput endif ifdef NATIVE IAL ENGINE Console InitNativeInput TermNativeInput dendif ifdef TFSTB IAL TF STB InitTFSTBInput TermTFSTBInput endif ifdef T800 IAL T800 InitT800Input TermT800Input endif ifdef DUMMY IAL Dummy InitDummyInput TermDummyInput dendif ifdef QVFB IAL OVFB InitQVFBInput TermQVFBInput endif ur INPUIP Ccurcinput INPUT inputs Zi INPUT m id m init input INPUT W term input MiniGUl cfg inputs cur inp
516. 23 cursor0 d arrow cur cursorl d beam cur cursor2 d pencil cur cursor3 d cross cur cursor4 d move cur cursorb d sizenesw cur cursor6 d sizens cur cursor7 d sizenwse cur cursor8 d sizewe cur cursor9 d uparrow cur cursorl0 d none cur cursorll1 d help cur cursor12 d busy cur cursorl3 d wait cur cursorl4 g rarrow cur cursorl5 g col cur cursorl6 g row cur cursorl7zg drag cur cursorl18 g nodrop cur cursorl9 h point cur cursor20 h select cur cursor2T1 ho split cur cursor22 ve split cur MiniGUI WAR 4 Edit following line to specify cursor files path cursorpath usr local lib minigui res cursor MAX SYSCURSORINDEX 1 MAX SYSCURSORINDEX 22 23 MiniGUI MiniGUl cfg cursorinfo GetSystemCursor 109 MiniGUI V2 0 4 nman HCURSOR GUIAPI GetSystemCursor int cesrid p
517. 30 55 IDCANCEL 0 js E Static void fill boxes HWND hDlg const char path SE re t dente s ali emt D TE dir struct stat ftvpe char fullpath PATH MAX 1 SendDlgItemMessage hDlg IDL DIR LB RESETCONTENT 0 LPARAM O SendDlgItemMessage hDlg IDL FILE RESETCONTENT LPARAM 0 SetWindowText GetDlgItem hDlg IDC PATH path if dir opendir path 2 2 NULL return 288 MiniGUI V2 0 4 nman f d 3f ne int cur sel ii EE te Emo Ea EPOE ENTER LBN DBLCLK LBN ENTER SendMessage hwnd LB GETCURSEL 0 ews pel s 9 4 char cwd MAX_PATH 1 char dir MAX_NAME 1 GetWindowText GetDlgItem GetParent hwnd SendMessage hwnd LB_GETTEXT cur_sel sb strew Chim 1 return SiEECcat my setrcat cwd dur fill boxes GetParent hwnd cwd HWND hwnd int id int nc Do nothing Static void prompt int ip char files HWND h
518. 32 1 386 MiniGUI V2 0 4 68946 fr listview c cr 387 MiniGUI V2 0 4 nman ia a rr II aaj 388 MiniGUI V2 0 4 ee nman 33 monthcalendar mgext mgext CreateWindow CTRL_MONTHCALENDAR 33 1 MCS_CHN MCS_ENG 8 5 MCS CHN MCS_ENG_L
519. 8 2727 il int GUIAPI GetIntValueFromEtcSec GHANDLE hSect const char pKey int pValue int GUIAPI SetValueToEtcSec GHANDLE hSect const char pKey char pValue int GUIAPI SaveEtcToFile GHANDLE hEtc const char file name GHANDLE GUIAPI FindSectionInEtc GHANDLE hEtc const char pSection BOOL bCreateNew int GUIAPI RemoveSectionInEtc GHANDLE hEtc const char pSection m GetValueFromEtcFile GetlntValueFromEtcFile strtol m SetValueToEtcFile MiniGUI 1 6 x m LoadEtcFile UnloadEtcFile GetValueFromEtc GetValueFromEtcFile
520. A SVM_GETITEMADDDATA 423 MiniGUI V2 0 4 nman BEES SSS sss ERBAT m IVM_SETITEMADDDATA SVM_SETITEMADDDATA m VM_REFRESHITEM SVM_REFRESHITEM IVM GETFIRSTVISIBLEITEM SVM GETFIRSTVISIBLEITEM 38 3 m LVN_SELCHANGE SVN_SELCHANGE m LVN CLICKED SVN_CLICKED SetNotificationCallback LVN CLICKED LVN_SELCHANGE 38 4 38 1
521. ATA 5 H LB SETITEMHEIGHT LB GETITEMHEIGHT SetWindowFont 21 3 i IP ERES LBS NOTIFY 21 1 K 21 1 LBS NOTIFY
522. BkMode SetBkMode TextOut DrawText GetTextColor SetTextColor TAB GetTabStop SetTabStop MiniGUI 13 6 2 MiniGUI ene ses 515 lues c wy Joe 5 iu ostia AEIMES ebbe EG BS alim Je a yas se AP ee 5 51 E wel I pG xy cimi po 19 p gapi suene i void GUIAPI LineTo HDC hdc int x int y void GUIAPI MoveTo HDC hdc int x int y wAexLel clue os cime SZ cime 34 p iu os NP Re lama mte ortae OPE T S RGB RGB RGB 0 255
523. COND 120 ddefine IDL DAXIA 200 Hdefine IDC PROMPT 300 static DLGTEMPLATE DlgMyDate WS_BORDER WS_CAPTION WS EX NONE 100 100 304 135 Q 0 0 Static CTRLDATA CtrlMyDate WS CHILD SS RIGHT WS VISIBLE ig 20 88 2 TiDG enn 0 CTRL COMBOBOX WS CHILD WS VISIBLE CBS READONLY CBS AUTOSPIN CBS AUTOLOOP CBS EDITBASELINE 66 A0 38 308 MiniGUI V2 0 4 nman IDC_HOUR nn D 0 Mitra WS CHILD SS CENTER WS VISIBLE i09 20 20 38 IDC STATIC pu 0 Ho gt T CTRL_COMBOBOX WS CHILD WS VISIBLE CBS READONLY CBS AUTOSPIN CBS AUTOLOOP CBS EDITBASELINE 5e xd 40 20 IDC MINUTE nn D 0 Mitra cU WS CHILD SS CENTER WS VISIBLE 1690 29 30 20 IDC STATIC AR 0 bs CTRL COMBOBOX WS VISIBLE CBS DROPDOWNLIST CBS NOTIFY 190 20 100 20 IDL DAXIA n m 80 WS CHILD SS RIGHT WS VISIBLE 0 50 999 20 IDC PROMPT wapa abe 0 BUTTON WS VISIBLE BS DEFPUSHBUTTON WS TABSTOP WS GROUP dLQ qi 25 IDOK 0 putt
524. D hScrollWnd Static BITMAP bmp bkgnd Saca ode Currente scele Static int pic container proc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG PAINT HDC hdc BeginPaint hWnd FillBoxWithBitmap hdc 0 0 current scale bmp bkgnd bmWidth current scale bmp bkgnd bmHeight amp bmp bkgnd EndPaint hWnd hdc return 0 return DefaultContainerProc hWnd message wParam lParam static int ImageViewerProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_INITDIALOG hScrollWnd GetDlgItem hDlg IDC SCROLLWND SendMessage hScrollWnd SVM SETCONTAINERPROC 0 LPARAM pic container proc SendMessage hScrollWnd SVM SETCONTRANGE bmp bkgnd bmWidth bmp bkgnd bmHeight break 351 MiniGUI V2 0 4 nman ERBAK M case MSG_COMMAND int id LOWORD wParam ais ahel Guns ETEA OMON cuirn Sale sub ee 312 zou 9 2 ae euurseexwE seele lt 0 13 current seale 0 16 SendMessage hScrollWnd SVM_SETCONTRANGE current scale bmp bkgnd bmWidth current scale bmp bkgnd bmHeight InvalidateRect hScrollWnd NULL TRUE break case MSG CLOSE EndDialog hDlg 0 return 0 return DefaultDialogProc hDlg message wParam lParam Static CTRLDATA CtrlViewer SecrollWwnd WS_BORDER WS_CHILD
525. DTH SVM_GETCONTHEIGHT SVM_ GETVISIBLEWIDTH 4l SVM_GETVISIBLEHEIGHT 422 MiniGUI V2 0 4 nman IVM_SETCONTRANGE SVM_SETCONTRANGE IVM_GETCONTENTX IVM_GETCONTENTY SVM_GETCONTENTX SVM_GETCONTENTY IVM_SETCONTPOS SVM_SETCONTPOS IVM_GETCURSEL IVM_SETCURSEL SVM_GETCURSEL SVM_SETCURSEL IVM SELECTITEM SVM_SELECTITEM IVM_SHOWITEM SVM_SHOWITEM IVM_CHOOSEITEM SVM_CHOOSEITEM IVM SELECTITEM IVM_SHOWITEM IVM_SETITEMINIT SVM_SETITEMINIT IVM SETITEMDESTROY
526. DWORD opMask window style for all instances of this window class DWORD dwStyle extended window style for all instances of this window class DWORD dwExStyle cursor handle to all instances of this window class HCURSOR hCursor background color pixel value of all instances of this window class int iBkColor window callback procedure of all instances of this window class abra WinProc HWND int WPARAM LPARAM the private additional data associated with this window class DWORD dwAddData WNDCLASS typedef WNDCLASS PWNDCLASS m spClassName 28 MiniGUI V2 0 4 TTsssa lt iaaarrshrr r s rs nman m WinProc dwStyle m 4 o m dwExStyle WS B hCursor
527. Dlg 1024 Nn for cm char file int status T FE 0 i lt SendDlgItemMessage hDlg MAX NAME 1 SendDlgItemMessage status CMFLAG CHECKED SendDlgItemMessage hDlg IDL FILE strcat files file streat Eanes UNS E PE p Ei EDIS TOIR Message dE Ji e LB GETTEXT while cie eme seewxeleabe ciw de nw Assemble full path name strncpy fullpath path PATH MAX muere ewulleEm By o greene ICE li o aE nl cil mam e Ns if stat fullpath amp ftype 0 continue IORS DEREN Ey pE rS SendDlgItemMessage hDlg IDL DIR LB ADDSTRING 0 LPARAM dir ent d name else if S ISREG ftype st mode LISTBOXITEMINFO lbii Woli geringe Cdr mre cs cima es lbii cmFlag CMFLAG BLANK hbpticomn i 0 SendDlgItemMessage hDlg IDL FIhE LB ADDSTRING 0 LPARAM amp lbii closedir dir Static void dir notif proc HWND hwnd int id int nc DWORD add data IDC PATH cwd MAX PATH LPARAM dir DWORD add data LB GETCOUNT 0 OL i LB GETCHECKMARK i 0 i LPARAM file Box hDlg files MUME MB ICONINFORMATION 289 MiniG
528. EM SendMessage 31 2 2 TVM GETITEMINFO TVITEMINFO tvii GHANDLE item SendMessage hTrvWnd TVM GETITEMINFO WPARAM item LPARAM amp tvii 366 MiniGUI V2 0 4 hma nman item tvii tvii text FH SETITEMINFO TVITEMINFO tvii GHANDLE item SendMessage hTrvWnd TVM SETITEMINFO WPARAM item LPARAM amp tvii item tvii TVM GETITEMTEXT char buffer SendMessage hTrvWnd TVM GETITEMTEXT WPARAM item LPARAM buffer buffer TVM_GETITEMTEXTLEN int len len SendMessage hTrvWnd TVM GETITEM
529. ER m PT_JOIN_ROUND PT JOIN BEVEL s 15 5 gt E 15 1 X 15 1 GetPenType SetPenType 4 SetPenDashes p TS eE perpas es HES la oE F Se p Kurs T ore cla DISSE E MM et dash list 11 1 1 dash_list M4 1 dash list MM MM Dp E Pris dash
530. ETCURITEM SendMessage hMbtnWnd MBM SETCURITEM index 0 index 24 2 5 MBM GETCURITEM 314 MiniGUI V2 0 4 q nman 68846 fr index SendMessage hMbtnWnd MBM_GETCURITEM 0 0 24 2 6 MBM_GETITEMDATA MBM_SETITEMDATA wParam IParam 2 MENUBUTTONITEM MENUBUTTONITEM which ES m WHICH TEXT
531. FLIP_VERT FONT_SLANT_ITALIC INIT ZJ H FS FLIP HORZ j FS FLIP VERT j FS FLIP HORZVERT j MiniGUI ARE 195 nman FONT_FLIP_HORZVERT other FONT_OTHER_NIL other FONT_OTHER_AUTOSCALE other FONT_OTHER_TTFNOCACHE other FONT_OTHER_LCDPORTRAIT FONT_UNDERLINE_NONE FONT_UNDERLINE_LINE FONT_STRUCKOUT_NONE FONT STRUCKOUT LINE MiniGUI V2 0 4 si TrueType TrueType LCD RTRAIT iiid K 14 3 196
532. Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 RAGE Fyalyadian Only sr nman EHZk f MiniGUI MiniGUI Threads MiniGUI Processes 3 1 Window S 3 1 Application Toolkit Window System Operating System 3 1
533. G DESTROY DestroyAllControls hWnd return 0 case MSG CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam 327 MiniGUI V2 0 4 nman EE EPI ISI SSO lt lt IyIKNMUMC ITIah VIIS IIIWIIHHIESIMSI tONITGIEII YIII Ie zxIEe l IIIIIOI L amp III CC I I II I TCIOIII OIIIIsIIKIIESETTTEEEEEEEESEE 26 3 328 MiniGUI V2 0 4 A nman 68246 fr 27 GUI MiniGUI MiniGUI CTRL_TOOLBAR CTRL_NEWTOOLBAR MiniGUIExt CTRL_COOLBAR 1 CTRL TOOLBAR CTRL NEWTOOLBAR CTRL TOOLBAR MiniGUI P K CTRL_NEWTOOLBAR 36 CTRL_COOLBAR
534. GetWindowCursor SetWindowCursor a HCURSOR GUIAPI GetWindowCursor HWND hWnd HCURSOR GUIAPI SetWindowCursor HWND hWnd HCURSOR hNewCursor MiniGUI listview c WNDCLASS WJ hCursor WNDCLASS WndClass WndClass spClassName CTRL LISTVIEW WndClass dwStyle WS NONE WndClass dwExStyle WS EX NONE WndClass hCursor GetSystemCursor 0 WndClass iBkColor PIXEL lightwhite WndClass WinProc sListViewProc return RegisterWindowClass amp WndClass GetSystemCursor GetSystemCursor 0 GetSystemCursor IDC ARROW ShowCursor int GUIAPI ShowCursor BOOL fShow fshow FALSE ShowCursor TRUE ShowCursor
535. HFlip HDC hdc const BITMAP bmp int 1x int ty int angle void GUIAPI RotateScaledBitmapVFlip HDC hdc const BITMAP bmp int lx int ty int ang lep aime Wp 15 void GUIAPI RotateScaledBitmapHFlip HDC hdc const BITMAP bmp int lx int ty int ang de int w int hi PivotScaledBitmapFlip angle DC 1 1 64 hdc TW bmp BIPMAP x y DC cx cy 0 0 x y cx cy MiniGUI fixed angle scale_x scale y x AA y Hh h_flip v_flip Jr
536. I V2 0 4 nman fr CreateInfo ty GetGDCapability HDC SCREEN GDCAP MAXY wh 1 else CreateInfo lx g rcExcluded left RECTW g rcExcluded ww 1 createnrnf orty nner lu endif CreateInfo rx CreateInfo lx ww CreateInfo by CreateInfo ty 1 wh CreateInfo iBkColor COLOR lightgray CreateInfo dwAddData OL CreateInfo hHosting hParentWnd hwnd CreateMainWindow amp CreateInfo wr al HWND_INVALID return hwnd hStatic CreateWindowEx static label WS VISIBLE SS SIMPLE WS EX USEPARENTCURSOR 0 0 nde 3f mese hProgBar CreateWindowEx progressbar NULL WS VISIBLE WS EX USEPARENTCURSOR ida i0 90 360 30 Mac 0 5 SendDlgItemMessage hwnd id PBM_SETRANGE 0 range else hProgBar HWND INVALID UpdateWindow hwnd TRUE return hwnd Static void destroyProgressWin HWND hwnd DestroyAllControls hwnd DestroyMainWindow hwnd ThrowAwayMessages hwnd MainWindowThreadCleanup hwnd int MiniGUIMain in
537. IEW pe static HWND hGVWnd static char colnames iBX AX X8 ptaric cheri scores qeu wan Tihai Mu Meisa mh int total GRIDCELLS target GRIDCELLS source DWORD dwAddData sbeue pg 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 source gt width i cells column source column i for G 0 p cells row source gt row j SendMessage hGVWnd GRIDM_GETCELLPROPERTY WPARAM amp cells LPARAM amp data value num number num number value num Heri omari 1 cells row target gt row cells columm s target column SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cells LPARAM amp data Tem m O int averge GRIDCELLS target GRIDCELLS source DWORD dwAddData sb pp ine coU ry E P ON double value 0 GRIDCELLDATA data GRIDCELLS cells 416 MiniGUI V2 0 4 nman GRIDCELLDATANUMBER num memset amp data 0 sizeof data memset amp num 0 sizeof num data content amp num data style GV TYPE NUMBER oreal el TN cells height 1 for i 0 i source width i
538. IO DES CreateWindow CTRL BUTTON Auto Radio Button 2 WS CHILD BS AUTORADIOBUTTON BS LEFTTEXT BS RIGHT WS VISIBLE IDC RADIOBUTTON 4 390 3 50 30 lee 9 C Ruto Radio Button 2 Ruto Radio Button 2 C 20 4 WS GROUP 20 2 BM_GETCHECK BM_SETCHECK BM_GETSTATE BM_SETSTATE gm BM GETIMAGE BM SETIMAGE BM CLICK wParam BST CHECKED BM SETCHECK
539. LB_ERR SendMessage LB_OKAY SendMessage LBS SORT int num 2 cons E era E ice mut E SendMessage hwndList LB MULTIADDITEM num LPARAM text th hwndList num text LBS CHECKBOX LBS_USEICON LISTBOXITEMINFO ine num HICON hIcon1l LISTBOXITEMINFO lbii num hlIconl LoadIconFromFile HDC SCREEN res audio ico 1 ereen lbii 0 cmFlag CMFLAG CHECKED Toa OI rejet Ing itemi Wasta i PDP eser c eene Toska MIL o enn L ae CMFLAG CHECKED debat E351 steve EET
540. LIGN 3f Fi Ja rjr m TPM BOTTOMALIGN X TPM_TOPALIGN BOTTOMALIGN StrippopupHead 70 uFlags TPM_LEFTALIGN abra int y HWND hwnd KG X e uFlags xy x uFlags TPM_LEFTALIGN TPM_ Z ER CH DIEM ER MiniGUI S E HR MiniGUI V2 0 4 nman HMENU hNewMenu MENUITEMINFO mii HMENU hMenuFloat memset amp mii 0 sizeof MENUITEMINFO s EAS MFT STRING mi ii EXP mii typedata DWORD File hNewMenu CreatePopupMenu amp mii hMenuFloat StripPopupHead hNewMenu TrackPopupMenu hMenuFloat TPM CENTERALIGN 40 151 hWnd 7 2 3 MENUITEMINFO MENUITEMINFO typedef struct MENUITEMINF
541. M_GETTITLETEXT int len Shes gati S gam s SendMessage hwndEdit EM SETTITLETEXT len LPARAM title text IParam wParam title text 0 wParam 1 wParam 0 EM_GETTITLETEXT tae leny char title SendMessage hwndEdit EM GETTITLETEXT len LPARAM title text IParam wParam 0 296 MiniGUI V2 0 4 ssssrmtnnr ra sssrTsrrs ar nman 22 2 9 TEXTEDIT EM SETLFDISPCHAR char disp char SendMessage hwndEdit EM SETLFDISPCHAR 0 disp char IParam
542. MainWindowThreadCleanup hMainWnd return 0 ifndef MGRM PROCESSES dinclude minigui dti c dendif 240x180 Hello world 2 1 y Hello world 10 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 Rent Fyalyadian Only swsn s si nman 2 1 helloworld 2 2 1 helloworld c lt minigui common h gt lt minigui minigui h gt minigui gdi h minigui window h MiniGUI B lt minigui control h gt control h libminigui rE F MiniGUI MiniGUI include minigui common h include lt minigui minigui h gt include lt minigui gdi h gt include lt minigui window h gt include lt minigui control h gt 2 2 2 C main MiniGUI MiniGUIMain
543. MiniGUI V2 0 4 cs nman 6 197 MiniGUI V2 0 4 jjj EE Ea 0ooa CABBApABB UBRWWWEGOBEB amp eBRBQ 15 NEWGAL GDI 13 MiniGUI 1 1 0 GAL GDI MiniGUI GDI 15 1 GDI X Window GUI x y banned y m x y amp GDI
544. O UINT mask UINT type UINT stare int aidi HMENU hsubmenu PBITMAP uncheckedbmp PBITMAP checkedbmp DWORD itemdata DWORD typedata UINT col MENUITEMINFO typedef MENUITEMINFO PMENUITEMINFO BH mask GetMenultemlnfo SetMenulteminfo WB MIIM_STATE MIIM ID MIIM_SUBMENU MIIM_CHECKMARKS MIIM_TYPE MIIM_DATA GetMenultemlnfo SetMenulteminfo type m MFT_STRING MFT_BITMAP MFT_BMPSTRING SEPARATOR MFT_RADIOCHECK HU STE S
545. O ivii char bu 101 int idx int count SendMessage hlIconView IVM GETITEMCOUNT O0 0 Sprintf buff NewIcon i count memset amp ivii 0 sizeof IVITEMINFO ivii bmp amp myicons 0 ivii nrtem count vi lapel buff ivii addData DWORD NewIcon idx SendMessage hIconView IVM ADDITEM 0 LPARAM amp ivii SendMessage hlIconView IVM SETCURSEL idx 1 break case IDC DELETE int sel SendMessage hlIconView IVM GETCURSEL 0 0 int count SendMessage hlIconView IVM GETITEMCOUNT O0 0 char label NULL if sel gt label char SendMessage hlIconView IVM GETITEMADDDATA sel 0 if label amp amp strlen 1abel printf delelete item sWXn label SendMessage hlIconView IVM DELITEM sel 0 ss coust 1 sel SendMessage hlIconView IVM SETCURSEL sel 1 break end command switch break case MSG KEYDOWN if wParam SCANCODE REMOVE int cursel SendMessage hlconView IVM GETCURSEL 0 0 if cursel OV SendMessage hlIconView IVM DELITEM cursel 0 SendMessage hlIconView IVM SETCURSEL cursel 0 break case MSG CLOSE EndDialog hDlg 0 return 0 end switch return DefaultDialogProc hDlg message wParam lParam 426 MiniGUI V2 0 4 nman EZEK TF static CTRLDATA CtrlBook CTRL_ICONVIEW WS_BORDER WS_CHILD
546. RASEBKGND MSG ERASEBKGND IParam RECT DefaultMainWinProc MSG_ERASEBKGND 3 159 Fo nman ERHCE 13 3 13 3 1 MiniGUI V2 0 4
547. RDS NE SetWindowBkColor hwnd pixel InvalidateRect hwnd NULL TRUE 12 3 T MiniGUI CTRL C CTRL V 12 3 1 MiniGUI CBNAME TEXT rB text JH 143 MiniGUI V2 0 4 HIC CreateClipBoard DestroyClipBoard
548. RL PROPSHEET CreateWindow 28 1 PSS SIMPLE PSS COMPACTTAB m PSS_SCROLLABLE m PSS_BOTTOM 337 MiniGUI V2 0 4 nman smnnnS m nnnSSEEOEOBAE M PLPAOLQECAA SFUUss EPH TE 28 2 28 2 1 PSM ADDPAGE wParam IParam Zh HWND pshwnd GetDlgItem hDlg IDC PROPSHEET DlgStructParams controls CtrlStructParam
549. S HideCaret hWnd break 115 nman MiniGUI V2 0 4 case MSG_CHAR switch wParam cage Nt case VMb case Mn SetCaretBlinkTime hWnd GetCaretBlinkTime hWnd 100 break default eal En Tot char bmpr ch wParam zar lem a 1 break tmp pBuffer pos ie rwa l 0 4 strcpy buf tmp strcpy tmp 1 buf ch pos len break break break case MSG KEYDOWN Switch wParam case SCANCODE CURSORBLOCKLEFT pos MAX pos 1 0 break case SCANCODE_CURSORBLOCKRIGHT pos MIN pos 1 len break case SCANCODE BACKSPACE echar buz TO x em pos 0 break tmp pBuffer pos strcpy buf tmp strcpy tmp 1 buf pos break SetCaretPos hWnd pos GetSysCharWidth 0 InvalidateRect hWnd NULL TRUE break case MSG PAINT hdc BeginPaint hWnd TextOut hdc 0 0 pBuffer EndPaint hWnd hdc return 0 case MSG DESTROY
550. S DIGIT ONLY CreateWindow CTRL STATIC Alpha only box WS CHILD WS VISIBLE SS RIGHT O 10 40 180 24 hWnd 0 hWnd2 CreateWindow CTRL EDIT WS CHILD WS BORDER WS VISIBLE IDC CTRL2 200 40 180 24 hWnd MY ES ALPHA ONLY CreateWindow CTRL STATIC Normal edit box WS CHILD WS VISIBLE SS RIGHT 10 70 180 24 hWnd 0 hWnd3 CreateWindow CTRL EDIT WS CHILD WS BORDER WS VISIBLE IDC CTRL2 200 70 180 24 hWnd MY ES ALPHA ONLY CreateWindow button Close WS CHILD BS PUSHBUTTON WS VISIBLE CTRL4 100 300 24 0 Hi EE SCR li LI Pl Pe et J 90 5 LUE JP DIESE BJ AE old edit proc SetWindowCallbackProc hWndl RestrictedEditBox SetWindowCallbackProc hWnd2 RestrictedEditBox break return DefaultMainWinProc hWnd message wParam lParam 6 3
551. SE EndDialog hDlg IDCANCEL break case MSG COMMAND switch wParam case IDOK case IDCANCEL DestroyLogFont my font 300 MiniGUI V2 0 4 nman ERBEK TF 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 en o endif ifdef LITE VERSION if IInitVectorialFonts RE return 1 endif DigBoxInputChar controls CtrlInputChar DialogBoxIndirectParam amp DlgBoxInputChar HWND DESKTOP InputCharDialogBoxProc 0L amp ifdef LITE VERSION TermVectorialFonts dendif ita e IE 0 ifndef _LITE VERSION dinclude minigui dti c dendif ERA P 88h 22 2 301 MiniGUI V2 0 4 phan HEH ERHCE 302 MiniGUI V2 0 4 23 nman 622456 fh MiniGUI
552. SendMessage hSpin SPM GETCUR 0 LPARAM kspinfo cx di E y cur 10 wr cx GOF h 10 300 y 10 else if y 100 y 100 hdc BeginPaint hDlg MoveTo hdc 2 10 Linero 100 TON Rectangle hdc x y x w y h SetBrushColor hdc PIXEL black ii eee dowke wu deg MoveTo hdc 2 110 LineTo hdc 100 110 EndPaint hDlg hdc break case MSG CLOSE break return DefaultDialogProc hDlg message wParam lParam EndDialog hDlg 0 Static DLGTEMPLATE DlgSpin WS BORDER WS CAPTION WS EX NONE 100 1007 320 220 Spinbox and black block Q 9 Lj NULG 0 hg State Ce ppp ae IS CTRL_SPINBOX SPS_AUTOSCROLL WS BORDER WS CHILD WS VISIBLE 206 3220 6 SISTI ON BINE nn 398 MiniGUI V2 0 4 rss sss r nman EZEK TF Spinbox and black block 4 34 1 spinbox c SPS AUTOSCROLL
553. T mii typedata DWORD Ed InsertMenuItem hmnu 6 TRUE amp mii return hmnu static HMENU createmenu void HMENU hmnu MENUITEMINFO mii hmnu CreateMenu memset amp mii 0 sizeof MENUITEMINFO mii type MFT STRING abel mii typedata DWORD X fF mii hsubmenu createpmenufile InsertMenuItem hmnu 0 TRUE amp mii return hmnu 74 MiniGUI V2 0 4 nman MSG_ACTIVEMENU case MSG ACTIVEMENU if wParam 2 CheckMenuRadioItem CheckMenuRadioItem HMENU lParam IDM 40X15 IDM CUSTOMIZE pNoteInfo gt winType BYCOMMAND CheckMenuRadioItem HMENU lParam IDM DEFAULT IDM BIGS pNoteInfo editCharset MF BYCOMMAND break MsG COMMAND case MSG_COMMAND switch wParam case IDM_NEW break case IDM OPEN break case IDM SAVE break case IDM SAVEAS break Dm tmp txt notebook Iof T 40415 small 80x24 vt100 80425 ibmpc 80340 xterm 80x52 ibmvga 96x25 wide 96x40 My favorite 96x52 large e ANSI GB2312 THAI BIG5
554. TBIF DISABLED ntbii id IDC NTB THREE meloa a yomo cell 95 SendMessage ntbl TBM ADDITEM 0 LPARAM amp ntbii NTBIF SEPARATOR NULL ntbi TBM ADDITEM 0 LPARAM amp ntbii NTBIF HOTSPOTBUTTON IDC NTB FOUR melosa lomo CEL hotspot ntbii hotspot proc my hotspot proc ntbi TBM ADDITEM 0 LPARAM amp ntbii 27 3 2 NTBM_ADDITEM TI NTBM_GETITEM NTBM_SETITEM wParam TT P item ID IParam NTBITEMINFO which m MTB_WHICH_FLAGS flags m WHICH ID 332 which L NTBITEMINFO L HJ MiniGUI V2 0 4 ee nman m WHICH TEXT text
555. TEXTLEN WPARAM item 0 31 2 3 TVM_SETSELITEM GHANDLE item SendMessage hTrvWnd TVM_SETSELITEM WPARAM item 0 item TVM_GETSELITEM GHANDLE item item SendMessage hTrvWnd TVM GETSELITEM m OR item TVM_GETROOT GHANDLE rootItem rootItem SendMessage hTrvWnd TVM GETROOT 0 TVM GETRELATEDITEM 367 MiniGUI V2 0 4 ia a L GHANDLE item wwe selle GHANDLE relItem relltem SendMessage hTrvWnd TVM GETRELATEDITEM related LPARAM item item related m TVIR PARENT item m TVIR_FIRSTCHILD item m TVIR_NEXTSIBLING item m TVIR PREVSIBLING item SendMessage TVM SEARCHITEM GHANDLE itemRoot const ch
556. TMAP pBitmap int GUIAPI LoadMyBitmapEx PMYBITMAP my bmp RGB pal MG RWops area const char ext int GUIAPI LoadMyBitmapFromFile PMYBITMAP my bmp RGB pal const char file name int GUIAPI LoadMyBitmapFromMemory PMYBITMAP my bmp RGB pal void mem int size const char ext void GUIAPI InitMyBitmapSL MG RWops area const char ext MYBITMAP my bmp RGB pal p int GUIAPI LoadMyBitmapSL MG RWops area void load info MYBITMAP my bmp CB ONE SC ANLINE cb void context int GUIAPI CleanupMyBitmapSL MYBITMAP my_bmp void load info BOOL GUIAPI PaintImageEx HDC hdc int x int y MG RWops area const char ext int GUIAPI PaintImageFromFile HDC hdc int x int y const char file name INE GUIAPI PaintImageFromMem HDC hdc int x int y const void mem int size const c har ext void GUIAPI UnloadMyBitmap PMYBITMAP my bmp 177 MiniGUI V2 0 4 nman tt n x xIIIIOAAOOOe EAZEEA 5 7 7 A PFbEb b Fa sw int GUIAPI ExpandMyBitmap HDC hdc PBITMAP bmp const MYBITMAP my bmp const RGB pal int frame LoadBitmapEx InitMyBitmapSL LoadMyBitmapSL LoadMyBitmapSL
557. TPOS ae lie 10E int char pos SendMessage hwndEdit EM GETCARETPOS WPARAM amp line pos LPARAM amp char pos line_pos char pos line_pos wParam ES_AUTOWRAP MiniGUI EM_SETCARETPOS line Tes int char pos SendMessage hwndEdit EM SETCARETPOS line pos char pos 22 2 2 EM_GETSEL char buffer
558. UI GDI um 13 1 MiniGUI 13 1 1 GAL GDI MiniGUI MiniGUI Graphics Abstract Layer GAL GAL MiniGUI SVGALib LibGGI MiniGUI POSIX Linux Linux FrameBuffer MiniGUI MiniGUI 1 0 00 Native Engine FrameB
559. UI V2 0 4 nman case MSG COMMAND switch wParam mee prompt hDlg case IDCANCEL EndDialog break hDlg wParam break return DefaultDialogProc int MiniGUIMain mt enge contecta aa ga ll Hifdef _ MGRM PROCESSES JoinLayer NAME DEF LAYER combobox O 0 dendif DlgMyDate controls CtrlMyDate return O ifndef MGRM_PROCESSES dinclude minigui dti c dendif hDlg message wParam DialogBoxIndirectParam amp DlgMyDate HWND DESKTOP MyDateBoxProc lParam OL 1 K 23 6 2 J 20 00 SNARERE 311 MiniGUI V2 0 4 phan HEH ERHCE 312 MiniGUI V2 0 4 nman 68946 fr 24 MiniGUI
560. UI V2 0 4 nman static int DelFilesBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_INITDIALOG char cwd MAX_PATH 1 SetNotificationCallback GetDlgItem hDlg IDL DIR dir notif proc SetNotificationCallback GetDlgItem hDlg IDL FILE file notif proc fill boxes hDlg getcwd cwd MAX PATH return 1 case MSG_COMMAND switch wParam ca se hipo prompt hDlg case 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 listbox 0 0 dendif Diemel leg Conerols easi t SINE NIST DialogBoxIndirectParam amp DlgDelFiles HWND DESKTOP DelFilesBoxProc Te Cnr s ifndef MGRM PROCESSES tinelude minigui dti c endif file 1 file 2 file 3 IHI 21 4 WERSIE 290 MiniGUI V2 0 4 22
561. V2 0 4 NMOAN u nH 24 2 24 2 1 MBM ADDITEM MENUBUTTONITEM MENUBUTTONITEM mbi mbi text item one mbi bmp NULL mbi data 0 pos SendMessage hMbtnwnd MBM ADDITEM 1 LPARAM amp mbi KB nMbtnWnd Pos MB ERR SPACE 24 2 2 MBM_DELITEM SendMessage hMbtnWnd MBM DELITEM index 0 JH index 24 2 3 MBM_RESETCTRL SendMessage hMbtnWnd MBM RESETCTRL 0 0 24 2 4 MBM S
562. VM_SETITEMOPS SVM_ m IVM_GETMARGINS SVM_GETMARGINS m IVM_SETMARGINS SVM_SETMARGINS m VM_GETLEFTMARGIN IVM_GETTOPMARGIN IVM GETRIGHTMARGIN ScrollView M_RESETCONTENT IVM_DELITEM SVM_DELITEM _SETITEMDRAW IVM_SETCONTWIDTH SVM SETCONTWIDTH LZ SETCONTHEIGHT SVM_SETCONTHEIGHT SETITEMOPS H IVM_GETBOTTOMMARGIN X Ju 9 GETLEFTMARGIN SVM_GETTOPMARGIN SVM_GETRIGHTMARGIN SVM_GETBOTTOMMARGIN m IVM_GETCONTWIDTH IVM_GETCONTHEIGHT IVM GETVISIBLEWIDTH IVM GETVISIBLEHEIGHT SVM_GETCONTWI
563. Virtual amp console amp on amp MiniGUI icon res konsole gif app1 path bomb name bomb layer tip Game amp of amp Minesweaper icon res kmines gif 83552 path controlpanel name controlpanel loyers tip Control amp Panel icon res kcemx gif mginit nr Cautostart appX Tl 12 2 MiniGU mde mginit 12 2 MiniGUI EE define APP INFO FILE mginit rc Static BOOL get app info void ine aba APPITEM item if GetrntValueFromEtcFile APP TNFO FILE mginit nr amp app info nr apps ETC OK return FALSE if app info nr apps lt 0 return FALSE GetIntValueFromEtcFile APP INFO FILE mginit autostart amp app info autostart if app info autostart app info nr apps app into autostar
564. W Nia e rt ime lt bae wy dae w da im void destroy skin window HWND hwnd 125 MiniGUI V2 0 4 NMAN P create skin main window create_skin_main_window hosting O x y w M h skin skin head t skin_head_t skin init modal TRUE create skin control parent id x y w h destroy skin window create skin main window create skin control
565. X81 static STIPPLE my stipple 8 8 SE eS DC SetBrushOrigin 15 13 3 MiniGUI BJ enable adv2dapi MiniGUI MiniGUI FillBox FillCircle FillEllipse FillPolygon FloodFill MoveTo LineTo Rectangle PolyLineTo SplineTo Circle Ellipse CircleArc
566. YPE NORMAL 0x00 define BMP TYPE RLE 0x01 define BMP TYPE ALPHA 0x02 ddefine BMP TYPE ALPHACHANNEL 0x04 ddefine BMP TYPE COLORKEY 0x10 define BMP_TYPE_PRIV_PIXEL 0x20 Expanded device dependent bitmap structure struct BITMAP Bitmap types can be OR ed by the following values BMP TYPE NORMAL n e A nomal bitmap without alpha and color key BMP TYPE RLE n A RLE encoded bitmap not used so far x 5 BMP TYPE ALPHA n E Per pixel alpha in the bitmap 75 5 BMP TYPE ALPHACHANNEL An Z The Na bmAlpha is a valid alpha channel value BMP TYPE COLORKEY n 5 The Na bmColorKey is a valid color key value BMP TYPE PRIV PIXELin 5 The bitmap have a private pixel format x Uint8 bmType The bits per piexel Uint8 bmBitsPerPixel The bytes per piexel Uint8 bmBytesPerPixel The alpha channel value Uint8 bmAlpha The color key value Uint32 BbmColorKey 175 MiniGUI V2 0 4 nman The width of the bitmap Uint32 bmWidth The height of the bitmap Uint32 hBbmHeight The pitch of the bitmap Uint32 bmPitch The bits of the bitmap Uint8 bmBits The private pixel format void bmAlphaPixelFormat ja else expanded bitmap struct Struct BITMAP Uint8 bmType Uint8 bmBitsPerPixel Uint8 bmBytesPerPixel Uint8 bmReserved Uint32 bmColorKey Uint32 bmWidth Uint32 bmHeight Uint32 bmPi
567. _FDEVENT MiniGUI libvcongui C vcongui vcongui c RegisterListenFD pConInfo masterPty POLLIN hMainWnd 0 while pConInfo gt terminate amp amp GetMessage amp Msg hMainWnd DispatchMessage amp Msg UnregisterListenFD pConInfo masterPty static int VCOnGUIMainWinProc HWND hWnd int message WPARAM wParam LPARAM lParam PCONINFO pConInfo pConInfo PCONINFO GetWindowAdditionalData hWnd switch message FDEVENT case MSG_FDEVENT ReadMasterPty pConInfo break if pConInfo DefWinProc return pConInfo DefWinProc hWnd message wParam lParam else return DefaultMainWinProc hWnd message wParam lParam 230 MiniGUI
568. _list 4 TATTNT1T 15 6 220 MiniGUI V2 0 4 ee nman 15 6 SetPenDashes dash offset 0 n dash list 15 13 2 MiniGUI MiniGUI m BT SOLID BT TILED m STIPPLED m BT_OPAQUE_STIPPLED
569. age HLVITEM hFound HLVITEM hParent LVFINDINFO findInfo hFound SendMessage hwndListView LVM FINDITEM hParent LPARAM amp findInfo hParent findlnfo LVFINDINFO typedef struct LVFINDINFO DWORD flags int iStart pszInfo int nCols 380 MiniGUI V2 0 4 nman 68246 fr char pszInfo DWORD addData The found item s row reserved int nItem The found subitem s column reserved inb nsub3tem LVFINDINFO typedef LVFINDINFO PLVFINDINFO flags LVFF_ TEXT LVFF_ADDDATA LVM_FINDITEM wParam hParent 0 iStart 0 pszlnfo
570. aint hwnd hdc return 0 return DefaultControlProc hwnd message wParam lParam mycontro1l Static BOOL RegisterMyControl void WNDCLASS MyClass MyClass spClassName MY CTRL NAME MyClass dwStyle zu MyClass hCursor GetSystemCursor IDC ARROW MyClass iBkColor COLOR lightwhite MyClass WinProc MyControlProc return RegisterWindowClass amp MyClass Static void UnregisterMyControl void UnregisterWindowClass MY CTRL NAME H Hello world M AWE RegisterMyControl hwnd CreateWindow MY CTRL NAME WS VISIBLE IDC STATIC 0 0 200 20 parent 0 DestroyWindow hwnd UnregisterMyControl 3 4 Hello world from my control
571. an ScrollView item is created SVITEM DESTROYFUNC destroyItem called when an item is destroied SVITEM DRAWFUNC drawItem call this to draw an item SVITEMOPS initltem typedef int INITFUNC HWND hWnd HSVITEM hsvi T XE I 00 PE hWnd T 356 MiniGUI V2 0 4 nman c destroyltem typedef void SVITEM DESTROYFUNC HWND hWnd HSVITEM hsvi hWnd drawltem SVM_SETITEMDRAW 30 2 3 SVM_ADDITEM SVM_DELITEM INER NAR HSVITEM hsvi SVITEMINFO svii Idx Se
572. antaevene Eet Fa MEE CINES CEN TEMERE CTS er excess Struct timeval timeout endif char mdev MAX PATH 1 INPUT extern C Hdefine InitInput Geur input define IAL TermInput C eurfinpur rtermifinpuco define IAL UpdateMouse cur input update mouse define IAL GetMouseXY cur input get mouse xy define IAL SetMouseXY cur input set mouse xy define IAL GetMouseButton ipu mouseiutiton define IAL SetMouseRange cur input set mouse range define IAL UpdateKeyboard cur input update keyboard define IAL GetKeyboardState cur input get keyboard state ddefine SuspendKeyboard cur input suspend keyboard define IAL ResumeKeyboard cur input resume keyboard define IAL SetLeds leds TAR cur iinpur escritos Sette ME Mire dis define IAL WaitEvent sem Tmo c wa ur src ial ial c MiniGUI define LEN ENGINE NAME 16 define LEN MTYPE NAME 16 Static INPUT inputs ifdef _SVGALIB SVGALib InitSVGALibInput TermSVGALibInput endif ifdef LIBGGI LibGGI InitLibGGIInput TermLibGGIInput endif 252 MiniGUI V2 0 4 nman ifdef _EP7211_IAL EP7211 InitEP7
573. ar text GHANDLE found found SendMessage hTrvWnd TVM SEARCHITEM WPARAM itemRoot LPARAM text itemRoot text SendMessage 0 N TVM_FINDCHILD GHANDLE itemParent const char text GHANDLE found found SendMessage hTrvWnd TVM FINDCHILD WPARAM itemParent LPARAM text itemParent text SendMessage 0 TVM FINDCHILD TVM SEARCHITEM TVM FINDCHILD TVM_SEARCHITEM 31 2 4 TVS SORT TVM_ADDITEM TVS SORT TVS SORT
574. aram IParam x 2 MiniGUI lt minigui window h gt eae dea etos c HWND hwnd int message WPARAM wParam LPARAM lParam unsigned int time ifndef LITE VERSION void pAdd dendif MSG typedef MSG PMSG MSG hwnd message Hm WPARAM wParam LPARAM IParam 3 3 2 MiniGUI m MSG MSG TIMER MSG FDEVENT MSG COMMAND MSG_INITDIALOG MSG_ISDIALOG MSG_SETTEXT MSG_GETTEXT MSG_FONTCHANGED m MSG PAINT MSG ERASEBKGND 33 MiniGUI V2 0 4 nman enttn858SAZ SAICnSEnEe APA m
575. ay MessageBox hDlg info MB OK MB ICONINFORMATION EndDialog hDlg 0 break case MSG CLOSE return 0 EndDialog hDlg 0 return DefaultDialogProc hDlg message wParam lParam PILI 4 gt lt 2006 1 2 3 4 5 6 7 8 3 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 23 30 33 1 393 MiniGUI V2 0 phan MEJET V2 0 4 ERHCE 394 MiniGUI V2 0 4 ee nman 34 spinbox mgext mgext CreateWindow CTRL_SPINBOX CreateWindow Ey 34 1
576. bdata return item Static GHANDLE add score item HWND hlist PLVITEM lvlItem GHANDLE classent char buff 20 LVSUBITEM subdata GHANDLE item SendMessage hlist LVM ADDITEM classent int i lvltem nItem int 33 subdata flags 0 subdata image 0 subdata nItem lvltem nItem zor 3 lt EM subdata subItem j i 3 0 subdata pszText scores i name subdata nTextColor 0 else Sp imi r Humi eN SEOSKE sees A subdata pszText buff if scores il scr j 1 90 subdata nTextColor PIXEL red else subdata nTextColor 0 SendMessage hlist LVM SETSUBITEM item LPARAM amp subdata 384 MiniGUI V2 0 4 nman return item static int ScoreProc HWND hDlg int message WPARAM wParam LPARAM lParam HWND hListView hListView GetDlgItem hDlg IDC LISTVIEW Switch message case MSG_INITDIALOG LVITEM item LVCOLUMN lvcol GHANDLE hitem For ah Om NR stes d Ivcol nColes i voor eae ee on lvcol width 120 eo ptucompure em 1 exse 5 SendMessage hListView LVM ADDCOLUMN 0 LPARAM amp lvcol item nItemHeight 25 SendMessage hListView MSG FREEZECTRL TRUE 0 hitem 0 few uk wp sb ce Sg ces item nlItem i hitem add class item hListView amp item 0 for j 0 j SCORE NUM j
577. c hWnd message wParam lParam 13 2 13 2 BitBlt bitblt c BitBlt BeginPaint 10 10 CLERI 0 0 20 BitBlt BitBlt MiniGUI StretchBlt BitBlt StretchBlt void GUIAPI StretchBlt HDC hsdc int sx int sy int s
578. commicdadrvsetcilmtemitethmsteolonmmamtencolon5smGeATNCOl coc colons m _ commlcd drv init LCD commlcd_ drv_release LCD commlcd drv getinfo LCD LCD bpp framebuffer m _ commlcd drv setclut 250 MiniGUI V2 0 4 nman LiH commled info struct commlcd info Short height width Pixels short bpp Depth bits per pixel Short type 4l 5553 e short rlen Length of one raster line in bytes Eb Address of the frame buffer struct commlcd oi Short height width Pixels short bpp Depth bits per pixel Short type Pixel type short rlen Length of one raster line in bytes oy Address of the frame buffer ba me ommi cl ne oe if uglrnitialize STATUS ERROR return 1 return 0 Tae Ec ommi c dide v ee E Tm o ue r Fe ommilic cirit oisi UGL MODE INFO modeInfo Obtain display device identifier UGL DEVICE ID uglRegistryFind UGL DISPLAY TYPE Qu D sm Create a graphics context gc uglGcCreate devI
579. ction namel key namel key valueli key name2 key value2 section name2 key name3 key value3 key name4 key value4 I section key value MiniGUI lt minigui minigui h gt int GUIAPI GetValueFromEtcFile const char pEtcFile const char pSection coni ciam Key achat reser MEISTE TN int GUIAPI GetIntValueFromEtcFile const char pEtcFile const char pSection constEchar epkey Wir int GUIAPI SetValueToEtcFile const char pEtcFile const char pSection const char pKey char pValue GHANDLE GUIAPI LoadEtcFile const char pEtcFile int GUIAPI UnloadEtcFile GHANDLE hEtc int GUIAPI GetValueFromEtc GHANDLE hEtc const char pSection const char pKey char pValue int iLen int GUIAPI GetIntValueFromEtc GHANDLE hEtc const char pSection Gomme ne ae int GUIAPI SetValueToEtc GHANDLE hEtc const char pSection const char pKey char pValue int GUIAPI RemoveSectionInEtcFile const char pEtcFile const char pSection int GUIAPI GetValueFromEtcSec GHANDLE hSect constochar ie ra ko y a nae ir a Drey g 145 MiniGUI V2 0 4 NMOAN mSEMM AA AD53 2
580. d uglPcBiosInfo devid UGL MODE INFO REQ amp modeInfo li type COMMLCD TRUE RGB565 li height modeInfo height li width modeInfo width li fb modeInfo fbAddress Hx p p ima cierre oN ol De ell li rlen li bpp li width 7 8 return 0 int commlcd drv release void return 0 int Mic ommi ceci u et elu Eimer Sire oT errem e roro SPECTAT ol eos return 0 18 3 MiniGUI IAL MiniGUI INPUT 18 1 251 MiniGUI V2 0 4 nman EHI 18 1 MiniGUI Csrc include ial h typedef struct tagINPUT char id Initialization and termination BOOL init input struct tagINPUT input const char mdev const char mtype void term input void Mouse operations int update mouse void BEN scream OS MS MM Ginea ze ner ENT volel sc t votas ine ss ETT TENEANT int eger mouse button void void set mouse range int minx int miny int maxx int maxy Keyboard operations int update keyboard void char get keyboard state void void suspend keyboard void void resume keyboard void void set leds unsigned int leds Event ifdef LITE VERSION wele Gwene wineh dme mesie Se pet vain EC Sg ls PC EEE SEESE struct timeval timeout else
581. d Uinti6 green Uinti6 blue ddefine GetGammaRamp GAL GetGammaRamp SetGammaRamp Gamma 256 RGB R G B RGB red R green G blue B Gamma 1 218 MiniGUI V2 0 4 q L nman 68946 fr GetGammaRamp Gamma Gamma Gamma WEW Gamma Gamma 15 13 MiniGUI 1 6 x
582. dEtcFile APP INFO FILE JL es eye ey sbue 0 B Z UnloadEtcFile hAppInfo get app info GetValueFromEtcFile GetValueFromEtc 12 5 CPU CPU CPU CPU 148 E T E TH m Linux MiniGUI V2 0 4 oman CPU Intel x86 CPU CPU
583. dMessage ed MSG GETTEXT 90 LPARAM buffer strcat buffer buf SendMessage ed MSG SETTEXT O LPARAM buffer break case MSG_DESTROY DestroyAllControls return case MSG CLOSE DestroyMainWindow PostQuitMessage return 0 return DefaultMainWinProc hWnd hWnd hWnd hWnd message wParam lParam 403 human ERHCE MiniGUI V2 0 4 T i c coolbar c 1 0123456789 d 35 4 Mi TRE EMA 404 0 9 MiniGUI V2 0 4 nman EZEK TF 36 Canimation mgext mgext CreateWindow CTRL_ANIMATION T 36 1 ANIMATION gt ANIMATION
584. dMessage hwndListView LVM GETITEMADDDATA nItem hItem hitem hltem Jy 0 nltem SendMessage LVM_SETITEMADDDATA L 377 MiniGUI V2 0 4 NMOAN OS sN ERMMETE HLVITEM hItem DWORD addData SendMessage hwndListView LVM GETITEMADDDATA hItem LPARAM addData hitem addData SendMessage LV_OKAY LV ERR LVM SETITEMHEIGHT HLVITEM hItem int newHeight SendMessage hwndListView LVM SETITEMHEIGHT hlItem newHeig hltem newHeight SendMessage TRUE FALSE LVM DELITEM LVM_DELALLITEM
585. dowProc HWND hWnd int message WPARAM wParam LPARAM lParam Static BOOL bTrapped FALSE switch message case MSG MOUSEMOVE if bTrapped GetWindowRect hWnd amp rc ClientToScreen hMainWnd amp rc left amp rc top ClientToScreen hMainWnd amp rc right amp rc bottom lt or re aere p leappece e TRUE dH break case MSG DESTROY return 0 return DefaultControlProc hWnd message wParam lParam trap BOOL RegisterTrapwindow void WNDCLASS WndClass WndClass spClassName trap WndClass dwStyle 0 WndClass dwExStyle amp og WndClass hCursor GetSystemCursor IDC HAND POINT WndClass iBkColor PIXEL black WndClass WinProc TrapwindowProc return RegisterWindowClass amp WndClass Static int CursordemoWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG CREATE trap RegisterTrapwindow trap hTrapWin CreateWindow trap WS VISIBLE WS SEES CE RIDE 3b 0 break case MSG LBUTTONDOWN 111 MiniGUI V2 0 4 nman DDD B ES sss
586. e GetDlgItem hDlg WPARAM wParam LPARAM lParam IDC TREEVIEW TVM ADDITEM 0 LPARAM k amp tvItemInfo ewe G Gg 3 3g ses 4 tvlItemInfo text char section jl SendMessage GetDlgItem hDlg IDC TREEVIEW TVM ADDITEM item LPARAM amp tvItemInfo break case MSG_CLOSE EndDialog hDlg 0 return 0 return DefaultDialogProc hDlg message wParam Static TVITEMINFO bookInfo pa static DLGTEMPLATE DlgBook MiniGUI WS BORDER WS CAPTION WS EX NONE TOO S20 A ifdef LANG ZHCN H else Book Content endif 0 o To NULG 0 a ZTR EFRR je tE W s 7 Static CTRLDATA CtrlBook CTRL_TREEVIEW WS BORDER WS CHILD WS VISIBLE WS VSCROLL WS HSCROLL io 280 IDC TREEVIEW treeview control DWORD amp bookInfo lParam 370 MiniGUI V2 0 4 ERMMETE CHMiniGU E EE ETE 31 1 treeview c CTRLDATA dwAddData amp booklnfo booklnfo TVITEMINFO
587. e vord context Ine kI IET CES nt PDC pdc PDC context iste QUUD exibo sx s svn Mises meh sx s bo we ss HIS ENTER DRAWING pdc rcOutput dcadsawlbm ea contiesste c Eco y LEAVE DRAWING pdc rcOutput el roi mi N gel pikel pixel cle Ger pizel eon PDO comc eey sh mete tenes Mon FloodFill ERN SEgnEenclosecdgEareadisiamtumgiatm eme en o BOONMN Su hp sime oes cime 7 PDC BOOL ret TRUE E i Gade check serem bel return TRUE hide cursor tempororily ShowCursor FALSE coor LP2SP pdc amp x amp y pde cur pixel pdc brushcolor pde cur ban NULL Ee Set 3 CE gew pesca sor T cler Mo W p does the start point have a equal value 5 1 55 5 1 goto equal pixel nocte Mudo enema om dcr Sc mec Sul el flood fill draw hlin E equal pixel UNLOCK GCRINFO pdc Show cursor ShowCursor TRUE r eturm ret FloodFillGenerator FX pde pdc MiniGUI DC equal pixel flood fill draw hline
588. e ec dd ee des 359 30 2 6 mos ERROR ERE REY edi i 359 30 2 7 WEE Hf Bus ER occus RE EIS ER 360 KURSE ror 360 30 4 361 365 r O Ut Lt EE 365 Ju s 365 human ERHCE MiniGUI V2 0 4 31 2 1 TERME EMM Re a aE RI HH Hh 365 31 2 2 EXC RUPEE BT E AMR C eea ia e a a a i Terr E 366 31 2 3 ERE EEEE ENEE E E aT 367 3912 4 EEI aaa ua a E boe eee RE deas E 368 3039 rr rol pp T 369 EE f 369 32 AT a 373 32 1 C ccm 373 rop 373 nj TIC 373 a sasaqa esto Pia 376 35 2 9 JBTES Lbs ved baducte v ERR ERR E PORE UR RT eda TES 379 E t 381 XN lg v L ET 382 32 3 HGW DUTIES 383 32 4 O 383 92 5 E 383 33 UU UL Tn EE 389 33 1 389 33 2 H i dd 389 9602 1 389
589. e is 4 bytes MYBMP LOAD GRAYSCALEAn Tell bitmap loader to load a grayscale bitmap book DWORD flags The number of the frames atrae frames The pixel depth Uint8 depth The alpha channel value Uint8 alpha Uint8 reserved 2 The transparent pixel Uint32 transparent The width of the bitmap Uint32 w The height of the bitmap Un Eo The pitch of the bitmap hime Se The size of the bits of the bitmap Uint32 size The pointer to the bits of the bitmap BYTE bits 13 8 4 MiniGUI LoadBitmap MiniGUI BITMAP MiniGUI BMP JPG GIF X PCX TGA LoadMyBitmap lt minigui gdi h gt Tt int GUIAPI LoadBitmapEx HDC hdc PBITMAP pBitmap MG RWops area const char ext int GUIAPI LoadBitmapFromFile HDC hdc PBITMAP pBitmap const char spFileName int GUIAPI LoadBitmapFromMemory HDC hdc PBITMAP pBitmap void mem int size const char ext ddefine LoadBitmap LoadBitmapFromFile void GUIAPI UnloadBitmap PBI
590. eateWindow dwAddData BS REALSIZEIMAGE 20 2 hwnd CreateWindow CTRL BUTTON bee WS CHILD BS PUSHBUTTON BS BITMAP BS REALSIZEIMAGE BS NOTIFY WS VISIBLE IDC BUIPON 4 10 300 60 30 hWnd DWORD GetSystemBitmap IDI APPLICATION 20 2 20 1 2 BS LEFTTEXT BS_CHECKBOX BS_AUTOCHECKBOX BS CHECKBOX
591. ee ss elose stag Ee me 0 close btn fd dBendif m InitIPAQInput src ial ial c iPAQ devw h3600 ts dev h3600_key PC dev psaux dev tty INPUT NULL mouse update 1 m mouse getxy T mouse getbutton m keyboard update state keyboard state state wait event
592. een Uint8 blue CreatePalette GetDefaultPalette SetPaletteEntries GetPaletteEntries ResizePalette GetNearestPalettelndex GetNearestColor 15 RGB RGB 16 16 5 R 6 G 5 B RGB gt DirectColor MiniGUI P RGB2Pixel Pixel2RGB RGB Em
593. ellsel width 1 cellsel height 1 SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cellsel LPARAM amp celldata file memset amp header 0 sizeof header memset amp celldata 0 sizeof celldata for i l i lt 4 i 417 MiniGUI V2 0 4 nman EK fi header buff scores i 1 celldata content amp header celldata mask GVITEM_MAINCONTENT celldata style GV TYPE HEADER cellsel row i cellsel column 0 cellsel width 1 cellsel height 1 SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cellsel LPARAM amp celldata file memset amp celldata 0 sizeof celldata memset amp cellnum 0 sizeof cellnum cellnum number 50 cellnum format NULL celldata content amp cellnum celldata mask GVITEM MAINCONTENT celldata style GV TYPE NUMBER cellsel row 1 cellsel column 1 cellsel width 3 cellsel height 4 SendMessage hGVWnd GRIDM SETCELLPROPERTY WPARAM amp cellsel LPARAM amp cel ldata file memset amp header 0 sizeof header memset amp celldata 0 sizeof celldata header buff u header size 1 celldata mask GVITEM MAINCONTENT celldata content amp header celldata style GV TYPE HEADER SendMessage hGVWnd GRIDM ADDCOLUMN 3 LPARAM amp celldata file
594. eou E Jal L Sree al hvid intar Emel no e 0 Pu i l Pp oss men cle 0 0 400 100 201 MiniGUI V2 0 4 nman 6246 fh SetBrushColor mem dc RGB2Pixel mem dc OxFF Ox00 OxFF TabbedTextOut mem dc 0 0 Memory DC with alpha and colorkey n The source DC have alpha per surface Mn And the source DC have a colorkey Nn and RLE accelerated DC SetMemDCColorKey mem dc MEMDC FLAG SRCCOLORKEY MEMDC FLAG RLEACCEL RGB2Pixel mem dc OxFF OxFF 0x00 Blit 34 pe JE a isis terme oum y count while count igi eun cle 9 0 Ohde rana rana 800 5 CHECK MSG EE etmieiseoun 3 TellSpeed hwnd start tick end tick Alpha and colorkey Blit 100 DC xA DeleteMemDC mem dc 15 4 BITMAP GDI BITMAP Alpha bmType bmAlpha bmColorkey BITMAP FillBoxWithBitmap Part BITMAP DC BITMAP DC DC
595. eturn old edit proc hwnd message wParam lParam Static int TimeEditorWinProc HWND hWnd int message WPARAM wParam LPARAM lParam switch message case MSG_CREATE HWND hwnd HDC hdc HWND timeedit spin SIZE size hwnd CreateWindow CTRL STATIC This is a time editor XnXn Pressing Down Arrow Up Arrow PgDn and PgUp keys when the box has input focus will change the time NnNn You can also change the time by clicking the SpinBox Wn WS CHILD WS VISIBLE SS LEFT IDC STATIC 3b 2 200 bol 9 timefont CreateLogFont NULL Arial ISO8859 1 FONT WEIGHT BOOK FONT SLANT ROMAN FONT FLIP NIL FONT OTHER NIL FONT UNDERLINE NONE FONT STRUCKOUT NONE hdc GetClientDC hWnd SelectFont hdc timefont GetTextExtent hdc 00 00 00 1 amp size ReleaseDC hdc SW timeedit CreateWindow CTRL SLEDIT POTON WS_CHILD WS_VISIBLE ES_BASELINE IDC EDIT 40 220 Ssize cx 4 size cy 4 hWnd 0 66 MiniGUI V2 0 4 nman 68246 fr SetWindowFont timeedit timefont Hi
596. g 4 ListBox controls normal listbox sorted listbox with LBS MULTIPLESEL style listbox with LBS LISEICON style Add me to the box bellow Add 4 One initially checked item One initially not checked item ivi 3 Dne initially part checked item 3 2 MiniGUI MiniGUI 3 2 3 3 MiniGUI MiniGUI 3 2 2 re you sure to quit 3 3 MiniGUI FLAT MiniGUI MAINWINCREATE 25 phan ERHCE MiniGUI V2 0 4 CreateMainWindow MAINWINCREATE Createlnfo dwStyle Createlnfo spCaption Createlnfo dwExStyle Createlnfo hMenu Createlnfo hCu
597. gui gdi h dinclude minigui window h dinclude minigui control h statie inte radius 10 pratig RDET nl 0 60 300 50 Static void my notif proc HWND hwnd int id int nc DWORD add data if nc CHANGE radius SendMessage hwnd TBM_GETPOS 0 0 InvalidateRect GetParent hwnd amp rcCircle TRUE static int TrackBarWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HWND hwnd switch message case MSG CREATE lt hwnd CreateWindow CTRL TRACKBAR nm WS VISIBLE TBS NOTIFY 100 OE SendMessage hwnd TBM_SETRANGE 0 100 SendMessage hwnd TBM SETLINESIZE 1 0 SendMessage hwnd TBM SETPAGESIZE 10 0 SendMessage hwnd TBM SETTICKFREQ 10 0 SendMessage hwnd TBM SETPOS radius 0 lt SetNotificationCallback hwnd my notif proc break case MSG PAINT HDC hdc BeginPaint hWnd ClipRectIntersect hdc amp rcCircle Cilrele hoc 140 1290 radius EndPaint hWnd hdc return 0 case MS
598. gui minigui h dinclude minigui gdi h dinclude minigui window h dinclude minigui control h Static int DrawiconWinProc HWND hWnd int message WPARAM wParam LPARAM lParam Static HICON myicon small myicon large HDC switch message case MSG CREATE LoadiconFromFile myicon ico myicon small LoadIconFromFile HDC SCREEN myicon ico 0 if myicon small 0 fprintf stderr Load icon file failure myicon large LoadIconFromFile HDC SCREEN myicon ico 1 ie maon large fprintf stderr Load icon file failure break case MSG PAINT hdc BeginPaint hWnd if myicon small 0 DrawIcon hdc 10 10 0 0 myicon small i leom large e DrawIcon hdc 60 60 0 0 myicon large EndPaint hWnd hdc return Oy case MSG CLOSE DestroyIcon myicon small DestroyIcon myicon large DestroyMainWindow hWnd PostQuitMessage hWnd return oy return DefaultMainWinProc hWnd message wParam lParam 100 MiniGUI V2 0 4 ERMMETE 10 1 Demo of drawing icon 10 1
599. iGUI Processes 17 MiniGUI MiniGUI Threads _MGRM_THREADS m MiniGUI Processes _MGRM_PROCESSES fll LITE VERSION MiniGUl Standalone MGRM STANDALONE LITE VERSION STAND ALONE 2 2 4 hMainWnd CreateMainWindow amp CreateInfo MiniGUI CreateMainWindow MAINWINCREATE Createlnfo i 4 MAINWINCREATE Createlnfo CreateInfo dwStyle WS VISIBLE WS BORDER WS CAPTION CreateInfo dwExStyle WS EX NONE WEB CreateInfo spCaption HelloWorld HelloWorld CreateInfo hMenu 0 1 6 x SetDesktopRect
600. iGUI Processes mginit Wn recurn T SetServerEventHook my event hook guess d 1 244 MiniGUI V2 0 4 nman ETE cen cre return 37 else if exec app helloworld helloworld O0 senes old tick count GetTickCount while quit amp amp GetMessage amp msg HWND DESKTOP if pid scrnsaver 0 amp amp GetTickCount old tick count 1000 ShowCursor FALSE pid scrnsaver exec app scrnsaver scrnsaver DispatchMessage amp msg return 0 mginit fj OnNewDelClient lin Tt amp b YE 2 dE p 3 LCO DEL CLIENT quit TRUE mginit s ej ene 0 meinte PZ lima mre mginit helloworld helloworld mginit MiniGUI Processes mg samples
601. ii nItem i SendMessage hScrollView SVM ADDITEM 0 LPARAM amp SVii break case MSG COMMAND int id LOWORD wParam int code HIWORD wParam switch id case IDC_SCROLLVIEW if code SVN CLICKED Sel SendMessage hScrollView SVM GETCURSEL 0 0 InvalidateRect hScrollView NULL TRUE break break case MSG CLOSE EndDialog hDlg 0 return 0 return DefaultDialogProc hDlg message wParam lParam Static CTRLDATA CtrlBook ScrollView WS BORDER WS CHILD WS VISIBLE WS VSCROLL WS HSCROLL SVS AUTOSORT L07 320 503 IDC SCROLLVIEW nue 0 ba static DLGTEMPLATE DlgBook WS_BORDER WS_CAPTION MiniGUI V2 0 4 sssaxsrsrsrTrrrTrrrrrrrrrrr nman WS EX NONE 0 9 350 200 My Friends TABLESIZE CtrlBook NULL 0 Alex Zhang Hellen Liu Michael Li 1 8 15 xl 30 2 363 MiniGUI V2 0 phan MEJET V2 0 4 ERHCE 364 MiniGUI V2 0 4 31
602. init setitimer mginit setitimer MiniGUI Processes setitimer Kt MiniGUI Threads 12 1 1 12 1 define ID TIMER 100 define ID TIME STATIC 100 pratic chaws me time Char meat Ama SETCE Em w EM isum em p cm localrtins Ce Spem F pu F F ee oc l AAC KOE ru Ao Utm tmm MEET S e cy return buff Static int TaskBarWinProc HWND hWnd int message WPARAM wParam LPARAM lParam char buff 20 switch message case MSG CREATE CreateWindow CTRL STATIC mk time buff WS CHILD WS BORDER WS VISIBLE SS CENTER ID TIME STATIC g rcExcluded right WIDTH TIME MARGIN MARGIN WIDTH TIME HEIGHT CTRL hWnd 0
603. item nItem j add score item hListView amp item hitem SendMessage hListView MSG FREEZECTRL FALSE 0 break case MSG COMMAND int id LOWORD wParam pod A jf obei DE usb qi float average 0 char buff 20 for 1 0 i SCORE NUM i for j 0 j SUB NUM j average scores 1 scr j average average SCORE NUM SUB NUM Sprintf buff 4 1f average SendDlgItemMessage hDlg IDC CTRL1 MSG SETTEXT 0 LPARAM buff break case MSG CLOSE EndDialog hDlg 0 break 385 MiniGUI V2 0 4 II lt a J return DefaultDialogProc hDlg message wParam lParam static Gite Se ea M puta C oru WS CHILD WS VISIBLE BS PUSHBUTTON e 260 G9 207 IDC 0 vedit WS_CHILD WS_VISIBLE WS_BORDER 10 260 50 20 LDE MR 7 nn n 0 MES e ew WS BORDER WS CHILD WS VISIBLE WS VSCROLL WS HSCROLL LVS TREEVIEW lOe 320 38 IDC_LISTVIEW score tablet 0 ba static DLGTEMPLATE DlgScore WS_BORDER WS_CAPTION WS_EX_NONE 80 5 9 05 0 NULL 0 ix E 13 81 96 75 38 62 84 79 88 89 79 88 83 28 81 88 75 38 62 84 xj
604. ize read sysinfo proc cpuinfo buff BUF LEN buffi size e 95 break case PAGE MEMINFO Size read sysinfo proc meminfo buff BUF LEN Pu S F jisa e C break case PAGE PARTITION Size read sysinfo proc partitions buff BUF LEN buff size 0 break case PAGE MINIGUI size snprintf buff BUF LEN MiniGUI version d d d WMn Copyright C 1998 2003 Feynman Software and others Mn Mn MiniGUI is free software covered by the GNU General Public License and you are welcome to change it and or distribute copies of it under certain conditions Please visit n n http www minigui orgWAn Nn to know the details WMnWMn There is absolutely no warranty for MiniGUI MINIGUI MAJOR VERSION MINIGUI MINOR VERSION MINIGUI MICRO VERSION break ase SetWindowText hwnd buff lt static int SysInfoPageProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG INITPAGE get systeminfo hDl1g break case MSG SHOWPAGE recurn 1 case MSG_SHEETCMD if wParam IDOK get systeminfo Canle return 0 return DefaultPageProc
605. kfd mgSharedRes mgSizeRes lt mgSizeRes goto error else free mgSharedRes mgSharedRes mmap 0 mgSizeRes PROT READ PROT WRITE MAP SHARED lockfd 0 else ID if write lockfd amp shmid sizeof shmid sizeof shmid IGI Gt OMIT T2 6507 endif close lockfd ifndef USE MMAP mgSharedRes memptr SHAREDRES SHMID shmid endif SHAREDRES_SEMID semid return mgSharedRes error perror LoadSharedResource return NULL MiniGUI Processes 151 MiniGUI V2 0 4 nman ee 68246 fr ID ID mmap 12 4
606. l RAE GB2312 ISO8859 1 BIG5 ISO8859 2 FAR AI 8 lt minigui gdi h gt Text parse support WORDINFO word info gt int GUIAPI GetTextMCharInfo PLOGFONT log font const char mstr int len ines pos ehars int GUIAPI GetTextWordInfo PLOGFONT log font const char mstr int len int pos words WORDINFO info words int GUIAPI GetFirstMCharLen PLOGFONT log font const char mstr int len int GUIAPI GetFirstWord PLOGFONT log font const char mstr int len Enni Eg GetTextMCharlnfo r amp b j H T5 Pb E M XC A rh 811 IM W FIF ABC pos_chars 0 1 2 3 5 5 GetTextWordlnfo TAB GetFirstMCharLen
607. ld c hMainWnd r A MZ AC IL RFP DUW MSG J SM JS TJ NAY 5 A VL ALLE ANN 2 HY 2 m wParam 32 IParam 32 P MSG_QUIT GetMessage 0 MSG_QUIT GetMessage 0 TranslateMessage amp Msg x MSG CHAR DispatchMessage amp Msg DispatchMessage 14 Edited by Foxit Reader Copyright C by Foxit Software Company 2005 2008 MiniGUI 2 P ign Only M nman 4 f HelloWinProc I DispatchMessage DispatchMessage rc GetMessage
608. leftMargin sled topMargin InvalidateRect hWnd NULL TRUE return 0 3 4 7 MSG_ERASEBKGND InvalidateRect UpdateWindow bErase TRUE MSG PAINT MSG EARSEBKGND return 0 MSG EARSEBKGND HDC hdc HDC wParam const RECT clip const RECT lParam BOOL fGetDC FALSE RECT rcTemp if hdc 0 hdc GetClientDC hDlg fGetDC TRUE aue 4 reemp escas ScreenToClient hDlg amp rcTemp left amp rcTemp top ScreenToClient hDlg amp rcTemp right amp rcTemp bottom IncludeClipRect hdc amp rcTemp MiniGUI V2 0 4 nman w
609. lgItemMessage break hDlg IDC PROPSHEET PSM SHEETCMD IDOK case IDCANCEL EndDialog break break return DefaultDialogProc static DLGTEMPLATE DlgPropSheet ba hDlg wParam hDlg message wParam lParam WS_BORDER WS_CAPTION WS_EX_NONE 0 0 410 275 9 0 3 NULL 0 WOW iE EUR F static CTR CTRL_PROPSHEET LDATA CtrlPropSheet WS VISIBLE PSS COMPACTTAB 508 IDC PROPSHEET nn D 0 CTRL BUTTON 220 IDOK Jn 140 CTRL BUTTON WS VISIBLE BS PUSHBUTTON WS TABSTOP 260 220 140 344 200 VISIBLE BS DEFPUSHBUTTON WS TABSTOP WS GROUP 25 257 MiniGUI V2 0 4 nman amp 244 fF 0 IDCANCEL m int MiniGUIMain int argc const char argv l ifdef _MGRM_PROCESSES JoinLayer NAME DEF LAYER propsheet O 0 dendif DlgPropSheet controls CtrlPropSheet DialogBoxIndirectParam amp DlgPropSheet HWND DESKTOP PropSheetProc 0L return 0 ifndef MGRM PROCESSES dinclude minigui dti c CPU MiniGUI version 2 0 4 Copyright C 1338 2007 Feynman Software MiniGUI
610. ller PC LCD controller RAM video RAM VRAM VRAM VRAM CPU VRAM VRAM CPU VRAM PC LCD VRAM 0 1 VRAM 1
611. lndirectParam T MiniGUI 1 MSG INITDIALOG IParam iH 4 3 MSG INITDIALOG 4 3 i ix Wk IParam K X EH Hj static int DepInfoBoxProc HWND hDlg struct info switch message case MSG INITDIALOG lParam info s info SetWindowAdditionalData hDlg break case MSG COMMAND info info switch wParam case IDOK case IDCANCEL EndDialog hDlg wParam
612. logBoxlndirectParam 4 4 4 1 4 4 static int InitWindowProc HWND hDlg int message WPARAM wParam LPARAM lParam switch message case MSG_COMMAND switch wParam case IDOK case IDCANCEL DestroyMainWindowIndirect hWnd break break 51 human MiniGUI V2 0 4 return DefaultWindowProc HWND hwnd MSG Msg DlgInitProgress controls CtrlInitProgress pi hwnd e CreateMianWindowIndirect if hwnd HWND INVALID return db while GetMessage amp Msg hwnd TranslateMessage amp Msg DispatchMessage amp Msg hDlg message wParam amp DlgInitProgress lParam HWND DESKTOP InitWindowProc 4 1 4 6 A IL JU d
613. lue uq ij pose 9 DEFAULT WIDTH 200 1 2 DC SubtractRegion amp my cliprgnl1 mele meme I one Senleceeli Redmon oe ee ml gn 213 MiniGUI V2 0 4 nman ERBEK NE 1 SetBrushColor hdc PIXEL red 15511 390 590 5 1 2 200 Tri EC Tr eRegatonal mesmo MES COP Q Ff See pe com en 2600 9 DC XorRegion amp my cliprgni amp my cliprgni amp my cliprgn2 Seuteieraciierpie gren bcc me RS CTI ce lt mt al erope 20090 er 200 1 2 200 Las sj euy eliprcal 500 L00 EO OffsetRegion amp my cliprgn2 200 0 i DC IntersectRegion amp my cliprgnl amp my cliprgni amp my cliprgn2 my ciiin gms FillBox hdc 400 0 180 200
614. mID 72 item 0 MENUITEMINFO mask mask 7 2 3 mask cM XE MiniGUI V2 0 4 q nman 68246 fr EnableMenultem HAR 7 2 5 MiniGUI m RemoveMenu m DeleteMenu m DestroyMenu 7 2 6 MSG_ACTIVEMENU
615. mem dc CreateCompatibleDC DC DC DC DC Blit DC L RGBA ZL 8 GAL 8 DC Alpha Alpha 0 255 MiniGUI SetPalette RGBA DC DC DC RGBA CreateMemDC RGBA
616. minput deinit comminput ts getdata x y button 0 1 E _ comminput kb getdata key MiniGUI status 1 0 0 1 MiniGUI E _ comminput wait for input MiniGUI sleep 1 2 MiniGUI 5 18 5
617. n EZEK TF m STN_DBLCLK m STN_CLICKED Ha 19 4 19 1 mg samples static c 19 6 ita 19 1 tinclude lt stdio h gt include minigui common h include lt minigui minigui h gt include lt minigui gdi h gt include minigui window h include lt minigui control h gt Static void my notif proc HWND hwnd int id int nc DWORD add data setwindowText ab ase 555 STN DBLCLK SetWindowText hwnd I am double clicked Static int StaticDemoWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HWND hwnd switch message case MSG CREATE SEE WS VISIBLE SS CENTER SS NOTIFY 50 0 390 200 20 las 0 p SetNotificationCallback hwnd my notif proc PECUTHEOL
618. n EE UI EE ETEEEEEEEEEEEEESSSEEEm GETPASSWORDCHAR ASCI TEXTEDIT H S SETPASSWORDCHAR EM_GETPASSWORDCHAR 22 2 8 SLEDIT ES_TIP EM_SETTIPTEXT EM_GETTIPTEXT int len enar epa qud SendMessage hwndEdit EM SETTIPTEXT len LPARAM tip text IParam wParam tip_text 0 wParam 1 wParam 0 EM_GETTIPTEXT ehar E PAGERE VEn NF SendMessage hwndEdit EM GETTIPTEXT len LPARAM tip text IParam wParam 0 TEXTEDIT ES TITLE EM_SETTITLETEXT E
619. nce Manual 1 1 MiniGUI B MiniGUI V2 0 4 MiniGUI Et X JL minigui docs MiniGUI V2 0 4 PDF PDF B MiniGUI API Reference Manual V2 0 4 MiniGUI V2 0 4 MiniGUI Processes WB MiniGUI API Reference Manual V1 6 10 MiniGUI V1 6 10 MiniGUI Threads m MiniGUI for 2 0 4 1 6 10 Datasheet for MiniGUI V2 0 4 1 6 10 README ReleaseNotes pdf
620. ndMessage hScrWnd SVM ADDITEM WPARAM amp hsvi LPARAM amp svii svii SVITEMINFO typedef struct SCROLLVIEWITEMINFO int nItem index of item int nItemHeight height of an item DWORD addData item additional data SVITEMINFO nltem nltem 29 f nitemHeight addData hsvi SVM_ADDITEM SVM_DELITEM HSVITEM hsvi SendMessage hScrWnd SVM DELITEM idx hsvi hsvi hsvi X 0 idx SVM_REFRESHITEM 357 MiniGUI V2 0 4 nman en nnn 3 a amaAz2m A AAAA A OBSAEEPRHIIe a aane HSVITEM hsvi SendMessage hScrWnd SVM REFRESHITEM idx hsvi hsvi hsvi Ay 0 idx
621. ndowOrig y pdc ViewExtent y pdc WindowExtent y pdc ViewOrig y void GUIAPI DPtoLP HDC hdc POINT pPt PDC pde isle e Ge rip e op e mole g if pdc mapmode MM TEXT Pe le Vieworlo pdc gt WindowExtent x pdc gt ViewExtent x pdc WindowOrig x e DE V ele ww pdc gt WindowExtent y pdc gt ViewExtent y pdc gt WindowOrig y 166 MiniGUI V2 0 4 r FF 334 LPtoSP SPtoLP void GUIAPT SPtoLhP HDC hdc POINT void GUIAPI LEPtoSP HDC hdc POTNT pPt 13 4 3 MiniGUI x y MiniGUI 0 0
622. ng lp dep source column i dep source width 1 nen NAT dep target row s 5 dep target column i dep target width 1 dep target height 1 SendMessage hGVWnd GRIDM ADDDEPENDENCE 0 LPARAM amp dep return case MSG_COMMAND break case MSG CLOSE DestroyMainWindow hWnd MainWindowCleanup hWnd metum Or return DefaultMainWinProc hWnd message wParam lParam 150 00000 50 00000 50 00000 150 0000 288 50 00000 50 00000 50 00000 150 0000 Jm 50 00000 50 00000 50 00000 150 0000 Jh 50 00000 50 00000 50 00000 150 0000 50 00000 50 00000 50 00000 150 0000 37 1 419 MiniGUI V2 0 4 nman ia a rr II aaj 420 MiniGUI V2 0 4 ee nman 38 lconView
623. nit 11 5 11 5 11 3 RGB Z N 11 6 11 6 ColorSelDialog Zit amp PM 6 17 135 MiniGUI V2 0 4 III ia a s a ERZEK TF int ColorSelDialog HWND hWnd int x int y int w int h PCOLORDATA pClrData hWnd x y w h pClrData COLORDATA typedef struct tag COLORDATA reserves not used now DWORD style the value of the color returned gal pixel pixel the R G B value of the color returned Uint8 3 the H S V value of the color returned Uinti6 br Uint8 Els VA COLORDATA PCOLORDATA pixel r g b RGB h s v HSV
624. nman E24 PF MiniGUI 20 4 MiniGUI Ver 2 0 4 1 6 10 2007 8 M iniGUI V2 0 4 Z B Jl 1 MiniGUI http www minigui com Z FRA ur ThreadX Nucleus uC OS ll OSE Win32 MiniGUI XE XL z BJ HLERA E Linux uClinux eCos VxWorks pSOS MiniGUI MiniGUI GPL MiniGUI STR V1 6 2 MiniGUI V1 3 3 C http www minigui com download cindex shtml GPL
625. ntrol x Me use the SpinBox control in this Help Message Box You can click the up arrow of the control to scroll up the message and click the down arrow of the control to scroll down You can also scroll the message bv typing Rrrouloun and Arrowlp keys In your application you can call myllinHelpMessage function to build a Help 11 1 myWinHelpMessage 120 MiniGUI V2 0 4 nman 11 1 myWinEntries 11 2 H 55 yE 11 1 myWinEntries char cols 10 char rows 10 char newcols cols char newrows rows NULL myWINENTRY entries 3t amp newcols 0 frT L amp newrows 0 NULL NULL 0 0 0 J NULL myWINBUTTON buttons ffi IDOK BS DEFPUSHBUTTON R IDCANCEL 0 NULL 0 0 int result Sprint F ins MESE prame
626. on WS_VISIBLE BS_PUSHBUTTON WS_TABSTOP 1205 2S7 IDCANCEL 0 ls I static const char daxia RA BE n dia 309 MiniGUI V2 0 4 nman ITI UR js static const char daxia char E Ja ako n p pa static void daxia_notif_proc HWND hwnd int id int nc DWORD add_data if CBN_SELCHANGE int cur sel SendMessage hwnd CB GETCURSEL 0 0 ass Sal 0 SetWindowText GetDlgItem GetParent hwnd IDC PROMPT daxia char cur sel Static void prompt HWND hDlg char date 1024 int hour SendDlgItemMessage hDlg IDC HOUR CB GETSPINVALUE 0 0 int min SendDlgItemMessage hDlg IDC MINUTE CB GETSPINVALUE 0 0 int sel SendDlgItemMessage hDlg IDL DAXIA CB GETCURSEL O0 0 sprintf date RAATS A 02d 02d X JA EsEs hour min daxia char sel daxia sell MessageBox hDlg date MB OK MB ICONINFORMATION Static int MyDateBoxProc HWND hDlg int message WPARAM wParam LPARAM lParam ne p switch message case MSG INITDIALOG
627. on PCLIPRGN dst int x int y int rx int ry BOOL GUIAPI InitPolygonRegion PCLIPRGN dst const POINT pts int vertices PtInRegion RectlnRegion DC 15 2 MDE gdidemo 15 2 15 3 static BLOCKHEAP my cliprc heap Static void GDIDemo Region HWND hWnd HDC hdc LIPRGN my cliprgnl LIPRGN my cliprgn2 eu 0 InitFreeClipRectList amp my cliprc heap 100 x InitClipRgn amp my cliprgni amp my cliprc heap InitClipRgn amp my cliprgn2 emy cliprc heap ma E ei e lepe te Cuy ore MEET LO aA Os InitEllipseRegion amp my cliprgn2 100 100 50 70 zin SetBrushColor hdc PIXER b
628. ora vo C Wy we el xe SetBrushColor hdc old brush 15 8 15 7 MiniGUI c void GUIAPI MoveTo HDC hdc int x int y void GUIAPI LineTo HDC hdc int x int y MOrdiGUTAPIIRectangle HDC leue 0 cimi sso cies wb oS dE AP Dollys Cae aele consi DON 5 ae Vert ees void GUIAPTI SplineTo HDC hdc const POINT pts GU Ap sun c beum Sen ES iC TA p t FP hi pa ant ses hy seems beue 3557 eu hap cilte n ca EID dicm ceni ENS ME c mcg Nr MoveTo Xx y LineTo x y Rectangle x0 y0 x1 y0 PollyLineTo LineTo
629. ox width nr boxes WIDTH BOXES sb Ge de 0 new width WIDTH BOXES nr boxes ese new width MAX WIDTH LAYER BOX if new width gt MAX WIDTH LAYER BOX new width MAX WIDTH LAYER BOX adjust boxes new width layer box width new width break case LCO JOIN CLIENT break case LCO REMOVE CLIENT break case LCO TOPMOST CHANGED on change topmost layer break default printf Serious error incorrect operations Nn 240 MiniGUI V2 0 4 ee nman 6946 fr 2 ServerStartup i Zi mginit cU sS sy on mgint NAME_DEF_LAYER int nr globals BOOL GUIAPI ServerStartup mtodefanremorma s r int def nr topmosts Z mginit Z nr globals 4 def nr topmosts W def nr normals Z
630. pPt POINT GetCaretBlinkTime 114 500 z MiniGUI V2 0 4 nman SetCaretBlinkTime 100 UINT GUIAPI GetCaretBlinkTime HWND hWnd BOOL GUIAPI SetCaretBlinkTime HWND hWnd UINT uTime 10 3 5 10 4 myedit 1 mg samples caretdemo c
631. r C N rss nman EZEK TF Ill MiniGUI MiniGUI Processes gt 227 MiniGUI V2 0 4 nman ia a rr II aaj 228 MiniGUI V2 0 4 16 MiniGUI Processes MiniGUI 16 1 GUI GUI MiniGUI UNIX select
632. ram 117 MiniGUI V2 0 4 NMOAN EETTEEEEEEEEEESESESSSEESm myedit GetSystemFont SYSLOGFONT WCHAR DEF SetWindowFont myedit MSG CREATE CreateCaret 1 pBuffer len pos MSG_SETFOCUS myedit ShowCaret MSG_KILLFOCUS HideCaret myedit MSG_CHAR pos len myedit SetCaretBlinkTime 100 myedit MSG_KEYDOWN SetCaretPos MSG_PAINT
633. ram CreateMainWindow pCreatelnfo pCreatelnfo GetDC MSG NCCREATE lt case MSG_NCCREATE abs PZ aajo 0 Register before show the window SendMessage HWND DESKTOP MSG IME REGISTER WPARAM hWnd 0 else recurnm ls break 3 4 2 MSG_SIZECHANGING wParam Param MiniGUI in case MSG SIZECHANGING memcpy PRECT lParam PRECT wParam
634. reads 18 2 CommLCD 1 LCD FrameBuffer 8 Packed Pixel 2 MiniGUI Threads CommLCD CommLCD with targetname vxi386 vxppc TARGET VXi386 TARGET VXPPC VxWorks i386 PowerPC with targetname c33l05 __ TARGET 633105 EPSON C33L05 H ifr T IK with targetnamezmx21 TARGET MX21 OSE mx21 TARGET_UNKNOWN__ eCos eCos rtos ucos2 startup c dummy CommLCD commlcd drv init void Teonmmicdidrvilgecintolseructi ommilsccleismf oM commlcd drv release void EN
635. rsion yes foo bar include minigui common h procs version no AC CHECK DECLS MGRM PROCESSES procs version yes foo bar include minigu i common h standalone version no AC CHECK DECLS MGRM STANDALONE standalone version yes foo bar include lt minigui common h dnl dnl check for newgal or oldgal interface use newgal no AC CHECK DECLS USE NEWGAL use newgal yes foo bar tinclude minigui common h dnl dnl Write Output slg cepe Vae c Prog ge Uer em CFLAGS CFLAGS Wall Wstrict prototypes pipe lE cepe ex mead vergilomnt Uses eem 18 MiniGUI V2 0 4 nman CFLAGS CFLAGS D REENTRANT IPS tal imurasmi else UIBSE SLIBS lIminigui AC CHECK DECLS HAVE MATH LIB LIBS LIBS lm foo bar include minigui common h AC CHECK DECLS PNG FILE SUPPORT LIBS LIBS lpng foo bar include minigui commo AC CHECK DECLS JPG FILE SUPPORT LIBS LIBS ljpeg foo bar fsinclude minigui comm AC CHECK DECLS SUPPORT LIBS S LIBS lti1 foo bar dinclude minigui common h AC CHECK DECLS TTF SUPPORT LIBS SLIBS lttf foo bar iinclude minigui common h danl
636. rsor Createlnfo hlcon Createlnfo MainWindowProc Createlnfo Ix Createlnfo ty Createlnfo rx Createlnfo by Createlnfo iBkColor Createlnfo dwAddData 32 Createlnfo hHosting 1 Createlnfo dwAddData 32 GetWindowAdditionalData 2 Createlnfo hHosting HH HWND_DESKTOP
637. rt cs C EZEK TF FillBoxWithBitmap hdc 0 0 nono if fGetDC ReleaseDC hdc return mg samples bmpbkgnd c 3 5 EDO 534543 4323 21045 01702 3 5 3 4 8 MSG PAINT MiniGUI InvalidateRect MiniGUI MSG_PAINT I case MSG PAINT HDC hdc BeginPaint hWnd 5 18 J hac H
638. rx cem hdc pts 0 x pts 0 y rx ry 15 9 MiniGUI GUIAPI GUIAPI GUIAPI FillBox HDC hdc pues FillEllipse HDC hdc FillPolygon HDC hdc FloodFill HDC een Sv simae 55 Da y doie ey sime const POINT pts simie oes cime Y 5 GUIAPI GUIAPI PHE E aba 2 ne ete e SE m FilBox x y w hh m FilCircle sx xy r FillEllips sx sy X po Y ry m FilPolygon pts vertices m FloodFil x y FillCircle FillEllips
639. s SendMessage pshwnd PSM ADDPAGE WPARAM amp DlgStructParams LPARAM PageProcl 28 2 2 zl DefaultPageProc m MSG_INITPAGE MSG_SHOWPAGE MSG INITDIALOG IParam SW HIDE SW SHOW 1 WS TABSTOP m PSM_SHEETCMD MSG SHEETCMD
640. sizeof RECT return O 5 MiniGUI V1 6 x Send2ActiveClient 39 MiniGUI V2 0 4 NMOAN AAAABABAHBNC case MSG_SIZECHANGING const RECT rcExpect const RECT wParam RECT rcResult RECT lPraram rcResult left rcExpect leoft rcResult top rcExpect 5top Sum ceo SEE es rcResult bottom rcExpect left HEIGHT eene 0 3 4 3 MSG_SIZECHANGED 7 MSG CSIZECHANGED MSG SIZECHANGED MSG_SIZECHANGING wParam IParam RECT Param SPINBOX
641. ss 255 a ai 255 IV MiniGUI 261 19 SIE 263 19 1 EEEE 263 IO Te TS 263 19 1 2 fr DR RR RRRRORE RR RR URP EER ERAT ER EE 264 jO I PRETI 265 19 1 4 ACE T UE D M 266 192 TES HE 266 19 3 PS E h jp umu ua aut tau au sss 266 19 4 KK 267 2022 m TET 269 20 1 aI IIIa Z 269 NR 269 DO TEMP 210 T 271 RR 272 20 3 Ej 273 un nn nsn 274 NUES UT UU TTE 279 21 1 m 279 280 21 2 1 SSE RIAIR E Lesser 280 21 2 2 exp ELEC Hr OPERE RR ua Lu asas 282 31 D S o c C PEE 282 MiniGUI V2 0 4 ee nman 68246 fr 22 24 21 2 4
642. t TRUE bRedraw FALSE H LN 0 4 MiniGUI V2 0 4 sss hrF a rrrr rr rc nman EZEK TF Scroll Bars mf E Position O Position 1 Position 2 Position 3 Position 4 Position O Position 1 Position 2 Position 3 Position 4 8 2 0 4 5
643. t makefile autogen sh configure configure mg samples makefile MiniGUI MiniGUI Threads make mginit scrnsaver 17 3 MiniGUI Processes MiniGUI Processes MiniGUI JoinLayer JoinLayer MiniGUI JoinLayer GHANDLE GUIAPI JoinLayer const char layer name csiirentmamer int max nr topmosts int max nr normals layer name layer name NULL
644. t 7 x Autoconf Automake configure in dnl Process this file with autoconf to produce a configure script AC PREREQ 2 13 dnl AC INIT src helloworld c dnl dnl needed for cross compiling AC CANONICAL SYSTEM dni Checks for programs AC PROG MAKE SET AC PROG CC danl samples 1 0 INIT AUTOMAKE samples 1 0 dnl Checks for typedefs structures and compiler characteristics AC C CONST dnl Checks for header files AC HEADER STDC AC HEADER SYS WAIT AC HEADER TIME AC CHECK HEADERS sys time h unistd h dnl check for libminigui have libminigui no AC CHECK HEADERS minigui common h have libminigui yes foo bar dnl dnl threads version no AC CHECK DECLS MGRM THREADS threads ve
645. t PBM SETSTEP 5 0 5 25 2 3 PBM_SETPOS SendMessage hwndEdit PBM SETPOS 50 0 50 25 2 4 SendMessage hwndEdit PBM DELTAPOS 10 0 10 10 25 2 5 PBM_STEPIT
646. t lt 0 app info autostart 0 if app info app items APPITEM calloc app info nr apps sizeof APPITEM NULL MiniGUI V2 0 4 nman return FALSE item app info app items for 1 0 1 app info nr apps i item char section 10 Sprintf section app d i if GetValueFromEtcFile APP INFO FILE section path item path PATH MAX i ETC OK SyOnE Guese e p if GetValueFromEtcFile APP INFO FILE section name item name NAME MAX ETC OK GOCO error if GetValueFromEtcFile APP INFO FILE section layer item layer LEN LAYER NAME ETC OK gotoSenronm if GetValueFromEtcFile APP INFO FILE section tip en WU dux d IouNe EOK Goto error ecrsubechr ETE S if GetValueFromEtcFile APP INFO FILE section icon item bmp path PATH MAX NAME MAX ETC OK goto Error if LoadBitmap HDC SCREEN amp item gt bmp item gt bmp_path ERR BMP OK Goto error item gt cdpath TRUE return TRUE error free app info return FALSE LoadEtcFile GetValueFromEtc UnloadEtcFile GHANDLE hAppInfo HAppInfo Loa
647. t argc const char argv l tae i sum HCURSOR hOldCursor HWND hwnd ifdef MGRM PROCESSES JoinLayer NAME DEF LAYER progressbar 0 0 endif hOldCursor SetDefaultCursor GetSystemCursor 1006 WAIT hwnd createProgressWin HWND DESKTOP JEXEYESE 100 2000 while HavePendingMessage hwnd MSG msg GetMessage amp msg hwnd DispatchMessage amp msg 322 MiniGUI 2i V2 0 4 S sum i 5000 for j 20 j 500000 14 Sume sum sum destroyProgressWin hwnd SetDefaultCursor holdqeurseor return 0p ifndef MGRM PROCESSES include minigui dti c dendif nman ERMMETE ec Gb xt 206 se unsigned long j if 1 5 0 SendDlgItemMessage hwnd 100 PBM SETPOS i 0L while HavePendingMessage hwnd MSG msg GetMessage amp msg hwnd DispatchMessage amp msg 25 3 FE 323 MiniGUI
648. t op rop ROP SET ROP AND 5 POP OR POP XOR SetPixel LineTo Circle Rectangle FillCircle GDI FillBox FillBox FilBox 15 3 DC BitBIt GDI DC GDI DC GAL GAL DC Alpha Alpha DC Alpha SetMemDCAlpha
649. tandalone A mginit zs ur 2 3 2 MiniGUI 44 amp minigui MiniGUI vcongui mgext Mgext gt E CE libvcongui aL 2 4 MiniGUI Automake Autoconf Autoconf Automake UNIX _MiniGUL _MDE Autoconf Automake unn MDE Automake Autoconf helloworld Automake Autoconf Linux Info
650. tcSec SaveEtcToFile m FindSectionInEtc bCreateNew TRUE 146 MiniGUI V2 0 4 nman LoadEtcFile GetValueFromEtc UnloadEtcFile JJ b ix F E REV fH GetValueFromEtcFile mginit nr 8 autostartz0 3550 pache Cools name vcongui layer tip
651. tch void bmBits h endif USE NEWGAL ddefine MYBMP TYPE NORMAL 0x00000000 ddefine MYBMP TYPE RLE4 0x00000001 ddefine MYBMP TYPE RLE8 0x00000002 ddefine MYBMP TYPE RGB 0x00000003 ddefine MYBMP TYPE BGR 0x00000004 define MYBMP TYPE RGBA 0x00000005 define MYBMP TYPE MASK 0x0000000F define MYBMP FLOW DOWN 0x00000010 ddefine MYBMP FLOW UP 0x00000020 ddefine MYBMP FLOW MASK 0x000000F0 ddefine MYBMP TRANSPARENT 0x00000100 ddefine MYBMP ALPHACHANNEL 0x00000200 ddefine MYBMP ALPHA 0x00000400 define MYBMP RGBSIZE 3 0x00001000 ddefine MYBMP RGBSIZE 4 0x00002000 ddefine MYBMP LOAD GRAYSCALE 0x00010000 ddefine MYBMP LOAD NONE 0x00000000 Device independent bitmap structure struct Flags of the bitmap can be OR ed by the following values MYBMP TYPE NORMALNn A normal palette bitmap MYBMP TYPE RGB n A RGB bitmap MYBMP TYPE BGR n A BGR bitmap MYBMP TYPE RGBA n A RGBA bitmap MYBMP FLOW DOWN n The scanline flows from top to bottom MYBMP FLOW UP n The scanline flows from bottom to top MYBMP TRANSPARENT n Have a trassparent value MYBMP ALPHACHANNEL n 3 boob OR OB 4 176 MiniGUI V2 0 4 nman Have a alpha channel MYBMP ALPHA n Have a per pixel alpha value MYBMP RGBSIZE 3 n Gize GE Bao REJ Tai ME CMS MYBMP_RGBSIZE_4 n Size of each RGB tripl
652. teLogFont WEIGHT SUBPIXEL OTHER NIL FONT FONT FONT 15 0 Selle crant hcic rowe y EtoSseumcdbssternamgestonite avesse eel 67 0 ft2SetLcdFilter mg font OPIOM SMOO7 SMOOT text with Free UH NONE text with MiniGUI sub pixels smooth DEFAULT 2 sub pixels smooth FONT TYPE NAME SCALE TTF times ISO8859 1 FONT SLANT ROMAN FONT FLIP NIL UNDERLINE NONE FONT STRUCKOUT NONE FS_WEIGHT_BOOK 14 3 MiniGUI weight FONT_WEIGHT_BOOK weight FONT_WEIGHT_DEMIBOLD weight s FS_WEIGHT_SUBPIXEL pa FONT WEIGHT SUBPIXEL K 14 3 MiniGUI Y j FS_WEIGHT_DEMIBOLD slant Rfa r FONT SLANT ROMAN FONT SLANT ROMAN i flip FONT_OTHER_NIL flip FONT FLIP HORZ s W flip V FONT_
653. uffer Linux If fix FrameBuffer PC 13 1 2 GAL MiniGUI 1 1 0 GAL GDI GAL GDI GAL GDI GAL GDI GAL GDI GDI GAL GDI GAL GDI GAL GAL
654. up hWnd return 0y m MSG_CLOSE DestroyMainWindow 43 phan ERBAT MiniGUI V2 0 4 3 5 MiniGUI U m H MSG DESTROY PR LM UpdateWindow ShowWindow IsWindowVisible EnableWindow IsWindowEnabled EE IE GetClientRect GetWindowRect GetWindowBkColor SetWindowBkColor GetWindowFont SetWindowFont GetWindowCursor SetWindowCursor GetWindowsStyle GetWindowExStyle GetFocusChild SetFocusChild
655. ursor index define IDC ARROW 0 define IDC IBEAM i define IDC PENCIL 2 ddefine IDC CROSS 3 ddefine IDC MOVE 4 ddefine IDC SIZENWSE 5 ddefine IDC SIZENESW 6 define IDC SIZEWE 7 define IDC SIZENS 8 define IDC UPARROW 9 define IDC NONE 10 ddefine IDC HELP dl define IDC BUSY 12 define IDC WAIT 13 define IDC_RARROW 14 define IDC COLOMN define IDC ROW 16 ddefine IDC DRAG 3L 7 define IDC NODROP 18 ddefine IDC HAND POINT 19 define IDC HAND SELECT 20 ddefine IDC SPLIT HORZ 21 ddefine IDC SPLIT VERT 22 0 22 23 GetSystemCursor 110 E Tfjg rH MiniGUI V2 0 4 nman 10 2 6 M 10 3 MiniGUI mg samples cursordemo c 10 3 include minigui common h include lt minigui minigui h gt dinclude minigui gdi h dinclude minigui window h dinclude minigui control h define IDC TRAP 100 Static HWND hTrapWin hMainWnd Static RECT rcMain rc trap static int Trapwin
656. ut 3t ur Me void amm char buff LEN ENGINE NAME 1 char mdev MAX PATH 1 char mtype LEN MTYPE NAME 1 if GetValueFromEtcFile ETCFILEPATH system ial engine DUETE LEN_ENGINE_NAME lt 0o if GetValueFromEtcFile ETCFILEPATH system mdev mdev MAX PATH c GC BRESCONBEPEGSSBUNIBI if GetValueFromEtcFile ETCFILEPATH system mtype mtype LEN MTYPE NAME 0 return ERR CONFIG FILE for 1 0 1 INPUTS i if strncasecmp buff inputs il id LEN ENGINE NAME 0 253 MiniGUI V2 0 4 nman EHI cbe oe b sbp break doe ec WD d fprintf stderr IAL Does not find matched engine Nn return ERR NO MATCH Strcpy cur input mdev mdev if IAL InitInput cur input mdev mtype fprintf stderr IAL Init IAL engine failure Xn return ERR INPUT ENGINE ifdef DEBUG fprintf stderr IAL Use s engine Mn cur input id dendif return 0 inputs
657. w int sh HDC hddc int dx int dy int dw int dh DWORD dwRop BitBlt StretchBlt MiniGUI V2 0 4 nman 84 tF 13 3 StretchBlt mg samples stretchblt c T 13 3 StretchBlt include lt minigui common h gt include lt minigui minigui h gt include minigui gdi h include minigui window h include lt minigui control h gt static int StretchbltWinProc HWND hWnd int message WPARAM wParam LPARAM lParam HDC switch message case MSG PAINT hdc BeginPaint hWnd SetBrushColor hdc PIXEL blue 30 3 stretchB1lt SE re ermpiit q elle 0 20 hq eo Ono ona o EndPaint hWnd hdc return 0 case MSG_CLOSE DestroyMainWindow hWnd PostQuitMessage hWnd return 0 return DefaultMainWinProc hWnd message wParam lParam
658. w h dinclude minigui control h static DLGTEMPLATE DlgBoxInputChar WS_BORDER WS_CAPTION WS EX NONE 250 ifdef LANG ZHCN else Please input letters endif 0 amp 0 0 NULL ba define IDC CHAR define IDC CHARS 100 110 1 static LDATA CtrlInputChar CTRL STATIC WS VISIBLE 10 880 gnus LANG ZHCN 18 ifdef else Please input a letter endif CIRL ShEDIT H 40 80 CHAR NULL 25 L MLEDIT 80 380 CHARS NULL _VISIBLE WS BORDER WS VSCROLL ES BASELINE VISIBLE WS TABSTOP WS BORDER ES CENTER ES AUTOWRAP 299 MiniGUI V2 0 4 nman EHI CTRL BUTTON WS_TABSTOP WS_VISIBLE BS_DEFPUSHBUTTON 1 I 70 160 60 25 DOK difdef LANG ZHCN else OK gt endif pa char message zh M 00 00 00i 00 00 00n 00 00 00i 00 00 00G 00 00 00U 00 00 00I 00 0 ONOON KRN00N00NxCENx8FN00N00Nx7F ONVOONOO uN00N00 NOONOONOO ifdef UNICODE SUPPORT Static void test utf8 HWND hwnd LOGFONT utf8 font char utf8 msg 100 0 int len WCS2MBS utf8 font utf8 msg wchar t message zh 12 100 utf8 msg len XN0 SetWindowText hwnd utf8 msg endif
659. x007 0x00 0x00 OxO0 OO 0x00 0x00 0x80 0x03 Ox00 0x80 0x03 0x00 0x00 Oxe 00T 0x90 0X00 OXIE 0x00 02X00 pa static BYTE XORmaskIcon 102 MiniGUI V2 0 4 nman 0x00 000 00 Ox00 0X00 0x00 0X00 0x00 0x00 0x00 5 0X00 0x00 0x00 0x00 0X00 DzEFE 0x00 0x00 O00 0x00 USE prim 0x00 OLOO 0X00 0X8 Os 0x00 0x00 OXE OXE8 OXE OLOO OZEE OXEL 0X20 Opus Ox O00 OZEE ess OXE OZEE OZEE OXEE USE gri Obi OLOFE OZEE EQ x OZEE QA 0 OSEE ME OSEE 0x00 OX0E OXE dox esu eso Us 0x00 OEF OES 0X007 sso scu 0x00 OS EE Uo sss DER 560 a T OEE dri sx 0x00 OxOO Ox00 OxOO Ox00 0x00 OIE isi OXIE 0X007 0x00 Gr x 0xet 0x00 0x00 veo osx 0x80 0x03 0x00 0x00 0280 0x03 0x007 0x01 0x00 0x00 0200 0x00 0301 0x00 0x00 0200 0x80 0x03 0X00 0200 0X207 OXA OXON 0x00 Ux OE 15 0x26 0x00 0x00 OxOO Oxf4 Oxd9 ozas Oxfe OSEE PEN Oct TOME Occ PME OE 00 92007 0x00 0K00 000 0300 0x00 0x00 D0x0e 0x03 0x287 0X00 0x00 02047 0x00 Qe kO 0X00 0X00 0x00 OLEO OLOO QX FO 0210 0x04 0x70 Oxer OE O OrbE 0x41 0x90 bs

Download Pdf Manuals

image

Related Search

Related Contents

    STMICROELECTRONICS L6928 handbook                

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.