Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

382 lines
9.2 KiB

  1. /***************************************************************************/
  2. /*********************** include file for UI Library *********************/
  3. /***************************************************************************/
  4. #ifndef __uilstf_
  5. #define __uilstf_
  6. #define STF_MESSAGE (WM_USER + 0x8000)
  7. /*
  8. ** Window Messages
  9. */
  10. #define STF_UI_EVENT (STF_MESSAGE)
  11. #define STF_DESTROY_DLG (STF_MESSAGE + 1)
  12. #define STF_HELP_DLG_DESTROYED (STF_MESSAGE + 2)
  13. #define STF_INFO_DLG_DESTROYED (STF_MESSAGE + 3)
  14. #define STF_EDIT_DLG_DESTROYED (STF_MESSAGE + 4)
  15. #define STF_RADIO_DLG_DESTROYED (STF_MESSAGE + 5)
  16. #define STF_CHECK_DLG_DESTROYED (STF_MESSAGE + 6)
  17. #define STF_LIST_DLG_DESTROYED (STF_MESSAGE + 7)
  18. #define STF_MULTI_DLG_DESTROYED (STF_MESSAGE + 8)
  19. #define STF_QUIT_DLG_DESTROYED (STF_MESSAGE + 9)
  20. #define STF_DLG_ACTIVATE (STF_MESSAGE + 10)
  21. #define STF_UILIB_ACTIVATE (STF_MESSAGE + 11)
  22. #define STF_REINITDIALOG (STF_MESSAGE + 12)
  23. #define STF_SHL_INTERP (STF_MESSAGE + 13)
  24. #define STF_COMBO_DLG_DESTROYED (STF_MESSAGE + 14)
  25. #define STF_MULTICOMBO_DLG_DESTROYED (STF_MESSAGE + 15)
  26. #define STF_DUAL_DLG_DESTROYED (STF_MESSAGE + 16)
  27. #define STF_MULTICOMBO_RADIO_DLG_DESTROYED (STF_MESSAGE + 17)
  28. #define STF_MAINT_DLG_DESTROYED (STF_MESSAGE + 18)
  29. #define STF_ERROR_ABORT (STF_MESSAGE + 0x103)
  30. //
  31. // Button IDS to communicate help and exit button messages to shell
  32. //
  33. #define ID_EXITBUTTON 7
  34. #define ID_HELPBUTTON 8
  35. /*
  36. ** Symbols used by Basic Dialog Class procedures
  37. */
  38. #define CLS_MYDLGS "mydlg"
  39. #define DLGTEXT "DlgText"
  40. #define DLGCAPTION "Caption"
  41. #define DLGTYPE "DlgType"
  42. #define DLGTEMPLATE "DlgTemplate"
  43. #define INSTRUCTIONTEXT "InstructionText"
  44. #define HELPCONTEXT "HelpContext"
  45. #define EXITSTATE "ExitState"
  46. #define EXIT_ENABLE "Active"
  47. #define EXIT_DISABLE "Inactive"
  48. /*
  49. ** PushButton Control IDs
  50. */
  51. #define IDC_A 401
  52. #define IDC_B 402
  53. #define IDC_C 403
  54. #define IDC_D 404
  55. #define IDC_E 405
  56. #define IDC_F 406
  57. #define IDC_G 407
  58. #define IDC_H 408
  59. #define IDC_I 409
  60. #define IDC_J 410
  61. #define IDC_K 411
  62. #define IDC_L 412
  63. #define IDC_M 413
  64. #define IDC_N 414
  65. #define IDC_O 415
  66. #define IDC_P 416
  67. #define IDC_Q 417
  68. #define IDC_R 418
  69. #define IDC_S 419
  70. #define IDC_T 420
  71. #define IDC_U 421
  72. #define IDC_V 422
  73. #define IDC_W 423
  74. #define IDC_X 424
  75. #define IDC_Y 425
  76. #define IDC_Z 426
  77. /*
  78. ** Text Control IDs
  79. */
  80. #define IDC_TEXT1 431
  81. #define IDC_TEXT2 432
  82. #define IDC_TEXT3 433
  83. #define IDC_TEXT4 434
  84. #define IDC_TEXT5 435
  85. #define IDC_TEXT6 436
  86. #define IDC_TEXT7 437
  87. #define IDC_TEXT8 438
  88. #define IDC_TEXT9 439
  89. #define IDC_TEXT10 440
  90. #define IDC_TEXT11 441
  91. /*
  92. ** Radio and Checkbox Button Control IDs
  93. */
  94. #define IDC_B0 450
  95. #define IDC_B1 451
  96. #define IDC_B2 452
  97. #define IDC_B3 453
  98. #define IDC_B4 454
  99. #define IDC_B5 455
  100. #define IDC_B6 456
  101. #define IDC_B7 457
  102. #define IDC_B8 458
  103. #define IDC_B9 459
  104. #define IDC_B10 460
  105. #define IDC_RB0 610
  106. #define IDC_RB1 611
  107. #define IDC_RB2 612
  108. #define IDC_RB3 613
  109. #define IDC_RB4 614
  110. #define IDC_RB5 615
  111. #define IDC_RB6 616
  112. #define IDC_RB7 617
  113. #define IDC_RB8 618
  114. #define IDC_RB9 619
  115. #define IDC_RB10 620
  116. /*
  117. ** Generic Dialog Button IDs
  118. */
  119. #define IDC_BTN0 630
  120. #define IDC_BTN1 631
  121. #define IDC_BTN2 632
  122. #define IDC_BTN3 633
  123. #define IDC_BTN4 634
  124. #define IDC_BTN5 635
  125. #define IDC_BTN6 636
  126. #define IDC_BTN7 637
  127. #define IDC_BTN8 638
  128. #define IDC_BTN9 639
  129. /*
  130. ** Combo box IDs
  131. */
  132. #define IDC_COMBO0 480
  133. #define IDC_COMBO1 481
  134. #define IDC_COMBO2 482
  135. #define IDC_COMBO3 483
  136. #define IDC_COMBO4 484
  137. #define IDC_COMBO5 485
  138. #define IDC_COMBO6 486
  139. #define IDC_COMBO7 487
  140. #define IDC_COMBO8 488
  141. #define IDC_COMBO9 489
  142. /*
  143. ** ICON IDs
  144. */
  145. #define IDC_ICON0 500
  146. #define IDC_ICON1 501
  147. #define IDC_ICON2 502
  148. #define IDC_ICON3 503
  149. #define IDC_ICON4 504
  150. #define IDC_ICON5 505
  151. #define IDC_ICON6 506
  152. #define IDC_ICON7 507
  153. #define IDC_ICON8 508
  154. #define IDC_ICON9 509
  155. /*
  156. ** SPECIAL PUSHBUTTONS
  157. */
  158. #define IDC_SP1 521
  159. #define IDC_SP2 522
  160. #define IDC_SP3 523
  161. #define IDC_SP4 524
  162. #define IDC_SP5 525
  163. #define IDC_SP6 526
  164. #define IDC_SP7 527
  165. #define IDC_SP8 528
  166. #define IDC_SP9 529
  167. #define IDC_SP10 530
  168. /*
  169. ** STATUS TEXT FIELDS
  170. */
  171. #define IDC_STATUS1 541
  172. #define IDC_STATUS2 542
  173. #define IDC_STATUS3 543
  174. #define IDC_STATUS4 544
  175. #define IDC_STATUS5 545
  176. #define IDC_STATUS6 546
  177. #define IDC_STATUS7 547
  178. #define IDC_STATUS8 548
  179. #define IDC_STATUS9 549
  180. #define IDC_STATUS10 550
  181. /*
  182. ** SIZE FIELDS ASSOCIATED WITH CHECK OPTIONAL COMPONENTS
  183. */
  184. #define IDC_SIZE1 551
  185. #define IDC_SIZE2 552
  186. #define IDC_SIZE3 553
  187. #define IDC_SIZE4 554
  188. #define IDC_SIZE5 555
  189. #define IDC_SIZE6 556
  190. #define IDC_SIZE7 557
  191. #define IDC_SIZE8 558
  192. #define IDC_SIZE9 559
  193. #define IDC_SIZE10 560
  194. /*
  195. ** TOTALS OF SIZES
  196. */
  197. #define IDC_TOTAL1 561
  198. #define IDC_TOTAL2 562
  199. #define IDC_TOTAL3 563
  200. #define IDC_TOTAL4 564
  201. #define IDC_TOTAL5 565
  202. #define IDC_TOTAL6 566
  203. #define IDC_TOTAL7 567
  204. #define IDC_TOTAL8 568
  205. #define IDC_TOTAL9 569
  206. #define IDC_TOTAL10 570
  207. /*
  208. ** MAXIMUM SIZES
  209. */
  210. #define IDC_MAX1 571
  211. #define IDC_MAX2 572
  212. #define IDC_MAX3 573
  213. #define IDC_MAX4 574
  214. #define IDC_MAX5 575
  215. #define IDC_MAX6 576
  216. #define IDC_MAX7 577
  217. #define IDC_MAX8 578
  218. #define IDC_MAX9 579
  219. #define IDC_MAX10 580
  220. /*
  221. ** Edit Control IDs
  222. */
  223. #define IDC_EDIT1 581
  224. #define IDC_EDIT2 582
  225. #define IDC_EDIT3 583
  226. #define IDC_EDIT4 584
  227. #define IDC_EDIT5 585
  228. #define IDC_EDIT6 586
  229. #define IDC_EDIT7 587
  230. #define IDC_EDIT8 588
  231. #define IDC_EDIT9 589
  232. #define IDC_EDIT10 590
  233. /*
  234. ** ListBox Control IDs
  235. */
  236. #define IDC_LIST1 591
  237. #define IDC_LIST2 592
  238. #define IDC_LIST3 593
  239. #define IDC_LIST4 594
  240. #define IDC_LIST5 595
  241. #define IDC_LIST6 596
  242. #define IDC_LIST7 597
  243. #define IDC_LIST8 598
  244. #define IDC_LIST9 599
  245. #define IDC_LIST10 600
  246. /*
  247. ** MENU IDS
  248. */
  249. #define ID_MAINTAIN 651
  250. /*
  251. ** ID_MAINTAIN MENU IDS
  252. */
  253. #define MENU_CHANGE 701
  254. #define MENU_EXIT 704
  255. #define MENU_HELPINDEX 705
  256. #define MENU_HELPSEARCH 706
  257. #define MENU_HELPONHELP 708
  258. #define MENU_HELPONLINE 709
  259. #define MENU_ABOUT 710
  260. /*
  261. ** Handle-Dialog type
  262. */
  263. typedef HWND HDLG;
  264. /*
  265. ** Event Handler Return Code type
  266. */
  267. typedef USHORT EHRC;
  268. #define ehrcError (EHRC) 0
  269. #define ehrcNoPost (EHRC) 1
  270. #define ehrcPostInterp (EHRC) 2
  271. #define ehrcNotHandled (EHRC) 3
  272. /*
  273. ** Prototype for Specific Dialog Event Handlers -- 1632
  274. */
  275. typedef EHRC ( APIENTRY *PFNEVENT)(HANDLE, HWND, UINT, WPARAM, LPARAM);
  276. /* Standard Dialog handler routines */
  277. extern INT_PTR APIENTRY LDefSetupDlgProc(HWND, UINT, WPARAM, LPARAM);
  278. extern INT_PTR APIENTRY FGstInfoDlgProc(HWND, UINT, WPARAM, LPARAM);
  279. extern INT_PTR APIENTRY FGstEditDlgProc(HWND, UINT, WPARAM, LPARAM);
  280. extern INT_PTR APIENTRY FGstMultiEditDlgProc(HWND, UINT, WPARAM, LPARAM);
  281. extern INT_PTR APIENTRY FGstGetPathDlgProc(HWND, UINT, WPARAM, LPARAM);
  282. extern INT_PTR APIENTRY FGstRadioDlgProc(HWND, UINT, WPARAM, LPARAM);
  283. extern INT_PTR APIENTRY FGstCheckDlgProc(HWND, UINT, WPARAM, LPARAM);
  284. extern INT_PTR APIENTRY FGstCheck1DlgProc(HWND, UINT, WPARAM, LPARAM);
  285. extern INT_PTR APIENTRY FGstListDlgProc(HWND, UINT, WPARAM, LPARAM);
  286. extern INT_PTR APIENTRY FGstMultiDlgProc(HWND, UINT, WPARAM, LPARAM);
  287. extern INT_PTR APIENTRY FGstModelessDlgProc(HWND, UINT, WPARAM, LPARAM);
  288. extern INT_PTR APIENTRY FGstMultiComboDlgProc(HWND, UINT, WPARAM, LPARAM);
  289. extern INT_PTR APIENTRY FGstComboRadDlgProc(HWND, UINT, WPARAM, LPARAM);
  290. extern INT_PTR APIENTRY FGstCombinationDlgProc(HWND, UINT, WPARAM, LPARAM);
  291. extern INT_PTR APIENTRY FGstDualDlgProc(HWND, UINT, WPARAM, LPARAM);
  292. extern INT_PTR APIENTRY FGstDual1DlgProc(HWND, UINT, WPARAM, LPARAM);
  293. extern INT_PTR APIENTRY FGstMaintDlgProc(HWND, UINT, WPARAM, LPARAM);
  294. extern INT_PTR APIENTRY FGstBillboardDlgProc(HWND, UINT, WPARAM, LPARAM);
  295. /* stack manipulation routines */
  296. extern HDLG APIENTRY HdlgPushDbcb(HANDLE, SZ, SZ, HWND, WNDPROC, DWORD,
  297. PFNEVENT, SZ, WNDPROC);
  298. extern BOOL APIENTRY FPopDbcb(VOID);
  299. extern BOOL APIENTRY FPopNDbcb(INT);
  300. extern BOOL APIENTRY FUiLibFilter(MSG *);
  301. extern BOOL APIENTRY FResumeStackTop(VOID);
  302. extern SZ APIENTRY SzStackTopName(VOID);
  303. extern BOOL APIENTRY FGenericEventHandler(HANDLE, HWND, UINT, WPARAM, LPARAM); // 1632
  304. extern BOOL APIENTRY FStackEmpty(VOID);
  305. extern HDLG APIENTRY HdlgStackTop(VOID);
  306. //
  307. // Display of integer items in text fields
  308. //
  309. extern VOID MySetDlgItemInt(HDLG, INT, LONG);
  310. extern VOID NumericFormat(SZ szSrcBuf, SZ szDispBuf);
  311. //
  312. // Winhelp related externals
  313. //
  314. extern BOOL FInitWinHelpFile(HWND, SZ, SZ, SZ, SZ);
  315. extern BOOL FCloseWinHelp(HWND);
  316. extern BOOL FProcessWinHelp(HWND);
  317. extern BOOL FProcessWinHelpMenu(HWND, WORD);
  318. #endif